veth is always a physical interface. However, it may be hard to detect
because when they are created, lower interface for the first one is none
and lower interface for the second one is the first one. Hence, no loop
detected, hence the second one is not considered as a physical
interface.
This is madness, just whitelist "veth".
+ Always log to stderr (even in addition to syslog).
* Fix:
+ `lldpcli -f {xml,json} watch` should work now.
+ + Consider `veth` interfaces as physical interfaces.
lldpd (0.9.2)
* Change:
}
/* If the interface is linked to another one, skip it too. */
- if (iface->lower) {
+ if (iface->lower && (!iface->driver || strcmp(iface->driver, "veth"))) {
log_debug("interfaces", "skip %s: there is a lower interface (%s)",
iface->name, iface->lower->name);
continue;