Skip to content

Commit

Permalink
Change IpRoutesParser to respect new netstat output
Browse files Browse the repository at this point in the history
Fixes ZEN-35186.
  • Loading branch information
Oleksandr Dubrovyk committed Dec 12, 2024
1 parent 469426c commit 170ae59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Products/DataCollector/plugins/zenoss/cmd/linux/netstat_rn.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
# 10.111.23.0/24 dev eth0 proto kernel scope link src 10.111.23.72
# 192.168.99.0/24 dev eth0 scope link
IP_ROUTE_RECORD = re.compile(
r"^(\S+)\s+dev\s+(\S+)\s+proto\s+(\S+)\s+scope\s+link\s+"
r"^(\S+/\d+)\s+dev\s+(\S+)\s+proto\s+(\S+)\s+scope\s+link\s+"
)
IP_ROUTE_RECORD_SHORT = re.compile(r"^(\S+)\s+dev\s+(\S+)\s+scope\s+link\s+")
IP_ROUTE_RECORD_SHORT = re.compile(r"^(\S+/\d+)\s+dev\s+(\S+)\s+scope\s+link\s+")


class BaseParser(object):
Expand Down

0 comments on commit 170ae59

Please sign in to comment.