Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netsim/modules/evpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def register_static_transit_vni(topology: Box) -> None:
continue

for vrf_name,vrf_data in n.vrfs.items():
if vrf_data.get('evpn.transit_vni',None):
if vrf_data and vrf_data.get('evpn.transit_vni',None):
log.error(
f'evpn.transit_vni can be specified only on global VRFs (found in {vrf_name} on {n.name}',
log.IncorrectValue,
Expand Down
2 changes: 2 additions & 0 deletions tests/errors/node-unsupported-module.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
IncorrectValue in modules: Device type vmx used by node n1 is not supported by module evpn
Fatal error in netlab: Cannot proceed beyond this point due to errors, exiting
12 changes: 12 additions & 0 deletions tests/errors/node-unsupported-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
defaults.device: vmx
defaults.provider: clab

module: [evpn,bgp,vrf]

bgp.as: 65000

nodes:
n1:
vrfs:
test:
evpn.bundle: vlan
Loading