summaryrefslogtreecommitdiff
path: root/doc/rtd/topics/vendordata.rst
diff options
context:
space:
mode:
authorMarc-Aurèle Brothier <m@brothier.org>2017-05-24 14:45:25 +0200
committerScott Moser <smoser@ubuntu.com>2017-06-06 10:07:44 -0600
commit543e25cda6235d18adb6485e4266944d59e1979d (patch)
tree84ea250beaaab4c1fd0107ea87722d52adf9a193 /doc/rtd/topics/vendordata.rst
parentdc0e70d155b4ff7a3c914ae7aaed3a52571e2107 (diff)
downloadvyos-cloud-init-543e25cda6235d18adb6485e4266944d59e1979d.tar.gz
vyos-cloud-init-543e25cda6235d18adb6485e4266944d59e1979d.zip
net: when selecting a network device, use natural sort order
The code deciding which interface to choose as the default to request the IP address through DHCP does not sort the interfaces correctly. On Ubuntu Xenial images for example, the interfaces are named ens1, ens2, ens3..., ens11, ... depending on the pci bus address. The python sorting will list 'ens11' before 'ens3' for example despite the fact that 'ens3' should be before 'ens11'. This patch address this issue and sort the interface names according to a human sorting. Signed-off-by: Marc-Aurèle Brothier <m@brothier.org>
Diffstat (limited to 'doc/rtd/topics/vendordata.rst')
0 files changed, 0 insertions, 0 deletions