Skip to content

Commit 173daf8

Browse files
committed
statd: skip CAN interfaces in IETF interface model
Skip CAN interfaces that don't fit the IETF interface model. Signed-off-by: Joachim Wiberg <[email protected]>
1 parent ba87358 commit 173daf8

File tree

1 file changed

+4
-0
lines changed
  • src/statd/python/yanger/ietf_interfaces

1 file changed

+4
-0
lines changed

src/statd/python/yanger/ietf_interfaces/link.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ def interfaces(ifname=None):
162162
if iplink.get("group") == "internal":
163163
continue
164164

165+
link_type = iplink.get("link_type")
166+
if link_type in ("can", "vcan"):
167+
continue
168+
165169
ipaddr = addrs.get(ifname, {})
166170

167171
interfaces.append(interface(iplink, ipaddr))

0 commit comments

Comments
 (0)