mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 20:43:02 +02:00
statd: skip CAN interfaces in IETF interface model
Skip CAN interfaces that don't fit the IETF interface model. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -162,6 +162,10 @@ def interfaces(ifname=None):
|
||||
if iplink.get("group") == "internal":
|
||||
continue
|
||||
|
||||
link_type = iplink.get("link_type")
|
||||
if link_type in ("can", "vcan"):
|
||||
continue
|
||||
|
||||
ipaddr = addrs.get(ifname, {})
|
||||
|
||||
interfaces.append(interface(iplink, ipaddr))
|
||||
|
||||
Reference in New Issue
Block a user