Verified Commit c7a7de3f authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(ipam) Reorganize attributes sections in network interface

issue #6039
parent fbfb4fe3
No related merge requests found
Showing with 14 additions and 9 deletions
+14 -9
...@@ -54,15 +54,6 @@ class networkInterface extends simplePlugin ...@@ -54,15 +54,6 @@ class networkInterface extends simplePlugin
_('Mac address'), _('Mac address of this system'), _('Mac address'), _('Mac address of this system'),
'macAddress', FALSE 'macAddress', FALSE
), ),
new ObjectSelectAttribute(
_('VLAN'), _('VLAN'),
'fdNetworkInterfaceVlanId', FALSE,
['ipamVlan'], 'fdIpamVlanInnerId'
),
new StringAttribute(
_('VLAN tag'), _('VLAN tag'),
'fdNetworkInterfaceVlanTag', FALSE
),
new ObjectSelectAttribute( new ObjectSelectAttribute(
_('Subnet'), _('Subnet'), _('Subnet'), _('Subnet'),
'fdNetworkInterfaceSubnetDN', FALSE, 'fdNetworkInterfaceSubnetDN', FALSE,
...@@ -74,6 +65,20 @@ class networkInterface extends simplePlugin ...@@ -74,6 +65,20 @@ class networkInterface extends simplePlugin
'ipHostNumber', FALSE 'ipHostNumber', FALSE
) )
), ),
],
],
'vlan' => [
'name' => _('VLAN information'),
'attrs' => [
new ObjectSelectAttribute(
_('VLAN'), _('VLAN'),
'fdNetworkInterfaceVlanId', FALSE,
['ipamVlan'], 'fdIpamVlanInnerId'
),
new StringAttribute(
_('VLAN tag'), _('VLAN tag'),
'fdNetworkInterfaceVlanTag', FALSE
),
] ]
], ],
]; ];
......
Supports Markdown
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