aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_eni.py
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2014-08-21 13:25:38 -0400
committerDan Prince <dprince@redhat.com>2014-08-21 13:25:38 -0400
commit3b5e8789871e1722f8a5122236893730cf3d1751 (patch)
tree3a737d9cc6be623264643d39f7540257c8508838 /os_net_config/impl_eni.py
parentdb8deb0a062178ebb99f1a010eb5af79cee2390e (diff)
A vlan on an OVS bridge doesn't require a device
Updates the object model so that a VLAN on top of a bridge (an OVS int port) doesn't require a physical device to be set in the object model.
Diffstat (limited to 'os_net_config/impl_eni.py')
-rw-r--r--os_net_config/impl_eni.py5
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 "