Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: bfd_vrf_ospf_unnumbered #15048

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
54 changes: 54 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r1/bfd-peers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[
{
"multihop":false,
"peer":"2.2.2.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use https://www.rfc-editor.org/rfc/rfc5737.html ranges or private ranges for topotests.

"vrf":"Test",
"interface":"r1-eth1",
"id": "*",
"remote-id":0,
"passive-mode":false,
"status":"up",
"downtime":"*",
"diagnostic":"ok",
"remote-diagnostic":"ok",
"type":"dynamic",
"receive-interval":300,
"transmit-interval":300,
"echo-receive-interval":50,
"echo-transmit-interval":0,
"detect-multiplier":3,
"remote-receive-interval":1000,
"remote-transmit-interval":1000,
"remote-echo-receive-interval":0,
"remote-detect-multiplier":3,
"rtt-min":0,
"rtt-avg":0,
"rtt-max":0
},
{
"multihop":false,
"peer":"3.3.3.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

"vrf":"Test",
"interface":"r1-eth2",
"id":"*",
"remote-id":"*",
"passive-mode":false,
"status":"up",
"uptime":"*",
"diagnostic":"ok",
"remote-diagnostic":"ok",
"type":"dynamic",
"receive-interval":300,
"transmit-interval":300,
"echo-receive-interval":50,
"echo-transmit-interval":0,
"detect-multiplier":3,
"remote-receive-interval":300,
"remote-transmit-interval":300,
"remote-echo-receive-interval":50,
"remote-detect-multiplier":3,
"rtt-min":0,
"rtt-avg":0,
"rtt-max":0
}
]
7 changes: 7 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r1/bfdd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
!
! debug bfd network
! debug bfd peer
! debug bfd zebra
!
bfd
!
34 changes: 34 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r1/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
!
hostname r1
password zebra
log file /tmp/r1-frr.log
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed.

!
interface Test
ip address 1.1.1.1/32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

ip ospf area 0.0.0.0 1.1.1.1
ip ospf passive
!
interface r1-eth2 vrf Test
ip address 1.1.1.1/32
ip ospf area 0.0.0.0
ip ospf bfd
ip ospf cost 20
ip ospf network point-to-point
!
interface r1-eth1 vrf Test
ip address 1.1.1.1/32
ip ospf area 0.0.0.0
ip ospf bfd
ip ospf cost 50
ip ospf network point-to-point
!
ip forwarding
!
router ospf vrf Test
ospf router-id 1.1.1.1
log-adjacency-changes detail
redistribute connected
!
bfd
!

16 changes: 16 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r1/ospf-vrf-Test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
VRF Name: Test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use JSON output?

============ OSPF network routing table ============
N 1.1.1.1/32 [0] area: 0.0.0.0
directly attached to Test
N 2.2.2.2/32 [40] area: 0.0.0.0
via 3.3.3.3, r1-eth2
N 3.3.3.3/32 [20] area: 0.0.0.0
via 3.3.3.3, r1-eth2

============ OSPF router routing table =============
R 2.2.2.2 [40] area: 0.0.0.0, ASBR
via 3.3.3.3, r1-eth2
R 3.3.3.3 [20] area: 0.0.0.0, ASBR
via 3.3.3.3, r1-eth2

============ OSPF external routing table ===========
54 changes: 54 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r2/bfd-peers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[
{
"multihop":false,
"peer":"1.1.1.1",
"vrf":"Test",
"interface":"r2-eth1",
"id":"*",
"remote-id":0,
"passive-mode":false,
"status":"up",
"downtime":"*",
"diagnostic":"ok",
"remote-diagnostic":"ok",
"type":"dynamic",
"receive-interval":300,
"transmit-interval":300,
"echo-receive-interval":50,
"echo-transmit-interval":0,
"detect-multiplier":3,
"remote-receive-interval":1000,
"remote-transmit-interval":1000,
"remote-echo-receive-interval":0,
"remote-detect-multiplier":3,
"rtt-min":0,
"rtt-avg":0,
"rtt-max":0
},
{
"multihop":false,
"peer":"3.3.3.3",
"vrf":"Test",
"interface":"r2-eth2",
"id":"*",
"remote-id":"*",
"passive-mode":false,
"status":"up",
"uptime":"*",
"diagnostic":"ok",
"remote-diagnostic":"ok",
"type":"dynamic",
"receive-interval":300,
"transmit-interval":300,
"echo-receive-interval":50,
"echo-transmit-interval":0,
"detect-multiplier":3,
"remote-receive-interval":300,
"remote-transmit-interval":300,
"remote-echo-receive-interval":50,
"remote-detect-multiplier":3,
"rtt-min":0,
"rtt-avg":0,
"rtt-max":0
}
]
7 changes: 7 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r2/bfdd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
!
!debug bfd network
!debug bfd peer
!debug bfd zebra
!
bfd
!
33 changes: 33 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r2/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
!
hostname r2
password zebra
log file /tmp/r2-frr.log
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed.

!
interface Test
ip address 2.2.2.2/32
ip ospf area 0.0.0.0 2.2.2.2
ip ospf passive
!
interface r2-eth1 vrf Test
ip address 2.2.2.2/32
ip ospf area 0.0.0.0
ip ospf bfd
ip ospf cost 50
ip ospf network point-to-point
!
interface r2-eth2 vrf Test
ip address 2.2.2.2/32
ip ospf area 0.0.0.0
ip ospf bfd
ip ospf cost 20
ip ospf network point-to-point
!
ip forwarding
!
router ospf vrf Test
ospf router-id 2.2.2.2
redistribute connected
!
bfd
!

16 changes: 16 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r2/ospf-vrf-Test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
VRF Name: Test
============ OSPF network routing table ============
N 1.1.1.1/32 [40] area: 0.0.0.0
via 3.3.3.3, r2-eth2
N 2.2.2.2/32 [0] area: 0.0.0.0
directly attached to Test
N 3.3.3.3/32 [20] area: 0.0.0.0
via 3.3.3.3, r2-eth2

============ OSPF router routing table =============
R 1.1.1.1 [40] area: 0.0.0.0, ASBR
via 3.3.3.3, r2-eth2
R 3.3.3.3 [20] area: 0.0.0.0, ASBR
via 3.3.3.3, r2-eth2

============ OSPF external routing table ===========
54 changes: 54 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r3/bfd-peers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[
{
"multihop":false,
"peer":"2.2.2.2",
"vrf":"Test",
"interface":"r3-eth2",
"id":"*",
"remote-id":"*",
"passive-mode":false,
"status":"up",
"uptime":"*",
"diagnostic":"ok",
"remote-diagnostic":"ok",
"type":"dynamic",
"receive-interval":300,
"transmit-interval":300,
"echo-receive-interval":50,
"echo-transmit-interval":0,
"detect-multiplier":3,
"remote-receive-interval":300,
"remote-transmit-interval":300,
"remote-echo-receive-interval":50,
"remote-detect-multiplier":3,
"rtt-min":0,
"rtt-avg":0,
"rtt-max":0
},
{
"multihop":false,
"peer":"1.1.1.1",
"vrf":"Test",
"interface":"r3-eth1",
"id":"*",
"remote-id":"*",
"passive-mode":false,
"status":"up",
"uptime":"*",
"diagnostic":"ok",
"remote-diagnostic":"ok",
"type":"dynamic",
"receive-interval":300,
"transmit-interval":300,
"echo-receive-interval":50,
"echo-transmit-interval":0,
"detect-multiplier":3,
"remote-receive-interval":300,
"remote-transmit-interval":300,
"remote-echo-receive-interval":50,
"remote-detect-multiplier":3,
"rtt-min":0,
"rtt-avg":0,
"rtt-max":0
}
]
7 changes: 7 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r3/bfdd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
!
! debug bfd network
! debug bfd peer
! debug bfd zebra
!
bfd
!
33 changes: 33 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r3/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
!
hostname r3
password zebra
log file /tmp/r3-frr.log
!
interface Test
ip address 3.3.3.3/32
ip ospf area 0.0.0.0 3.3.3.3
ip ospf passive
!
interface r3-eth1 vrf Test
ip address 3.3.3.3/32
ip ospf area 0.0.0.0
ip ospf bfd
ip ospf cost 20
ip ospf network point-to-point
!
interface r3-eth2 vrf Test
ip address 3.3.3.3/32
ip ospf area 0.0.0.0
ip ospf bfd
ip ospf cost 20
ip ospf network point-to-point
!
ip forwarding
!
router ospf vrf Test
ospf router-id 3.3.3.3
redistribute connected
redistribute static
!
bfd
!
16 changes: 16 additions & 0 deletions tests/topotests/bfd_vrf_ospf_unnumbered/r3/ospf-vrf-Test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
VRF Name: Test
============ OSPF network routing table ============
N 1.1.1.1/32 [20] area: 0.0.0.0
via 1.1.1.1, r3-eth1
N 2.2.2.2/32 [20] area: 0.0.0.0
via 2.2.2.2, r3-eth2
N 3.3.3.3/32 [0] area: 0.0.0.0
directly attached to Test

============ OSPF router routing table =============
R 1.1.1.1 [20] area: 0.0.0.0, ASBR
via 1.1.1.1, r3-eth1
R 2.2.2.2 [20] area: 0.0.0.0, ASBR
via 2.2.2.2, r3-eth2

============ OSPF external routing table ===========
Loading
Loading