Skip to content

Commit

Permalink
Fix(eos_cli_config_gen): Render access vlan on port-channel interface…
Browse files Browse the repository at this point in the history
…s if mode is dot1q-tunnel. (#3920)
  • Loading branch information
Shivani-gslab committed Apr 30, 2024
1 parent a92b35a commit ee4d3f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ interface Ethernet50
| Port-Channel121 | access_port_with_no_vlans | switched | access | - | - | - | - | - | - | - |
| Port-Channel122 | trunk_port_with_no_vlans | switched | trunk | - | - | - | - | - | - | - |
| Port-Channel130 | IP NAT Testing | switched | access | - | - | - | - | - | - | - |
| Port-Channel131 | dot1q-tunnel mode | switched | dot1q-tunnel | - | - | - | - | - | - | - |
| Port-Channel131 | dot1q-tunnel mode | switched | dot1q-tunnel | 115 | - | - | - | - | - | - |

##### Encapsulation Dot1q

Expand Down Expand Up @@ -707,6 +707,7 @@ interface Port-Channel130
interface Port-Channel131
description dot1q-tunnel mode
switchport
switchport access vlan 115
switchport mode dot1q-tunnel
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ interface Port-Channel130
interface Port-Channel131
description dot1q-tunnel mode
switchport
switchport access vlan 115
switchport mode dot1q-tunnel
!
interface Ethernet3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ port_channel_interfaces:
description: dot1q-tunnel mode
type: switched
mode: dot1q-tunnel
vlans: 115


# Children interfaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface {{ port_channel_interface.name }}
{% elif port_channel_interface.type | arista.avd.default("switched") == 'switched' %}
switchport
{% endif %}
{% if port_channel_interface.vlans is arista.avd.defined and port_channel_interface.mode is arista.avd.defined("access") %}
{% if port_channel_interface.vlans is arista.avd.defined and port_channel_interface.mode in ["access", "dot1q-tunnel"] %}
switchport access vlan {{ port_channel_interface.vlans }}
{% endif %}
{% if port_channel_interface.vlans is arista.avd.defined and port_channel_interface.mode is arista.avd.defined("trunk") %}
Expand Down

0 comments on commit ee4d3f0

Please sign in to comment.