Skip to content

Commit

Permalink
'interfaces' should be 'neighbors' - clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel committed Dec 25, 2024
1 parent d4bad27 commit 130ad54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions netsim/extra/bonding/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ def post_transform(topology: Box) -> None:
bonds[node.name][bond_ifindex][att] = intf.pop(att,None)
if intf.get('bonding.primary',False):
bonds[node.name][bond_ifindex]['primary'] = intf.ifname

#
# Clean up interface neighbors leaving only directly reachable peers (as opposed to - say -
# VLAN neighbors in the form of other hosts), moving the rest to bond[x].neighbors
#
intf.neighbors = [ { 'ifname': i.ifname, 'node': i.node } for i in link.interfaces if i.node!=node.name ]
intf.prefix = False # L2 interface
intf.pop('name',None)
Expand Down

0 comments on commit 130ad54

Please sign in to comment.