Skip to content

Commit

Permalink
Dell OS10: Fix default VLAN case of 1
Browse files Browse the repository at this point in the history
When creating a vlan trunk on Dell OS10 containing the native vlan 1, OS10 complains when VLAN 1 is included in the trunk since it is also (implicitly) defined as an access VLAN

If the access_id is not set, it defaults to 1 - not 0
  • Loading branch information
jbemmel authored Jan 25, 2025
1 parent 5b580c0 commit 93fda16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netsim/ansible/templates/vlan/dellos10.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface {{ ifdata.ifname }}
switchport mode trunk

{% set vid_list = [] %}
{% for vid in ifdata.vlan.trunk_id if vid != ifdata.vlan.access_id|default(0) %}
{% for vid in ifdata.vlan.trunk_id if vid != ifdata.vlan.access_id|default(1) %}
{{ vid_list.append(vid) }}
{% endfor %}

Expand Down

0 comments on commit 93fda16

Please sign in to comment.