Skip to content

Commit 057e4f9

Browse files
committed
SR-OS: recreate VLAN sap-id from interface name
The interface name is also used as port name in VLAN definition, so we have to strip the 'eth-' prefix there as well.
1 parent be3c391 commit 057e4f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • netsim/ansible/templates/vlan

netsim/ansible/templates/vlan/sros.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ updates:
2323
{% endif %}
2424
{% if l.type in ['vlan_member','lan'] %}
2525
{% set sap_id = l.ifname.replace("c1/","") if 'ixr' in clab.type and 'ixr-x' not in clab.type else l.ifname %}
26+
{% set sap_id = sap_id.replace("eth-","") %}
2627
sap:
2728
- sap-id: {{ sap_id if ':' in sap_id else (sap_id+"/1"+(":0" if native else "")) }}
2829
{% if native %}

0 commit comments

Comments
 (0)