summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/cpick-2d2ec70-OpenStack-extend-physical-types-to-include-hyperv-hw_veb43
-rw-r--r--debian/patches/series1
2 files changed, 44 insertions, 0 deletions
diff --git a/debian/patches/cpick-2d2ec70-OpenStack-extend-physical-types-to-include-hyperv-hw_veb b/debian/patches/cpick-2d2ec70-OpenStack-extend-physical-types-to-include-hyperv-hw_veb
new file mode 100644
index 00000000..5292e491
--- /dev/null
+++ b/debian/patches/cpick-2d2ec70-OpenStack-extend-physical-types-to-include-hyperv-hw_veb
@@ -0,0 +1,43 @@
+commit 2d2ec70f06015f0624f1d0d328cc97f1fb5c29de
+Author: Scott Moser <smoser@brickies.net>
+Date: Tue Nov 22 16:39:13 2016 -0500
+
+ OpenStack: extend physical types to include hyperv, hw_veb, vhost_user.
+
+ This extends the list of device 'types' that are considered to be physical
+ to include hyperv, hw_veb, and vhost_user.
+
+ LP: #1642679
+
+--- a/cloudinit/sources/helpers/openstack.py
++++ b/cloudinit/sources/helpers/openstack.py
+@@ -61,6 +61,19 @@ OS_VERSIONS = (
+ OS_LIBERTY,
+ )
+
++PHYSICAL_TYPES = (
++ None,
++ 'bridge',
++ 'ethernet',
++ 'hw_veb',
++ 'hyperv',
++ 'ovs',
++ 'phy',
++ 'tap',
++ 'vhostuser',
++ 'vif',
++)
++
+
+ class NonReadable(IOError):
+ pass
+@@ -583,8 +596,7 @@ def convert_net_json(network_json=None,
+ subnet['ipv6'] = True
+ subnets.append(subnet)
+ cfg.update({'subnets': subnets})
+- if link['type'] in [None, 'ethernet', 'vif', 'ovs', 'phy',
+- 'bridge', 'tap']:
++ if link['type'] in PHYSICAL_TYPES:
+ cfg.update({'type': 'physical', 'mac_address': link_mac_addr})
+ elif link['type'] in ['bond']:
+ params = {}
diff --git a/debian/patches/series b/debian/patches/series
index f55f599b..4e1ef425 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
cpick-18203bf-disk_setup-Use-sectors-as-unit-when-formatting-MBR-disks
cpick-6e92c5f-net-cmdline-Consider-ip-or-ip6-on-command-line-not-only
cpick-8c6878a-tests-fix-assumptions-that-expected-no-eth0-in-system
+cpick-2d2ec70-OpenStack-extend-physical-types-to-include-hyperv-hw_veb