diff options
Diffstat (limited to 'os_net_config')
-rw-r--r-- | os_net_config/impl_eni.py | 1 | ||||
-rw-r--r-- | os_net_config/tests/test_impl_eni.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/os_net_config/impl_eni.py b/os_net_config/impl_eni.py index 9f43f88..f676a7e 100644 --- a/os_net_config/impl_eni.py +++ b/os_net_config/impl_eni.py @@ -72,6 +72,7 @@ class ENINetConfig(os_net_config.NetConfig): else: _iface += "manual\n" if isinstance(interface, objects.OvsBridge): + data += "auto %s\n" % interface.name data += "allow-ovs %s\n" % interface.name data += _iface data += address_data diff --git a/os_net_config/tests/test_impl_eni.py b/os_net_config/tests/test_impl_eni.py index 5a20093..a3656bf 100644 --- a/os_net_config/tests/test_impl_eni.py +++ b/os_net_config/tests/test_impl_eni.py @@ -44,7 +44,8 @@ _OVS_PORT_IFACE = _OVS_PORT_BASE + """iface eth0 inet manual ovs_type OVSPort """ -_OVS_BRIDGE_DHCP = """allow-ovs br0 +_OVS_BRIDGE_DHCP = """auto br0 +allow-ovs br0 iface br0 inet dhcp ovs_type OVSBridge ovs_ports eth0 |