On 01/27/2015 10:48 AM, Laine Stump wrote:
This can happen for alias "interfaces", e.g:
"eth0:1" (which aren't
really an interface, but are a deprecated method of adding multiple IP
addresses to a single interface). Since only the base interface
("eth0") is really a device, only it has an entry in /sys/class/net.
+ if (!state) {
+ /* missing operstate is *not* an error. It could be due to an
+ * alias interface, which has not entry in /sys/class/net at
s/not/no/
ACK with that tweak.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org