Skip to content

Commit

Permalink
LAG: Postpone link cleanup until after vlan module_post_link_transfor…
Browse files Browse the repository at this point in the history
…m runs (#1882)
  • Loading branch information
jbemmel authored Feb 4, 2025
1 parent 5f68d0f commit d652860
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netsim/modules/lag.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@ def link_pre_link_transform(self, link: Box, topology: Box) -> None:
intf.type = intf.pop('_type')

"""
module_post_link_transform - remove temporary 'virtual_lag' links
module_post_transform - remove temporary 'virtual_lag' links
"""
def module_post_link_transform(self, topology: Box) -> None:
def module_post_transform(self, topology: Box) -> None:
if log.debug_active('lag'):
print(f'LAG module_post_link_transform: Cleanup "virtual_lag" links')
print(f'LAG module_post_transform: Cleanup "virtual_lag" links')
topology.links = [ link for link in topology.links if '_virtual_lag' not in link ]

"""
Expand Down

0 comments on commit d652860

Please sign in to comment.