Skip to content

Commit

Permalink
Avoid setting interfaces to '{}'
Browse files Browse the repository at this point in the history
Possibly points at wrong calling order for set_fhrp_gateway
  • Loading branch information
jbemmel authored Oct 7, 2024
1 parent 11953c7 commit 03fc698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netsim/augment/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def set_fhrp_gateway(link: Box, pfx_list: Box, nodes: Box, link_path: str) -> No
if not fhrp_assigned:
return

for intf in link.interfaces: # Copy link gateway into interface attributes
for intf in link.get('interfaces',[]): # Copy link gateway into interface attributes
if 'gateway' in nodes[intf.node].get('module',[]): # ... but only for nodes using the gateway module
for af in log.AF_LIST:
if af in link.gateway:
Expand Down

0 comments on commit 03fc698

Please sign in to comment.