Skip to content

Commit

Permalink
tests: Add topotest for OSPF multi-instance default origination.
Browse files Browse the repository at this point in the history
This change adds a topotest to test various case of OSPF multi-instance
origination including cases where the criteria route is from another
instance of OSPF, as well as the same OSPF instance (where a default
should not be originated).

Signed-off-by: Acee Lindem <acee@lindem.com>
  • Loading branch information
aceelindem committed Nov 18, 2024
1 parent 6afd56d commit 82f4349
Show file tree
Hide file tree
Showing 4 changed files with 478 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/topotests/ospf_multi_instance/r1/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
!
hostname r1
password zebra
log file /tmp/r1-frr.log
ip forwarding
!
interface lo
ip address 1.1.1.1/32
ip ospf area 0
!
interface r1-eth0
ip address 10.1.1.1/24
ip ospf area 0
!
!
router ospf
ospf router-id 1.1.1.1
distance 20
!
37 changes: 37 additions & 0 deletions tests/topotests/ospf_multi_instance/r2/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
!
hostname r2
password zebra
! debug ospf event
! debug ospf lsa
! debug ospf default-information
! debug ospf zebra redistribute

ip forwarding
!
interface lo1
ip address 2.2.2.1/32
ip ospf 1 area 0
no shut
!
interface lo2
ip address 2.2.2.2/32
ip ospf 2 area 0
no shut
!
interface r2-eth0
ip address 10.1.1.2/24
ip ospf 1 area 0
!
interface r2-eth1
ip address 10.1.2.2/24
ip ospf 2 area 0
!
router ospf 1
ospf router-id 2.2.2.1
distance 20
!
router ospf 2
ospf router-id 2.2.2.2
distance 20
!

19 changes: 19 additions & 0 deletions tests/topotests/ospf_multi_instance/r3/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
!
hostname r3
password zebra
log file /tmp/r3-frr.log
ip forwarding
!
interface lo
ip address 3.3.3.1/32
ip ospf area 0
!
interface r3-eth0
ip address 10.1.2.3/24
ip ospf area 0
!
!
router ospf
ospf router-id 3.3.3.1
distance 20
!
Loading

0 comments on commit 82f4349

Please sign in to comment.