From 401cf57883b94a938c742fc6a756ad5d3241a468 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 1 Sep 2021 14:37:11 +0200 Subject: [PATCH] another import cleanup Signed-off-by: Wolfgang Bumiller --- pbs-api-types/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pbs-api-types/src/lib.rs b/pbs-api-types/src/lib.rs index 024181ee..14c8cd35 100644 --- a/pbs-api-types/src/lib.rs +++ b/pbs-api-types/src/lib.rs @@ -121,6 +121,8 @@ const_regex! { DNS_NAME!(), "|", IPRE_BRACKET!(), "):)?(?:([0-9]{1,5}):)?(", PROXMOX_SAFE_ID_REGEX_STR!(), r")$" ); + + pub BLOCKDEVICE_NAME_REGEX = r"^(:?(:?h|s|x?v)d[a-z]+)|(:?nvme\d+n\d+)$"; } pub const IP_V4_FORMAT: ApiStringFormat = ApiStringFormat::Pattern(&IP_V4_REGEX);