diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-04-14 16:21:13 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-04-14 16:21:13 -0400 |
commit | e660c36e61764c2236ddc8c45d8ffe95a16f2e39 (patch) | |
tree | 614d2cd666faf296fddfb82ef7adb5662469faf3 | |
parent | a551cb080388c2016bcf23981f99a4a6aa0fe198 (diff) | |
download | vyos-cloud-init-e660c36e61764c2236ddc8c45d8ffe95a16f2e39.tar.gz vyos-cloud-init-e660c36e61764c2236ddc8c45d8ffe95a16f2e39.zip |
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
-rw-r--r-- | cloudinit/net/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |