diff options
Diffstat (limited to 'os_net_config/impl_eni.py')
-rw-r--r-- | os_net_config/impl_eni.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/os_net_config/impl_eni.py b/os_net_config/impl_eni.py index c40a4b0..944893e 100644 --- a/os_net_config/impl_eni.py +++ b/os_net_config/impl_eni.py @@ -89,8 +89,9 @@ class ENINetConfig(os_net_config.NetConfig): for i in interface.members: data += " %s" % i.name data += "\n" - for i in interface.members: - data += " pre-up ip addr flush dev %s\n" % i.name + for mem in interface.members: + if isinstance(mem, objects.Interface): + data += " pre-up ip addr flush dev %s\n" % mem.name if interface.primary_interface_name: mac = utils.interface_mac(interface.primary_interface_name) data += (" ovs_extra set bridge %s " |