[pve-devel] [PATCH widget-toolkit 4/5] vlan edit: Set valid default name

Dominic Jäger d.jaeger at proxmox.com
Mon Feb 8 13:41:36 CET 2021


Using find_next_iface_id we get a valid VLAN name.
This way, inserting a vlan raw device is still required (but everything that is
inserted so far is valid).

Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
Wasn't sure if we want this. Feel free to squash with previous 3/5.

 src/node/NetworkView.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/node/NetworkView.js b/src/node/NetworkView.js
index 4805636..a1570ce 100644
--- a/src/node/NetworkView.js
+++ b/src/node/NetworkView.js
@@ -235,6 +235,7 @@ Ext.define('Proxmox.node.NetworkView', {
 		    let win = Ext.create('Proxmox.node.NetworkEdit', {
 			nodename: me.nodename,
 			iftype: 'vlan',
+			iface_default: find_next_iface_id('vlan'),
 			onlineHelp: 'sysadmin_network_configuration',
 		    });
 		    win.on('destroy', reload);
-- 
2.20.1





More information about the pve-devel mailing list