From 97d031084e199dcdfd647a5690291cf61678ea9b Mon Sep 17 00:00:00 2001 From: Teresa Ho Date: Tue, 16 Oct 2018 09:11:44 -0400 Subject: [PATCH] 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 (cherry picked from commit cc447124c2f7fc6b86ea3257832df71a7cb57fef) --- .../controllerconfig/controllerconfig/configassistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllerconfig/controllerconfig/controllerconfig/configassistant.py b/controllerconfig/controllerconfig/controllerconfig/configassistant.py index 7b754a4362..cd27615c77 100644 --- a/controllerconfig/controllerconfig/controllerconfig/configassistant.py +++ b/controllerconfig/controllerconfig/controllerconfig/configassistant.py @@ -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) })