Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(eos_cli_config_gen): Render access vlan on port-channel interfaces if mode is dot1q-tunnel. #3920

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading