[pve-devel] [PATCH pve-manager v2 2/2] network-interface-pinning: allow arbitrary names
Stefan Hanreich
s.hanreich at proxmox.com
Tue Jul 29 19:16:45 CEST 2025
With the changes to physical interface detection in pve-common and
pve-manager, it is now possible to use arbitrary names for physical
interfaces in our network stack. This allows the removal of the
existing, hardcoded, prefixes.
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
PVE/CLI/proxmox_network_interface_pinning.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/CLI/proxmox_network_interface_pinning.pm b/PVE/CLI/proxmox_network_interface_pinning.pm
index 9bbc2929d..adc0acd52 100644
--- a/PVE/CLI/proxmox_network_interface_pinning.pm
+++ b/PVE/CLI/proxmox_network_interface_pinning.pm
@@ -370,14 +370,14 @@ __PACKAGE__->register_method({
description =>
'Use a specific prefix for automatically choosing the pinned name.',
type => 'string',
- enum => ['nic', 'if'],
+ pattern => '^[a-zA-Z][a-zA-Z0-9-_]{0,7}$',
default => 'nic', # just for the docs.
optional => 1,
},
'target-name' => {
description => 'Pin the interface to a specific name.',
type => 'string',
- pattern => '(?:nic|if)\d+',
+ format => 'pve-iface',
optional => 1,
requires => 'interface',
},
--
2.47.2
More information about the pve-devel
mailing list