Skip to content

Commit

Permalink
Check for passive lag_mode too
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel committed Oct 5, 2024
1 parent 263f106 commit 2c11300
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions netsim/modules/lag.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ def link_pre_transform(self, link: Box, topology: Box) -> None:
category=log.IncorrectAttr,
module='lag',
hint='lag')
ATT = 'lag.lacp_mode'
lacp_mode = i.get(ATT) or link.get(ATT) or n.get(ATT) or topology.defaults.get(ATT)
if lacp_mode=='passive' and not features.lag.get('passive',False):
log.error(
f'Node {n.name} does not support passive LACP configured on link {link._linkname}',
category=log.IncorrectAttr,
module='lag',
hint='lag')

if isinstance(link.lag.members,int):
count = link.lag.members
Expand Down

0 comments on commit 2c11300

Please sign in to comment.