File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1068,11 +1068,15 @@ def resolve_routers():
10681068 all_router_vlans = set ()
10691069 for router_name , router in self .routers .items ():
10701070 vips = set ()
1071+ if router .vlans and len (router .vlans ) == 1 :
1072+ lone_vlan = router .vlans [0 ]
1073+ test_config_condition (
1074+ lone_vlan in all_router_vlans , 'single VLAN %s in more than one router' % lone_vlan )
10711075 for vlan in router .vlans :
10721076 vips .update ({vip for vip in vlan .faucet_vips if not vip .ip .is_link_local })
10731077 test_config_condition (
10741078 vlan in all_router_vlans , 'VLAN %s in more than one router' % vlan )
1075- all_router_vlans .add ( vlan )
1079+ all_router_vlans .update ( router . vlans )
10761080 for vip in vips :
10771081 for other_vip in vips - set ([vip ]):
10781082 test_config_condition (
You can’t perform that action at this time.
0 commit comments