Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add switchport 'tap' and 'tool' mode config…
Browse files Browse the repository at this point in the history
… to data-model
  • Loading branch information
Shivani-gslab committed Jul 2, 2024
1 parent 972cb49 commit 9cc2279
Show file tree
Hide file tree
Showing 15 changed files with 4,041 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,27 @@ 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 encapsulation vxlan strip
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 feature header length 10 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 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
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,25 @@ 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 encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 protocol 0x0000 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 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 dzgre preserve
!
interface Port-Channel100.101
description IFL for TENANT01
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,27 @@ 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 encapsulation vxlan strip
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 feature header length 10 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 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
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,25 @@ 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 encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 protocol 0x0000 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 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 dzgre preserve
!
interface Port-Channel100.101
description IFL for TENANT01
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,55 @@ 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:
vxlan_strip: true
gre_strip: true
gre:
destination: 1.1.1.1
source: 1.1.1.2
protocol: "0x0000"
feature_header_length: 10
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
dzgre_preserve: true
eos_cli: |
comment
Comment created from eos_cli under ethernet_interfaces.Ethernet1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,53 @@ 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
gre:
destination: 1.1.1.1
protocol: "0x0000"
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
dzgre_preserve: true

- name: Port-Channel100.101
type: l3dot1q
logging:
Expand All @@ -122,6 +169,7 @@ port_channel_interfaces:
mtu: 1500
ip_address: 10.1.1.3/31
encapsulation_dot1q_vlan: 101

- name: Port-Channel100.102
type: l3dot1q
logging:
Expand All @@ -138,6 +186,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

0 comments on commit 9cc2279

Please sign in to comment.