Hello,
Is there any reason to not allow dashes "-" in interface names ?
In my case, my ifaces used to be named like "vmbr-intprv" or "wg-user".
I changed file
(simply added the - at the end of
restarted pve-proxy and it's working as expected.
Is it just a mistake in the regex, or is there an underlying reason to not allow dashes in iface name ?
The kernel does not make any check on the name (see
Thanks,
Is there any reason to not allow dashes "-" in interface names ?
In my case, my ifaces used to be named like "vmbr-intprv" or "wg-user".
I changed file
/usr/share/perl5/PVE/JSONSchema.pm
the regex in sub pve_verify_iface
with:
Perl:
if ($id !~ m/^[a-z][a-z0-9_-]{1,20}([:\.]\d+)?$/i) {
[a-z0-9_-]
, so it's not understood as a regex range)restarted pve-proxy and it's working as expected.
Is it just a mistake in the regex, or is there an underlying reason to not allow dashes in iface name ?
The kernel does not make any check on the name (see
net/core/dev.c
), so even uppercase chars should be allowed.Thanks,