diff options
author | Joshua Harlow <harlowja@gmail.com> | 2016-05-05 16:38:53 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2016-05-05 16:38:53 -0700 |
commit | db9d958a0e76c2c59298041a1355aba97fda000f (patch) | |
tree | 5e4e1a20c544fd6bca7388f31c0541da8ceeee40 /cloudinit/sources/helpers/openstack.py | |
parent | f5a1662e4a2cbbdee0766276fd516a25306545d6 (diff) | |
download | vyos-cloud-init-db9d958a0e76c2c59298041a1355aba97fda000f.tar.gz vyos-cloud-init-db9d958a0e76c2c59298041a1355aba97fda000f.zip |
Add the bridge net type
Diffstat (limited to 'cloudinit/sources/helpers/openstack.py')
-rw-r--r-- | cloudinit/sources/helpers/openstack.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/sources/helpers/openstack.py b/cloudinit/sources/helpers/openstack.py index 475ccab3..845ea971 100644 --- a/cloudinit/sources/helpers/openstack.py +++ b/cloudinit/sources/helpers/openstack.py @@ -576,6 +576,11 @@ def convert_net_json(network_json): 'vlan_id': link['vlan_id'], 'mac_address': link['vlan_mac_address'], }) + elif link['type'] in ['bridge']: + cfg.update({ + 'type': 'bridge', + 'mac_address': link['ethernet_mac_address'], + 'mtu': link['mtu']}) else: raise ValueError( 'Unknown network_data link type: %s' % link['type']) |