Skip to content

Commit

Permalink
Feat(eos_designs): Only enable PTP on certain uplinks (#4819)
Browse files Browse the repository at this point in the history
  • Loading branch information
laxmikantchintakindi authored Jan 29, 2025
1 parent 48a9b58 commit 837e595
Show file tree
Hide file tree
Showing 17 changed files with 1,450 additions and 3 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-leaf3
!
ptp clock-identity 00:1C:73:1e:00:01
ptp domain 127
ptp mode boundary
ptp priority1 30
ptp priority2 1
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_Ethernet15
no shutdown
mtu 9214
no switchport
ip address 192.168.1.1/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_Ethernet15
no shutdown
mtu 9214
no switchport
ip address 192.168.1.3/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.1/32
!
interface Loopback1
description VXLAN_TUNNEL_SOURCE
no shutdown
ip address 192.168.2.1/32
!
interface Vlan11
description VLAN11
no shutdown
vrf VRF1
!
interface Vxlan1
description ptp-tests-leaf3_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.1
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.0 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.0 remote-as 65200
neighbor 192.168.1.0 description ptp-tests-spine1_Ethernet15
neighbor 192.168.1.2 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.2 remote-as 65200
neighbor 192.168.1.2 description ptp-tests-spine2_Ethernet15
redistribute connected route-map RM-CONN-2-BGP
!
vlan 11
rd 192.168.3.1: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.1:1
route-target import evpn 1:1
route-target export evpn 1:1
router-id 192.168.3.1
redistribute connected
!
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
!
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-leaf4
!
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_Ethernet16
no shutdown
mtu 9214
no switchport
ip address 192.168.1.5/31
!
interface Ethernet2
description P2P_ptp-tests-spine2_Ethernet16
no shutdown
mtu 9214
no switchport
ip address 192.168.1.7/31
!
interface Loopback0
description ROUTER_ID
no shutdown
ip address 192.168.3.2/32
!
interface Loopback1
description VXLAN_TUNNEL_SOURCE
no shutdown
ip address 192.168.2.2/32
!
interface Vlan11
description VLAN11
no shutdown
vrf VRF1
!
interface Vxlan1
description ptp-tests-leaf4_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.2
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.4 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.4 remote-as 65200
neighbor 192.168.1.4 description ptp-tests-spine1_Ethernet16
neighbor 192.168.1.6 peer group IPv4-UNDERLAY-PEERS
neighbor 192.168.1.6 remote-as 65200
neighbor 192.168.1.6 description ptp-tests-spine2_Ethernet16
redistribute connected route-map RM-CONN-2-BGP
!
vlan 11
rd 192.168.3.2: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.2:1
route-target import evpn 1:1
route-target export evpn 1:1
router-id 192.168.3.2
redistribute connected
!
end
Loading

0 comments on commit 837e595

Please sign in to comment.