[pve-devel] [PATCH installer 0/2] sync allowed nic-names with pve-common by using the same regex
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Nov 26 19:07:14 CET 2025
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/5482904f-efa5-40ef-b8e6-f1ba935f2431@proxmox.com/
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
More information about the pve-devel
mailing list