This patchset tries to address the discrepancies between the validation for nic-names used in our JSONSchema.pm in pve-common: https://git.proxmox.com/?p=pve-common.git;a=blob;f=src/PVE/JSONSchema.pm;h=827889950b9165dd22e7b12e934d08fd8b21e855;hb=HEAD#l680 and here in our installer. Thx @Thomas for noticing this: https://lore.proxmox.com/pve-devel/[email protected]/
Here I simply copied the regex from pve-common and used that for validation. minimally tested in a VM with (the now permitted) 'ABC' 'Nic0' and 'B_' as nicnames. Stoiko Ivanov (2): sys: net: use literal pve-iface regular expression for validation common: pinning: use pve-iface regular expression for validation Proxmox/Sys/Net.pm | 15 ++------ proxmox-installer-common/src/options.rs | 51 +++++++++---------------- test/validate-link-pin-map.pl | 12 ++++-- 3 files changed, 29 insertions(+), 49 deletions(-) -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
