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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PVE/CLI/proxmox_network_interface_pinning.pm b/PVE/CLI/proxmox_network_interface_pinning.pm index e2ad8c69f..d09b380f4 100644 --- a/PVE/CLI/proxmox_network_interface_pinning.pm +++ b/PVE/CLI/proxmox_network_interface_pinning.pm @@ -367,16 +367,17 @@ __PACKAGE__->register_method({ optional => 1, }, prefix => { - description => 'Only pin a specific interface.', + description => 'Prefix for auto-generating network interface names. ' + . 'Generated names will use that prefix + the index appended ("prefixN")', 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, }, }, -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel