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.hanre...@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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel