Skip to content

Commit

Permalink
Merge pull request #943 from netenglabs/fix-routes-eos-connected
Browse files Browse the repository at this point in the history
Eos routes wrong nexthopIps for protocol=connected entries
  • Loading branch information
ddutt authored May 23, 2024
2 parents 9cdeb63 + 1565f60 commit 7499645
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions suzieq/poller/worker/services/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def _clean_eos_data(self, processed_data, _):
entry['oifs'] = len(entry['nexthopIps']) * \
['_nexthopVrf:default']
entry['protocol'] = entry['protocol'].lower()
if entry['protocol'] == 'connected':
entry['nexthopIps'] = []
entry['preference'] = int(entry.get('preference', 0))
entry['metric'] = int(entry.get('metric', 0))
self._fix_ipvers(entry)
Expand Down

0 comments on commit 7499645

Please sign in to comment.