Commit b3d73ca3 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

NetworkEdit : add support for vlan interfaces.

Edit only for now, create will come soon in another patch
Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent 80eee7e9
......@@ -31,7 +31,7 @@ my $bond_mode_enum = [
'lacp-balance-tcp', # OVS
];
my $network_type_enum = ['bridge', 'bond', 'eth', 'alias',
my $network_type_enum = ['bridge', 'bond', 'eth', 'alias', 'vlan',
'OVSBridge', 'OVSBond', 'OVSPort', 'OVSIntPort'];
my $confdesc = {
......
......@@ -127,6 +127,7 @@ Ext.define('PVE.Utils', { statics: {
eth: gettext("Network Device"),
bridge: 'Linux Bridge',
bond: 'Linux Bond',
vlan: 'Linux Vlan interface',
OVSBridge: 'OVS Bridge',
OVSBond: 'OVS Bond',
OVSPort: 'OVS Port',
......
......@@ -24,6 +24,8 @@ Ext.define('PVE.node.NetworkEdit', {
iface_vtype = 'BondName';
} else if (me.iftype === 'eth' && !me.create) {
iface_vtype = 'InterfaceName';
} else if (me.iftype === 'vlan' && !me.create) {
iface_vtype = 'InterfaceName';
} else if (me.iftype === 'OVSBridge') {
iface_vtype = 'BridgeName';
} else if (me.iftype === 'OVSBond') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment