Skip to content

Commit

Permalink
Bonding: Fix bond creation when bonding.ifindex==0
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel authored Jan 2, 2025
1 parent ca7ab3d commit 43fa089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netsim/extra/bonding/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def post_transform(topology: Box) -> None:
features = devices.get_device_features(node,topology.defaults)
for intf in node.get('interfaces',[]):
bond_ifindex = intf.get('bonding.ifindex',None)
if not bond_ifindex:
if bond_ifindex is None:
continue
if not 'bonding' in features:
log.error( f"Node {node.name}({node.device}) does not support 'bonding.ifindex' used on {intf.name}",
Expand Down

0 comments on commit 43fa089

Please sign in to comment.