Problem when working with bonding_masters
There is a bug in the code unable to read bonding statistics when there is a file bonding_masters (containing the name of the bond).
$ ls -al /sys/class/net/
total 0
drwxr-xr-x. 2 root root 0 Nov 9 00:09 .
drwxr-xr-x. 66 root root 0 May 28 2019 ..
lrwxrwxrwx. 1 root root 0 May 3 13:29 bond0 -> ../../devices/virtual/net/bond0
-rw-r--r--. 1 root root 4096 May 28 2019 bonding_masters
lrwxrwxrwx. 1 root root 0 May 28 2019 em1 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/net/em1
lrwxrwxrwx. 1 root root 0 May 28 2019 em2 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.1/net/em2
lrwxrwxrwx. 1 root root 0 May 28 2019 em3 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.2/net/em3
lrwxrwxrwx. 1 root root 0 May 28 2019 em4 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.3/net/em4
lrwxrwxrwx. 1 root root 0 May 28 2019 lo -> ../../devices/virtual/net/lo
$ cat /sys/class/net/bonding_masters
bond0