Commit 96cc3852 authored by Scott Moser's avatar Scott Moser

skip bridges when generating fallback networking

It does not make sense to consider bridges when searching for fallback
networking.  If the system is configured with a bridge, then its probably
for some purpose other than to get to a metadata service.

Considering the bridge could make cloud-init pick the wrong device on reboot.

LP: #1569974
parent 03c81fdc
......@@ -646,6 +646,9 @@ def generate_fallback_config():
connected = []
possibly_connected = []
for interface in potential_interfaces:
if os.path.exists(sys_dev_path(interface, "bridge")):
# skip any bridges
continue
try:
carrier = int(sys_netdev_info(interface, 'carrier'))
if carrier:
......
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