Commit e660c36e authored by Scott Moser's avatar Scott Moser

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
parent a551cb08
......@@ -646,6 +646,8 @@ def generate_fallback_config():
connected = []
possibly_connected = []
for interface in potential_interfaces:
if interface.startswith("veth"):
if os.path.exists(sys_dev_path(interface, "bridge")):
# skip any bridges
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment