File tree 2 files changed +2
-2
lines changed
netsim/ansible/templates/vlan
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 32
32
vlan:
33
33
'{{ i.vlan.access_id }}': {}
34
34
{% endif %}
35
- untagged: {{ i.vlan.access_id if i.vlan.native is defined or _allow_all_vlans else 'none' }}
35
+ untagged: {{ i.vlan.access_id|default(1) if i.vlan.native is defined or _allow_all_vlans else 'none' }}
36
36
{% else %}
37
37
access: {{ i.vlan.access_id }}
38
38
{% endif %}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ interface {{ ifdata.ifname }}
13
13
switchport mode trunk
14
14
switchport trunk allowed vlan {{ 'all' if '_allow_all' in ifdata.vlan else ifdata.vlan.trunk_id|sort|join(",") }}
15
15
{% if ifdata .vlan .native is defined or '_allow_all' in ifdata .vlan %}
16
- switchport trunk native vlan {{ ifdata.vlan.access_id }}
16
+ switchport trunk native vlan {{ ifdata.vlan.access_id|default(1) }}
17
17
{% else %}
18
18
switchport trunk native vlan tag
19
19
{% endif %}
You can’t perform that action at this time.
0 commit comments