Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Dec 17, 2024
1 parent 41c50eb commit 76735f7
Show file tree
Hide file tree
Showing 8 changed files with 474 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
!
no enable password
no aaa root
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname ptp-tests-l2leaf5
!
ptp clock-identity 00:1C:73:1e:00:03
ptp domain 127
ptp mode boundary
ptp priority1 30
ptp priority2 3
ptp monitor threshold offset-from-master 250
ptp monitor threshold mean-path-delay 1500
ptp monitor sequence-id
ptp monitor threshold missing-message sync 3 sequence-ids
ptp monitor threshold missing-message follow-up 3 sequence-ids
ptp monitor threshold missing-message delay-resp 3 sequence-ids
ptp monitor threshold missing-message announce 3 sequence-ids
!
vlan 11
name VLAN11
!
vrf instance MGMT
!
vrf instance VRF1
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
interface Ethernet1
description P2P_ptp-tests-spine1_Ethernet17
no shutdown
mtu 9214
no switchport
ip address 192.168.1.9/31
ptp enable
ptp announce interval 0
ptp announce timeout 3
ptp delay-req interval -3
ptp sync-message interval -3
ptp transport ipv4
!
interface Ethernet2
description P2P_ptp-tests-spine2_Ethernet17
no shutdown
mtu 9214
no switchport
ip address 192.168.1.11/31
ptp enable
ptp announce interval 0
ptp announce timeout 3
ptp delay-req interval -3
ptp sync-message interval -3
ptp transport ipv4
!
interface Loopback0
description ROUTER_ID
no shutdown
ip address 192.168.3.3/32
!
interface Loopback1
description VXLAN_TUNNEL_SOURCE
no shutdown
ip address 192.168.2.3/32
!
interface Vlan11
description VLAN11
no shutdown
vrf VRF1
!
interface Vxlan1
description ptp-tests-l2leaf5_VTEP
vxlan source-interface Loopback1
vxlan udp-port 4789
vxlan vlan 11 vni 10011
vxlan vrf VRF1 vni 1
!
ip routing
no ip routing vrf MGMT
ip routing vrf VRF1
!
ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY
seq 10 permit 192.168.3.0/24 eq 32
seq 20 permit 192.168.2.0/24 eq 32
!
ip route vrf MGMT 0.0.0.0/0 192.168.0.1
!
route-map RM-CONN-2-BGP permit 10
match ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY
!
router bfd
multihop interval 300 min-rx 300 multiplier 3
!
router bgp 65010
router-id 192.168.3.3
update wait-install
no bgp default ipv4-unicast
maximum-paths 4 ecmp 4
neighbor EVPN-OVERLAY-PEERS peer group
neighbor EVPN-OVERLAY-PEERS update-source Loopback0
neighbor EVPN-OVERLAY-PEERS bfd
neighbor EVPN-OVERLAY-PEERS ebgp-multihop 3
neighbor EVPN-OVERLAY-PEERS send-community
neighbor EVPN-OVERLAY-PEERS maximum-routes 0
neighbor IPv4-UNDERLAY-PEERS peer group
neighbor IPv4-UNDERLAY-PEERS send-community
neighbor IPv4-UNDERLAY-PEERS maximum-routes 12000
neighbor 10.255.0.1 peer group EVPN-OVERLAY-PEERS
neighbor 10.255.0.1 remote-as 65200
neighbor 10.255.0.1 description ptp-tests-spine1_Loopback0
neighbor 10.255.0.2 peer group EVPN-OVERLAY-PEERS
neighbor 10.255.0.2 remote-as 65200
neighbor 10.255.0.2 description ptp-tests-spine2_Loopback0
neighbor 192.168.1.8 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.8 remote-as 65200
neighbor 192.168.1.8 description ptp-tests-spine1_Ethernet17
neighbor 192.168.1.10 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.10 remote-as 65200
neighbor 192.168.1.10 description ptp-tests-spine2_Ethernet17
redistribute connected route-map RM-CONN-2-BGP
!
vlan 11
rd 192.168.3.3:10011
route-target both 10011:10011
redistribute learned
!
address-family evpn
neighbor EVPN-OVERLAY-PEERS activate
!
address-family ipv4
no neighbor EVPN-OVERLAY-PEERS activate
neighbor IPv4-UNDERLAY-PEERS activate
!
vrf VRF1
rd 192.168.3.3:1
route-target import evpn 1:1
route-target export evpn 1:1
router-id 192.168.3.3
redistribute connected
!
end
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,19 @@ interface Ethernet16
ptp sync-message interval -3
ptp transport ipv4
!
interface Ethernet17
description P2P_ptp-tests-l2leaf5_Ethernet1
no shutdown
mtu 9214
no switchport
ip address 192.168.1.8/31
ptp enable
ptp announce interval 0
ptp announce timeout 3
ptp delay-req interval -3
ptp sync-message interval -3
ptp transport ipv4
!
interface Loopback0
description ROUTER_ID
no shutdown
Expand Down Expand Up @@ -225,12 +238,18 @@ router bgp 65200
neighbor 192.168.1.5 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.5 remote-as 65010
neighbor 192.168.1.5 description ptp-tests-l2leaf4_Ethernet1
neighbor 192.168.1.9 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.9 remote-as 65010
neighbor 192.168.1.9 description ptp-tests-l2leaf5_Ethernet1
neighbor 192.168.3.1 peer group EVPN-OVERLAY-PEERS
neighbor 192.168.3.1 remote-as 65010
neighbor 192.168.3.1 description ptp-tests-l2leaf3_Loopback0
neighbor 192.168.3.2 peer group EVPN-OVERLAY-PEERS
neighbor 192.168.3.2 remote-as 65010
neighbor 192.168.3.2 description ptp-tests-l2leaf4_Loopback0
neighbor 192.168.3.3 peer group EVPN-OVERLAY-PEERS
neighbor 192.168.3.3 remote-as 65010
neighbor 192.168.3.3 description ptp-tests-l2leaf5_Loopback0
redistribute connected route-map RM-CONN-2-BGP
!
address-family evpn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ interface Ethernet16
ptp sync-message interval -3
ptp transport ipv4
!
interface Ethernet17
description P2P_ptp-tests-l2leaf5_Ethernet2
no shutdown
mtu 9214
no switchport
ip address 192.168.1.10/31
ptp enable
ptp announce interval 0
ptp announce timeout 3
ptp delay-req interval -3
ptp sync-message interval -3
ptp transport ipv4
!
interface Loopback0
description ROUTER_ID
no shutdown
Expand Down Expand Up @@ -156,12 +169,18 @@ router bgp 65200
neighbor 192.168.1.7 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.7 remote-as 65010
neighbor 192.168.1.7 description ptp-tests-l2leaf4_Ethernet2
neighbor 192.168.1.11 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.11 remote-as 65010
neighbor 192.168.1.11 description ptp-tests-l2leaf5_Ethernet2
neighbor 192.168.3.1 peer group EVPN-OVERLAY-PEERS
neighbor 192.168.3.1 remote-as 65010
neighbor 192.168.3.1 description ptp-tests-l2leaf3_Loopback0
neighbor 192.168.3.2 peer group EVPN-OVERLAY-PEERS
neighbor 192.168.3.2 remote-as 65010
neighbor 192.168.3.2 description ptp-tests-l2leaf4_Loopback0
neighbor 192.168.3.3 peer group EVPN-OVERLAY-PEERS
neighbor 192.168.3.3 remote-as 65010
neighbor 192.168.3.3 description ptp-tests-l2leaf5_Loopback0
redistribute connected route-map RM-CONN-2-BGP
!
address-family evpn
Expand Down
Loading

0 comments on commit 76735f7

Please sign in to comment.