mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 04:53:01 +02:00
yanger: Do not crash if fails to get ethernet links
This commit is contained in:
@@ -89,6 +89,9 @@ def link(ifname):
|
||||
def ethernet(iplink):
|
||||
eth = link(iplink["ifname"])
|
||||
|
||||
if eth is None:
|
||||
eth = {}
|
||||
|
||||
if stats := statistics(iplink["ifname"]):
|
||||
eth["statistics"] = stats
|
||||
|
||||
|
||||
Reference in New Issue
Block a user