diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-08-11 15:03:09 -0600 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-08-11 16:52:26 -0600 |
commit | 8028c9234ec4260eda9431bffc6728ac3703e243 (patch) | |
tree | b85e563491057f81581d3f6191cb77e411730c4b /cloudinit/sources/helpers | |
parent | cdcac86848a570eb657af428fe4d2bd4ce3bceb1 (diff) | |
download | vyos-cloud-init-8028c9234ec4260eda9431bffc6728ac3703e243.tar.gz vyos-cloud-init-8028c9234ec4260eda9431bffc6728ac3703e243.zip |
ConfigDrive: recognize 'tap' as a link type.
This just adds 'tap' to the list of types that are understood to
be physical or virtual network devices. Openstack basically exposes
the type of the host device through.
LP: #1610784
Diffstat (limited to 'cloudinit/sources/helpers')
-rw-r--r-- | cloudinit/sources/helpers/openstack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/helpers/openstack.py b/cloudinit/sources/helpers/openstack.py index 2e7a1d47..461fbd0d 100644 --- a/cloudinit/sources/helpers/openstack.py +++ b/cloudinit/sources/helpers/openstack.py @@ -571,7 +571,7 @@ def convert_net_json(network_json=None, known_macs=None): subnet['ipv6'] = True subnets.append(subnet) cfg.update({'subnets': subnets}) - if link['type'] in ['ethernet', 'vif', 'ovs', 'phy', 'bridge']: + if link['type'] in ['ethernet', 'vif', 'ovs', 'phy', 'bridge', 'tap']: cfg.update({ 'type': 'physical', 'mac_address': link['ethernet_mac_address']}) |