Skip to content

Commit

Permalink
Adding required for out direction in vlan_translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Aug 21, 2024
1 parent d03e741 commit 69ab601
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ sFlow is disabled.
| --------- | ----------- | ---- | ----- | ----------- | ----------- | ------------- |
| Ethernet1 | P2P_LINK_TO_DC1-SPINE1_Ethernet1 | dot1q-tunnel | 110-111,200,210-211 | tag | ['g1', 'g2'] | - |
| Ethernet2 | SRV-POD02_Eth1 | trunk | 110-111,210-211 | - | - | - |
| Ethernet3 | P2P_LINK_TO_DC1-SPINE2_Ethernet2 | - | | 5 | - | - |
| Ethernet3 | P2P_LINK_TO_DC1-SPINE2_Ethernet2 | trunk | | 5 | - | - |
| Ethernet5 | Molecule Routing | - | 220 | - | - | - |
| Ethernet6 | SRV-POD02_Eth1 | trunk | 110-111,210-211 | - | - | - |
| Ethernet7 | Molecule L2 | - | - | - | - | - |
Expand Down Expand Up @@ -440,7 +440,6 @@ interface Ethernet1
!
interface Ethernet2
description SRV-POD02_Eth1
switchport vlan translation in required
switchport dot1q vlan tag disallowed
switchport trunk allowed vlan 110-111,210-211
switchport mode trunk
Expand All @@ -462,8 +461,8 @@ interface Ethernet2
interface Ethernet3
description P2P_LINK_TO_DC1-SPINE2_Ethernet2
mtu 1500
switchport mode trunk
switchport trunk native vlan 5
switchport mode trunk
no switchport
switchport vlan translation out 23 dot1q-tunnel 50
no snmp trap link-change
Expand Down Expand Up @@ -646,6 +645,7 @@ interface Ethernet15
!
interface Ethernet16
description PVLAN Promiscuous Trunk - vlan translation out
switchport vlan translation out required
switchport trunk allowed vlan 110-112
switchport mode trunk
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ interface Port-Channel101
!
interface Port-Channel102
description PVLAN Promiscuous Trunk - vlan translation out
switchport vlan translation out required
switchport trunk allowed vlan 110-112
switchport mode trunk
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ interface Ethernet1
!
interface Ethernet2
description SRV-POD02_Eth1
switchport vlan translation in required
switchport dot1q vlan tag disallowed
switchport trunk allowed vlan 110-111,210-211
switchport mode trunk
Expand All @@ -89,8 +88,8 @@ interface Ethernet2
interface Ethernet3
description P2P_LINK_TO_DC1-SPINE2_Ethernet2
mtu 1500
switchport mode trunk
switchport trunk native vlan 5
switchport mode trunk
no switchport
switchport vlan translation out 23 dot1q-tunnel 50
no snmp trap link-change
Expand Down Expand Up @@ -273,6 +272,7 @@ interface Ethernet15
!
interface Ethernet16
description PVLAN Promiscuous Trunk - vlan translation out
switchport vlan translation out required
switchport trunk allowed vlan 110-112
switchport mode trunk
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ interface Port-Channel101
!
interface Port-Channel102
description PVLAN Promiscuous Trunk - vlan translation out
switchport vlan translation out required
switchport trunk allowed vlan 110-112
switchport mode trunk
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ethernet_interfaces:
ethertype: 1536
vlan_tag: required
vlan_translations:
required: true
in_required: true
direction_in:
- from: 10
to: 24
Expand Down Expand Up @@ -178,7 +178,7 @@ ethernet_interfaces:
mode: protect
protect_log: true
vlan_translations:
required: true
in_required: false
backup_link:
prefer_vlan: 20

Expand Down Expand Up @@ -212,10 +212,10 @@ ethernet_interfaces:
spanning_tree_guard: root
tcp_mss_ceiling:
ipv6_segment_size: 65
mode: trunk
# test for switchport settings
switchport:
enabled: false
mode: trunk
trunk:
native_vlan: 5
port_security:
Expand All @@ -228,6 +228,7 @@ ethernet_interfaces:
- range: 1-3
mac_address_maximum: 3
vlan_translations:
out_required: false
direction_out:
- from: 23
dot1q_tunnel:
Expand Down Expand Up @@ -480,6 +481,7 @@ ethernet_interfaces:
trunk:
allowed_vlan: 110-112
vlan_translations:
out_required: true
direction_out:
- from: 111-112
to: 110
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ port_channel_interfaces:
vlan_tag: required
source_interface: tx multicast
vlan_translations:
required: true
in_required: true
direction_in:
- from: 34
to: 23
Expand Down Expand Up @@ -366,6 +366,7 @@ port_channel_interfaces:
trunk:
allowed_vlan: 110-112
vlan_translations:
out_required: true
direction_out:
- from: 111-112
to: 110
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,12 @@ interface {{ ethernet_interface.name }}
{% if ethernet_interface.switchport.phone.trunk is arista.avd.defined %}
switchport phone trunk {{ ethernet_interface.switchport.phone.trunk }}
{% endif %}
{% if ethernet_interface.switchport.vlan_translations.required is arista.avd.defined(true) %}
{% if ethernet_interface.switchport.vlan_translations.in_required is arista.avd.defined(true) %}
switchport vlan translation in required
{% endif %}
{% if ethernet_interface.switchport.vlan_translations.out_required is arista.avd.defined(true) %}
switchport vlan translation out required
{% endif %}
{% if ethernet_interface.switchport.dot1q.vlan_tag is arista.avd.defined %}
switchport dot1q vlan tag {{ ethernet_interface.switchport.dot1q.vlan_tag }}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,12 @@ interface {{ port_channel_interface.name }}
{% if port_channel_interface.switchport.phone.trunk is arista.avd.defined %}
switchport phone trunk {{ port_channel_interface.switchport.phone.trunk }}
{% endif %}
{% if port_channel_interface.switchport.vlan_translations.required is arista.avd.defined(true) %}
{% if port_channel_interface.switchport.vlan_translations.in_required is arista.avd.defined(true) %}
switchport vlan translation in required
{% endif %}
{% if port_channel_interface.switchport.vlan_translations.out_required is arista.avd.defined(true) %}
switchport vlan translation out required
{% endif %}
{% if port_channel_interface.switchport.dot1q.vlan_tag is arista.avd.defined %}
switchport dot1q vlan tag {{ port_channel_interface.switchport.dot1q.vlan_tag }}
{% endif %}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1555,9 +1555,12 @@ keys:
Warning: This should not be combined with `ethernet_interfaces[].vlan_translations`.
type: dict
keys:
required:
in_required:
type: bool
description: Drop the ingress packets that do not match any VLAN mapping.
out_required:
type: bool
description: Drop the egress packets that do not match any VLAN mapping.
direction_in:
type: list
description: Map ingress packets only.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1002,9 +1002,12 @@ keys:
Warning: This should not be combined with `port_channel_interfaces[].vlan_translations`.
type: dict
keys:
required:
in_required:
type: bool
description: Drop the ingress packets that do not match any VLAN mapping.
out_required:
type: bool
description: Drop the egress packets that do not match any VLAN mapping.
direction_in:
type: list
description: Map ingress packets only.
Expand Down

0 comments on commit 69ab601

Please sign in to comment.