Skip to content

Commit

Permalink
Cisconx9 routing accept only dict (ignore lo routes)
Browse files Browse the repository at this point in the history
  • Loading branch information
juztas authored Jan 3, 2024
1 parent b3b2e79 commit 62c4978
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/modules/cisconx9_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ def populate_ip46(self, respid, resptype):
self.facts.setdefault(resptype, [])
for intdict in self.responses[respid].get('TABLE_vrf', {}).get('ROW_vrf', []):
for routeEntry in intdict.get('TABLE_addrf', {}).get('ROW_addrf').get('TABLE_prefix', {}).get('ROW_prefix', []):
if not isinstance(routeEntry, dict):
continue
tmpdict = {'vrf': intdict['vrf-name-out']}
if 'ipprefix' in routeEntry:
tmpdict['to'] = routeEntry['ipprefix']
Expand Down

0 comments on commit 62c4978

Please sign in to comment.