summaryrefslogtreecommitdiff
path: root/udev/66-azure-ephemeral.rules
diff options
context:
space:
mode:
authorWesley Wiedenmeier <wesley.wiedenmeier@gmail.com>2016-03-21 20:42:26 -0500
committerWesley Wiedenmeier <wesley.wiedenmeier@gmail.com>2016-03-21 20:42:26 -0500
commitbb58463474e334b8c8d1769101bd3afc48ebfef4 (patch)
treeb15665917ee8e0eb69fb41ad58cbea56f8cfda3c /udev/66-azure-ephemeral.rules
parent7a22e352b2f87636554d9787f60cd3168f3d77bc (diff)
downloadvyos-cloud-init-bb58463474e334b8c8d1769101bd3afc48ebfef4.tar.gz
vyos-cloud-init-bb58463474e334b8c8d1769101bd3afc48ebfef4.zip
Added net.find_fallback_network_device() to find an appropriate device to dhcp
on in the event that no network configuration was provided to cloud-init - Devices in /sys/class/net aside from loopback devices are scanned - Each device is tested to determine if it has a carrier using /sys/class/net/DEV/carrier, devices which do are preferred as they are most likely connected to the outside world - Devices which do not have a carrier but which might still be connected due to being in a dormant or down state are used as fallbacks in case no devices are found which have a carrier - A network state dictionary is generated to be passed to render_network_state to write ENI - A systemd link file is generated that will rename the chosen device to eth0
Diffstat (limited to 'udev/66-azure-ephemeral.rules')
0 files changed, 0 insertions, 0 deletions