diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-01-03 21:24:55 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-01-03 21:24:55 +0000 |
commit | d929214c7a904da57a406dd56ac06f001fdc7d7b (patch) | |
tree | ccaf54bc78ee4c3df18acd320a5121bb2104a616 /os_net_config/impl_eni.py | |
parent | d621022954195049c96b19064f2eddd46ec95fe4 (diff) | |
parent | 433a0f3cbe59fd5da183245bf7e6dcd4af4b8c88 (diff) |
Merge "Add support for enabling hotplug on interfaces"
Diffstat (limited to 'os_net_config/impl_eni.py')
-rw-r--r-- | os_net_config/impl_eni.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/os_net_config/impl_eni.py b/os_net_config/impl_eni.py index 5b91270..c6252ce 100644 --- a/os_net_config/impl_eni.py +++ b/os_net_config/impl_eni.py @@ -127,7 +127,10 @@ class ENINetConfig(os_net_config.NetConfig): data += address_data data += " vlan-raw-device %s\n" % interface.device else: - data += "auto %s\n" % interface.name + if isinstance(interface, objects.Interface) and interface.hotplug: + data += "allow-hotplug %s\n" % interface.name + else: + data += "auto %s\n" % interface.name data += _iface data += address_data if interface.mtu: |