diff options
| author | Wesley Wiedenmeier <wesley.wiedenmeier@gmail.com> | 2016-03-21 20:42:26 -0500 | 
|---|---|---|
| committer | Wesley Wiedenmeier <wesley.wiedenmeier@gmail.com> | 2016-03-21 20:42:26 -0500 | 
| commit | bb58463474e334b8c8d1769101bd3afc48ebfef4 (patch) | |
| tree | b15665917ee8e0eb69fb41ad58cbea56f8cfda3c /tests | |
| parent | 7a22e352b2f87636554d9787f60cd3168f3d77bc (diff) | |
| download | vyos-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 'tests')
0 files changed, 0 insertions, 0 deletions
