Skip to content

Commit 017ecdf

Browse files
authored
Lag: Refuse to work with bridge devices, things like IP allocation don't behave as expected (#2531)
Addresses #2528
1 parent 4bd6c3e commit 017ecdf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

netsim/modules/lag.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def check_lag_config(node: str, linkname: str, topology: Box) -> bool:
6060
category=log.IncorrectAttr,
6161
module='lag')
6262
return False
63+
if _n.get('role',None)=='bridge':
64+
log.error('The lag module is not designed to be used with bridge devices',
65+
category=log.IncorrectAttr,
66+
module='lag')
67+
return False
6368
return True
6469

6570
"""

0 commit comments

Comments
 (0)