Fix parsing of interface aliases in netdev linux

Very old kernels expose interface aliases as `foo0:0`, adjust the line
parsing to handle these names.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2018-04-16 14:34:39 +02:00
commit a528966dcd
4 changed files with 37 additions and 9 deletions

View file

@ -7,3 +7,4 @@ veth4B09XN: 648 8 0 0 0 0 0 0 1943284
lxcbr0: 0 0 0 0 0 0 0 0 2630299 28339 0 0 0 0 0 0
wlan0: 10437182923 13899359 0 0 0 0 0 0 2851649360 11726200 0 0 0 0 0 0
docker0: 64910168 1065585 0 0 0 0 0 0 2681662018 1929779 0 0 0 0 0 0
ibr10:30: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0