Vlan lower interface should not have class set
The interface class of a vlan lower interface was set to platform,
causing it to fail to get the address of the interface.
The class of the interface should not be set if it is used as an
underlying interface of a vlan interface.
Change-Id: I04e2c1f1606eb0582f7f8c33324ac376fb77c312
Closes-bug: 1797391
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
(cherry picked from commit cc447124c2
)
This commit is contained in:
parent
3af14db111
commit
97d031084e
|
@ -4415,13 +4415,13 @@ class ConfigAssistant():
|
|||
values = {
|
||||
'ihost_uuid': controller.uuid,
|
||||
'ifname': self.infrastructure_interface,
|
||||
'ifclass': interface_class,
|
||||
}
|
||||
values.update({
|
||||
'imtu': self._get_interface_mtu(self.infrastructure_interface)
|
||||
})
|
||||
if not self.infrastructure_vlan:
|
||||
values.update({
|
||||
'ifclass': interface_class,
|
||||
'networks': str(network.id)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue