* [PATCH pve-cluster v2] fix #2685: datacenter: allow 4-bit mac_prefix suffix
@ 2026-02-24 12:05 Moayad Almalat
0 siblings, 0 replies; only message in thread
From: Moayad Almalat @ 2026-02-24 12:05 UTC (permalink / raw)
To: pve-devel
Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
---
src/PVE/DataCenterConfig.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/DataCenterConfig.pm b/src/PVE/DataCenterConfig.pm
index 514c867..a793648 100644
--- a/src/PVE/DataCenterConfig.pm
+++ b/src/PVE/DataCenterConfig.pm
@@ -224,7 +224,7 @@ PVE::JSONSchema::register_format('mac-prefix', \&pve_verify_mac_prefix);
sub pve_verify_mac_prefix {
my ($mac_prefix, $noerr) = @_;
- if ($mac_prefix !~ m/^[a-f0-9][02468ace](?::[a-f0-9]{2}){0,2}:?$/i) {
+ if ($mac_prefix !~ m/^(?:[a-f0-9][02468ace](?::[a-f0-9]{2}){0,2}:?|[a-f0-9][02468ace](?::[a-f0-9]{2}){2}:[a-f0-9])$/i) {
return undef if $noerr;
die "value is not a valid unicast MAC address prefix\n";
}
--
2.47.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-24 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-24 12:05 [PATCH pve-cluster v2] fix #2685: datacenter: allow 4-bit mac_prefix suffix Moayad Almalat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox