Skip to content

Commit

Permalink
dot: error stats reporting on linux netdev
Browse files Browse the repository at this point in the history
Fixes: 044b2d2 ("ip,ovs: add statistics and link state info")
Signed-off-by: Robin Jarry <[email protected]>
  • Loading branch information
rjarry committed Apr 18, 2024
1 parent 6106b3d commit 722d057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sosviz/output/dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def phy_iface(self, iface: D, netns: str = ""):

for name, value in iface.get("stats", {}).items():
tooltips.append(f"{name} {human_readable(value)}")
if "RUNNING" in iface["flags"] and name in self.NETDEV_ERRORS:
if value and "LOWER_UP" in iface["flags"] and name in self.NETDEV_ERRORS:
labels.append(
f'<font color="red">{name} {human_readable(value)}</font>'
)
Expand Down

0 comments on commit 722d057

Please sign in to comment.