diff options
author | Scott Moser <smoser@brickies.net> | 2016-08-22 16:51:43 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-08-22 16:58:12 -0400 |
commit | 40a2f621b05c11ed6397a1735b6bfff0ea07b097 (patch) | |
tree | 43b37e8ae24e6c40f85c352ad8f97725b1a88a05 /config | |
parent | 64522efe710faf6fa1615dbb60a2fc4cc8a7c278 (diff) | |
download | vyos-cloud-init-40a2f621b05c11ed6397a1735b6bfff0ea07b097.tar.gz vyos-cloud-init-40a2f621b05c11ed6397a1735b6bfff0ea07b097.zip |
network: fix get_interface_mac for bond slave, read_sys_net for ENOTDIR
When using get_interface_mac, on a system with bond slaves, it would
return the bond_master's address. That isn't expected, and causes
problems in a caller like get_interfaces_by_mac which would then seem to
find duplicate macs on the system.
Additionally, in read_sys_net catch a errno.ENOTDIR error as ENOENT.
Opening a path as a file that has <existing_file>/anything will will raise
ENOTDIR rather than ENOENT. This handles that case in read_sys_net as a
if the file did not exist.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions