summaryrefslogtreecommitdiff
path: root/cloudinit/sources/helpers/openstack.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-08-11 15:03:09 -0600
committerScott Moser <smoser@ubuntu.com>2016-08-11 16:52:26 -0600
commit8028c9234ec4260eda9431bffc6728ac3703e243 (patch)
treeb85e563491057f81581d3f6191cb77e411730c4b /cloudinit/sources/helpers/openstack.py
parentcdcac86848a570eb657af428fe4d2bd4ce3bceb1 (diff)
downloadvyos-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/openstack.py')
-rw-r--r--cloudinit/sources/helpers/openstack.py2
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']})