Am 26.11.25 um 7:08 PM schrieb Stoiko Ivanov:
> +            static RE: OnceLock<Regex> = OnceLock::new();
> +            let re = RE.get_or_init(|| {
> +                RegexBuilder::new(r"^[a-z][a-z0-9_]{1,20}([:\.]\d+)?$")

Should the later part with a colon really be allowed? On the new test
ISO, a name like 'nicat:3' will be accepted, but won't actually work
later when booting:
"Interface name is not valid or too long, ignoring assignment: nicat:3"

I guess the dot can make sense if there are multiple NICs, so you could
have e.g. 'nic0' and 'nic0.3'?

> +                    .case_insensitive(true)
> +                    .build()
> +                    .unwrap()
> +            });
> +


_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to