Skip to content

Commit

Permalink
tests: Add basic multicast boundary test
Browse files Browse the repository at this point in the history
Add simple test to show filtering of IGMP joins using new "ip multicast
boundary" filtering with access-lists, include test of existing prefix-
list based "ip multicast boundary oil" command.

Signed-off-by: Corey Siltala <[email protected]>
  • Loading branch information
Corey Siltala committed Nov 21, 2024
1 parent 59ac426 commit 6cf4a1b
Show file tree
Hide file tree
Showing 5 changed files with 522 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/topotests/pim_basic_acl/r1/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
hostname r1
!
debug pim events
debug igmp events
debug igmp packets
!
ip prefix-list pim-oil-plist seq 10 deny 229.1.1.0/24
ip prefix-list pim-oil-plist seq 20 permit any
!
access-list pim-acl seq 10 deny ip host 10.0.20.2 232.1.1.0 0.0.0.255
access-list pim-acl seq 20 permit ip any any
!
interface r1-eth0
ip address 10.0.20.1/24
ip igmp
ip pim
!
interface r1-eth1
ip address 10.0.30.1/24
ip pim
!
interface r1-eth2
ip address 10.0.40.1/24
ip igmp
ip pim
!
interface lo
ip address 10.254.0.1/32
ip pim
!
router pim
rp 10.254.0.3
join-prune-interval 5
!
router bgp 65001
no bgp ebgp-requires-policy
neighbor 10.0.30.3 remote-as external
neighbor 10.0.30.3 timers 3 10
redistribute connected
18 changes: 18 additions & 0 deletions tests/topotests/pim_basic_acl/r2/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
hostname r2
!
debug pim events
debug igmp events
debug igmp packets
!
ip prefix-list pim-oil-plist seq 10 deny 229.1.1.0/24
ip prefix-list pim-oil-plist seq 20 permit any
!
access-list pim-acl seq 10 deny ip host 10.0.20.2 232.1.1.0 0.0.0.255
access-list pim-acl seq 20 permit ip any any
!
interface r2-eth0
ip address 10.0.20.2/24
!
interface lo
ip address 10.254.0.2/32
!
13 changes: 13 additions & 0 deletions tests/topotests/pim_basic_acl/r3/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
hostname r3
!
! Need a pim statement in order to load pimd after merging pimd.conf
debug pim events
debug igmp events
debug igmp packets
!
interface r3-eth0
ip address 10.0.40.4/24
!
interface lo
ip address 10.254.0.4/32
!
22 changes: 22 additions & 0 deletions tests/topotests/pim_basic_acl/rp/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
hostname rp
!
interface rp-eth0
ip address 10.0.30.3/24
ip pim
!
interface lo
ip address 10.254.0.3/32
ip pim
!
router pim
rp 10.254.0.3
join-prune-interval 5
register-accept-list ACCEPT
!
ip prefix-list ACCEPT seq 5 permit 10.0.20.0/24 le 32
!
router bgp 65003
no bgp ebgp-requires-policy
neighbor 10.0.30.1 remote-as external
neighbor 10.0.30.1 timers 3 10
redistribute connected
Loading

0 comments on commit 6cf4a1b

Please sign in to comment.