From e660c36e61764c2236ddc8c45d8ffe95a16f2e39 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 14 Apr 2016 16:21:13 -0400 Subject: fallback net config: do not consider devices starting with 'veth' Just skip devices that are named veth*. The fix here is to ignore lxd created devices, but any other veth device that is created at this point in boot is probably not the right interface to dhcp on. LP: #1569064 --- cloudinit/net/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py index 31110292..a765b75a 100644 --- a/cloudinit/net/__init__.py +++ b/cloudinit/net/__init__.py @@ -646,6 +646,8 @@ def generate_fallback_config(): connected = [] possibly_connected = [] for interface in potential_interfaces: + if interface.startswith("veth"): + continue if os.path.exists(sys_dev_path(interface, "bridge")): # skip any bridges continue -- cgit v1.2.3