Skip to content

Commit

Permalink
Bug fix: Check SR Linux device type when using MPLS module
Browse files Browse the repository at this point in the history
  • Loading branch information
ipspace committed Jul 30, 2024
1 parent 6cc43f1 commit ff1ad6e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions netsim/devices/srlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,17 @@ def device_quirks(self, node: Box, topology: Box) -> None:
for c,vals in topology.get('bgp.community',[]).items():
if 'extended' not in vals:
log.error(
f'SR Linux on ({node.name}) does not support filtering out extended communities for BGP. {c}:{vals}\n',
Warning,
'quirks')
f'SR Linux on ({node.name}) does not support filtering out extended communities for BGP. {c}:{vals}\n',
Warning,
'quirks')

if 'mpls' in mods:
dt = node.clab.type
if dt not in ['ixr6','ixr10','ixr6e','ixr10e']:
log.error(
f'SR Linux device type must be set to ixr6/ixr10 for MPLS to work (node {node.name})',
log.IncorrectValue,
'quirks')

def check_config_sw(self, node: Box, topology: Box) -> None:
need_ansible_collection(node,'nokia.grpc')

0 comments on commit ff1ad6e

Please sign in to comment.