diff --git a/netsim/extra/repeater/plugin.py b/netsim/extra/repeater/plugin.py index 1fcb07e02..31f261b35 100644 --- a/netsim/extra/repeater/plugin.py +++ b/netsim/extra/repeater/plugin.py @@ -68,7 +68,7 @@ def repeat_node(node: Box, topology: Box) -> None: if 'groups' in topology: for group in topology.groups.values(): - if node.name in group.members: + if isinstance(group,dict) and node.name in group.get('members',[]): # Groups can include 'bool flags too group.members.extend( clones ) if 'vlans' in topology: diff --git a/tests/topology/input/repeater-plugin.yml b/tests/topology/input/repeater-plugin.yml index cb4a02b64..ad5cf2ed5 100644 --- a/tests/topology/input/repeater-plugin.yml +++ b/tests/topology/input/repeater-plugin.yml @@ -8,6 +8,7 @@ vlans: links: [r-h] # VLAN links get updated groups: + _auto_create: True # Test presence of bool flag hosts: members: [h] # Gets updated with cloned nodes