Skip to content

Commit

Permalink
Merge pull request #16490 from adrianomarto/master
Browse files Browse the repository at this point in the history
tests: Test MSDP RPF
  • Loading branch information
donaldsharp authored Jul 28, 2024
2 parents 593677b + e64d15b commit 9ce5a04
Show file tree
Hide file tree
Showing 16 changed files with 565 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/topotests/msdp_topo2/r1/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
router bgp 65001
no bgp ebgp-requires-policy
neighbor 192.168.1.2 remote-as 65002
neighbor 192.168.3.3 remote-as 65003
address-family ipv4 unicast
redistribute connected
exit-address-family
!
20 changes: 20 additions & 0 deletions tests/topotests/msdp_topo2/r1/pimd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
! debug pim
! debug pim zebra
!
interface lo
ip pim
ip pim use-source 10.254.254.1
!
interface r1-eth0
ip pim
!
interface r1-eth1
ip pim
!
interface r1-eth2
ip pim
ip igmp
!
ip msdp peer 192.168.1.2 source 192.168.1.1
ip msdp peer 192.168.3.3 source 192.168.3.1
ip pim rp 10.254.254.1
14 changes: 14 additions & 0 deletions tests/topotests/msdp_topo2/r1/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ip forwarding
!
interface r1-eth0
ip address 192.168.1.1/24
!
interface r1-eth1
ip address 192.168.3.1/24
!
interface r1-eth2
ip address 192.168.6.1/24
!
interface lo
ip address 10.254.254.1/32
!
8 changes: 8 additions & 0 deletions tests/topotests/msdp_topo2/r2/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
router bgp 65002
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 65001
neighbor 192.168.2.5 remote-as 65005
address-family ipv4 unicast
redistribute connected
exit-address-family
!
16 changes: 16 additions & 0 deletions tests/topotests/msdp_topo2/r2/pimd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
! debug pim
! debug pim zebra
!
interface lo
ip pim
ip pim use-source 10.254.254.2
!
interface r2-eth0
ip pim
!
interface r2-eth1
ip pim
!
ip msdp peer 192.168.1.1 source 192.168.1.2
ip msdp peer 192.168.2.5 source 192.168.2.2
ip pim rp 10.254.254.2
11 changes: 11 additions & 0 deletions tests/topotests/msdp_topo2/r2/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ip forwarding
!
interface r2-eth0
ip address 192.168.1.2/24
!
interface r2-eth1
ip address 192.168.2.2/24
!
interface lo
ip address 10.254.254.2/32
!
8 changes: 8 additions & 0 deletions tests/topotests/msdp_topo2/r3/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
router bgp 65003
no bgp ebgp-requires-policy
neighbor 192.168.3.1 remote-as 65001
neighbor 192.168.4.4 remote-as 65004
address-family ipv4 unicast
redistribute connected
exit-address-family
!
16 changes: 16 additions & 0 deletions tests/topotests/msdp_topo2/r3/pimd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
! debug pim
! debug pim zebra
!
interface lo
ip pim
ip pim use-source 10.254.254.3
!
interface r3-eth0
ip pim
!
interface r3-eth1
ip pim
!
ip msdp peer 192.168.3.1 source 192.168.3.3
ip msdp peer 192.168.4.4 source 192.168.4.3
ip pim rp 10.254.254.3
11 changes: 11 additions & 0 deletions tests/topotests/msdp_topo2/r3/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ip forwarding
!
interface r3-eth0
ip address 192.168.3.3/24
!
interface r3-eth1
ip address 192.168.4.3/24
!
interface lo
ip address 10.254.254.3/32
!
8 changes: 8 additions & 0 deletions tests/topotests/msdp_topo2/r4/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
router bgp 65004
no bgp ebgp-requires-policy
neighbor 192.168.4.3 remote-as 65003
neighbor 192.168.5.5 remote-as 65005
address-family ipv4 unicast
redistribute connected
exit-address-family
!
16 changes: 16 additions & 0 deletions tests/topotests/msdp_topo2/r4/pimd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
! debug pim
! debug pim zebra
!
interface lo
ip pim
ip pim use-source 10.254.254.4
!
interface r4-eth0
ip pim
!
interface r4-eth1
ip pim
!
ip msdp peer 192.168.4.3 source 192.168.4.4
ip msdp peer 192.168.5.5 source 192.168.5.4
ip pim rp 10.254.254.4
11 changes: 11 additions & 0 deletions tests/topotests/msdp_topo2/r4/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ip forwarding
!
interface r4-eth0
ip address 192.168.4.4/24
!
interface r4-eth1
ip address 192.168.5.4/24
!
interface lo
ip address 10.254.254.4/32
!
8 changes: 8 additions & 0 deletions tests/topotests/msdp_topo2/r5/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
router bgp 65005
no bgp ebgp-requires-policy
neighbor 192.168.2.2 remote-as 65002
neighbor 192.168.5.4 remote-as 65004
address-family ipv4 unicast
redistribute connected
exit-address-family
!
20 changes: 20 additions & 0 deletions tests/topotests/msdp_topo2/r5/pimd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
! debug pim
! debug pim zebra
!
interface lo
ip pim
ip pim use-source 10.254.254.5
!
interface r5-eth0
ip pim
!
interface r5-eth1
ip pim
!
interface r5-eth2
ip pim
ip igmp
!
ip msdp peer 192.168.2.2 source 192.168.2.5
ip msdp peer 192.168.5.4 source 192.168.5.5
ip pim rp 10.254.254.5
14 changes: 14 additions & 0 deletions tests/topotests/msdp_topo2/r5/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ip forwarding
!
interface r5-eth0
ip address 192.168.2.5/24
!
interface r5-eth1
ip address 192.168.5.5/24
!
interface r5-eth2
ip address 192.168.7.5/24
!
interface lo
ip address 10.254.254.5/32
!
Loading

0 comments on commit 9ce5a04

Please sign in to comment.