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

Feat(eos_cli_config_gen): Add switchport 'tap' and 'tool' mode config to the ethernet and port-channel interfaces #4174

Open
wants to merge 13 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 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 @@ -362,6 +362,31 @@ interface Ethernet1
l2 mru 8000
bgp session tracker ST1
no switchport
switchport tap native vlan 10
switchport tap identity 3 inner 5
switchport tap mac-address dest 01:00:00:00:00:00 src 01:23:45:67:89:ab
switchport tap mpls pop all
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 strip
MaheshGSLAB marked this conversation as resolved.
Show resolved Hide resolved
switchport tap encapsulation gre protocol 0x0001 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0010 strip
switchport tap encapsulation gre destination 2.1.1.3 source 2.1.1.4 strip
switchport tool mpls pop all
switchport tool encapsulation vn-tag strip
switchport tool encapsulation dot1br strip
switchport tap allowed vlan 25
switchport tool allowed vlan 23
switchport tool identity qinq
switchport tool identity dot1q source dzgre port
switchport tap truncation 150
switchport tool truncation
switchport tap default group g1 group g2 group g3
switchport tap default nexthop-group nexthop_g1 nexthop_g2 nexthop_g3
switchport tap default interface ethernet4
switchport tap default interface port-channel10
switchport tool group set group1 group2 group3
switchport tool dot1q remove outer 1
switchport tool dzgre preserve
ip address 172.31.255.1/31
ip verify unicast source reachable-via rx
bfd interval 500 min-rx 500 multiplier 5
Expand Down Expand Up @@ -434,6 +459,13 @@ interface Ethernet4
shutdown
mtu 9100
no switchport
switchport tap identity 5
switchport tap mac-address dest 01:00:00:00:00:00
switchport tap encapsulation vxlan strip
switchport tool identity dot1q
switchport tool identity qinq source dzgre policy inner port
switchport tap truncation
switchport tool truncation 160
snmp trap link-change
ipv6 enable
ipv6 address 2020::2020/64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,44 @@ interface Port-Channel99
interface Port-Channel100
logging event link-status
no switchport
switchport tap native vlan 10
switchport tap identity 3
switchport tap mac-address dest 01:00:00:00:00:00 src 01:23:45:67:89:ab
switchport tap mpls pop all
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0010 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0001 strip
switchport tap encapsulation gre destination 1.1.1.3 source 1.1.1.4 strip
switchport tool mpls pop all
switchport tool encapsulation vn-tag strip
switchport tool encapsulation dot1br strip
switchport tap allowed vlan 25
switchport tool allowed vlan 23
switchport tool identity qinq
switchport tool identity qinq source dzgre port inner policy
switchport tap truncation
switchport tool truncation 160
switchport tap default group g1 group g2 group g3
switchport tap default nexthop-group nexthop_g1 nexthop_g2 nexthop_g3
switchport tap default interface ethernet4
switchport tap default interface port-channel10
switchport tool group set group1 group2 group3
switchport tool dot1q remove outer 1-2
switchport tool dzgre preserve
!
interface Port-Channel100.101
description IFL for TENANT01
logging event link-status
mtu 1500
encapsulation dot1q vlan 101
switchport tap identity 3 inner 10
switchport tap mac-address dest 01:00:00:00:00:00
switchport tap encapsulation vxlan strip
switchport tool identity dot1q
switchport tool identity dot1q source dzgre policy
switchport tap truncation 120
switchport tool truncation
ip address 10.1.1.3/31
!
interface Port-Channel100.102
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@ interface Ethernet1
l2 mru 8000
bgp session tracker ST1
no switchport
switchport tap native vlan 10
switchport tap identity 3 inner 5
switchport tap mac-address dest 01:00:00:00:00:00 src 01:23:45:67:89:ab
switchport tap mpls pop all
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0001 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0010 strip
switchport tap encapsulation gre destination 2.1.1.3 source 2.1.1.4 strip
switchport tool mpls pop all
switchport tool encapsulation vn-tag strip
switchport tool encapsulation dot1br strip
switchport tap allowed vlan 25
switchport tool allowed vlan 23
switchport tool identity qinq
switchport tool identity dot1q source dzgre port
switchport tap truncation 150
switchport tool truncation
switchport tap default group g1 group g2 group g3
switchport tap default nexthop-group nexthop_g1 nexthop_g2 nexthop_g3
switchport tap default interface ethernet4
switchport tap default interface port-channel10
switchport tool group set group1 group2 group3
switchport tool dot1q remove outer 1
switchport tool dzgre preserve
ip address 172.31.255.1/31
ip verify unicast source reachable-via rx
bfd interval 500 min-rx 500 multiplier 5
Expand Down Expand Up @@ -87,6 +112,13 @@ interface Ethernet4
shutdown
mtu 9100
no switchport
switchport tap identity 5
switchport tap mac-address dest 01:00:00:00:00:00
switchport tap encapsulation vxlan strip
switchport tool identity dot1q
switchport tool identity qinq source dzgre policy inner port
switchport tap truncation
switchport tool truncation 160
snmp trap link-change
ipv6 enable
ipv6 address 2020::2020/64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,44 @@ interface Port-Channel99
interface Port-Channel100
logging event link-status
no switchport
switchport tap native vlan 10
switchport tap identity 3
switchport tap mac-address dest 01:00:00:00:00:00 src 01:23:45:67:89:ab
switchport tap mpls pop all
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0010 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0001 strip
switchport tap encapsulation gre destination 1.1.1.3 source 1.1.1.4 strip
switchport tool mpls pop all
switchport tool encapsulation vn-tag strip
switchport tool encapsulation dot1br strip
switchport tap allowed vlan 25
switchport tool allowed vlan 23
switchport tool identity qinq
switchport tool identity qinq source dzgre port inner policy
switchport tap truncation
switchport tool truncation 160
switchport tap default group g1 group g2 group g3
switchport tap default nexthop-group nexthop_g1 nexthop_g2 nexthop_g3
switchport tap default interface ethernet4
switchport tap default interface port-channel10
switchport tool group set group1 group2 group3
switchport tool dot1q remove outer 1-2
switchport tool dzgre preserve
MaheshGSLAB marked this conversation as resolved.
Show resolved Hide resolved
!
interface Port-Channel100.101
description IFL for TENANT01
logging event link-status
mtu 1500
encapsulation dot1q vlan 101
switchport tap identity 3 inner 10
switchport tap mac-address dest 01:00:00:00:00:00
switchport tap encapsulation vxlan strip
switchport tool identity dot1q
switchport tool identity dot1q source dzgre policy
switchport tap truncation 120
switchport tool truncation
ip address 10.1.1.3/31
!
interface Port-Channel100.102
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,64 @@ ethernet_interfaces:
switchport:
port_security:
enabled: true
tap:
allowed_vlan: 25
default:
groups:
- g2
- g1
- g3
nexthop_groups:
- nexthop_g1
- nexthop_g3
- nexthop_g2
interfaces:
- port-channel10
- ethernet4
identity:
port_id: 3
inner_port_id: 5
mpls_pop_all: true
native_vlan: 10
truncation:
enabled: true
size: 150
mac_address:
dest: 01:00:00:00:00:00
src: 01:23:45:67:89:ab
encapsulation:
gre:
- strip: true
- strip: true
destination: 1.1.1.1
source: 1.1.1.2
protocol: "0x0000"
- strip: true
protocol: "0x0001"
- strip: true
destination: 2.1.1.2
protocol: "0x0010"
- strip: false
- strip: true
destination: 2.1.1.3
source: 2.1.1.4
tool:
mpls_pop_all: true
encapsulation:
dot1br_strip: true
vn_tag_strip: true
allowed_vlan: 23
identity:
tag: qinq
dot1q_dzgre_source: port
truncation:
enabled: true
groups:
- group1
- group2
- group3
dot1q_remove_outer_vlan_tag: 1
dzgre_preserve: true
eos_cli: |
comment
Comment created from eos_cli under ethernet_interfaces.Ethernet1
Expand Down Expand Up @@ -177,6 +235,23 @@ ethernet_interfaces:
boundaries:
- boundary: ff00::/16
- boundary: ff01::/16
switchport:
tap:
identity:
port_id: 5
mac_address:
dest: 01:00:00:00:00:00
encapsulation:
vxlan_strip: true
truncation:
enabled: true
tool:
identity:
tag: dot1q
qinq_dzgre_source: policy inner port
truncation:
enabled: true
size: 160

- name: Ethernet5
description: Molecule Routing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,65 @@ port_channel_interfaces:
logging:
event:
link_status: true
switchport:
tap:
allowed_vlan: 25
default:
groups:
- g2
- g1
- g3
nexthop_groups:
- nexthop_g1
- nexthop_g3
- nexthop_g2
interfaces:
- port-channel10
- ethernet4
identity:
port_id: 3
mpls_pop_all: true
native_vlan: 10
truncation:
enabled: true
mac_address:
dest: 01:00:00:00:00:00
src: 01:23:45:67:89:ab
encapsulation:
gre:
- strip: true
- strip: true
destination: 1.1.1.1
source: 1.1.1.2
protocol: "0x0000"
- strip: true
protocol: "0x0010"
- strip: true
destination: 2.1.1.2
protocol: "0x0001"
- strip: false
- strip: true
destination: 1.1.1.3
source: 1.1.1.4
tool:
mpls_pop_all: true
encapsulation:
dot1br_strip: true
vn_tag_strip: true
allowed_vlan: 23
identity:
tag: qinq
qinq_dzgre_source: port inner policy
truncation:
enabled: true
size: 160
groups:
- group1
- group2
- group3
dot1q_remove_outer_vlan_tag: 1-2
dzgre_preserve: true

- name: Port-Channel100.101
type: l3dot1q
logging:
Expand All @@ -122,6 +181,25 @@ port_channel_interfaces:
mtu: 1500
ip_address: 10.1.1.3/31
encapsulation_dot1q_vlan: 101
switchport:
tap:
identity:
port_id: 3
inner_port_id: 10
mac_address:
dest: 01:00:00:00:00:00
encapsulation:
vxlan_strip: true
truncation:
enabled: true
size: 120
tool:
truncation:
enabled: true
identity:
tag: dot1q
dot1q_dzgre_source: policy

- name: Port-Channel100.102
type: l3dot1q
logging:
Expand All @@ -138,6 +216,7 @@ port_channel_interfaces:
- name: Port-Channel8
description: to Dev02 Port-channel 8
type: routed

- name: Port-Channel8.101
description: to Dev02 Port-Channel8.101 - VRF-C1
type: l3dot1q
Expand Down
Loading
Loading