Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bfd-topo1: add fast reconvergence test
Test that after a link goes down BGPd will be notified and recovered quickly. Also test that BFD show command tells us that the peer went down. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
- Loading branch information
Showing
9 changed files
with
310 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,52 @@ | |||
{ | |||
"routes": { | |||
"10.254.254.2/32": [ | |||
{ | |||
"aspath": "102", | |||
"prefix": "10.254.254.2", | |||
"valid": true, | |||
"peerId": "192.168.0.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.0.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
], | |||
"10.254.254.3/32": [ | |||
{ | |||
"aspath": "102 103", | |||
"prefix": "10.254.254.3", | |||
"valid": true, | |||
"peerId": "192.168.0.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.0.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
], | |||
"10.254.254.4/32": [ | |||
{ | |||
"aspath": "102 104", | |||
"prefix": "10.254.254.4", | |||
"valid": true, | |||
"peerId": "192.168.0.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.0.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
] | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,7 @@ | |||
router bgp 101 | router bgp 101 | ||
neighbor 192.168.0.2 remote-as 102 | neighbor 192.168.0.2 remote-as 102 | ||
neighbor 192.168.0.2 bfd | neighbor 192.168.0.2 bfd | ||
address-family ipv4 unicast | |||
network 10.254.254.1/32 | |||
exit-address-family | |||
! | ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,52 @@ | |||
{ | |||
"routes": { | |||
"10.254.254.1/32": [ | |||
{ | |||
"aspath": "101", | |||
"prefix": "10.254.254.1", | |||
"valid": true, | |||
"peerId": "192.168.0.1", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.0.1", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
], | |||
"10.254.254.3/32": [ | |||
{ | |||
"aspath": "103", | |||
"prefix": "10.254.254.3", | |||
"valid": true, | |||
"peerId": "192.168.1.1", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.1.1", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
], | |||
"10.254.254.4/32": [ | |||
{ | |||
"aspath": "104", | |||
"prefix": "10.254.254.4", | |||
"valid": true, | |||
"peerId": "192.168.2.1", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.2.1", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
] | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,52 @@ | |||
{ | |||
"routes": { | |||
"10.254.254.1/32": [ | |||
{ | |||
"aspath": "102 101", | |||
"prefix": "10.254.254.1", | |||
"valid": true, | |||
"peerId": "192.168.1.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.1.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
], | |||
"10.254.254.2/32": [ | |||
{ | |||
"aspath": "102", | |||
"prefix": "10.254.254.2", | |||
"valid": true, | |||
"peerId": "192.168.1.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.1.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
], | |||
"10.254.254.4/32": [ | |||
{ | |||
"aspath": "102 104", | |||
"prefix": "10.254.254.4", | |||
"valid": true, | |||
"peerId": "192.168.1.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.1.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
] | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,7 @@ | |||
router bgp 103 | router bgp 103 | ||
neighbor 192.168.1.2 remote-as 102 | neighbor 192.168.1.2 remote-as 102 | ||
neighbor 192.168.1.2 bfd | neighbor 192.168.1.2 bfd | ||
address-family ipv4 unicast | |||
network 10.254.254.3/32 | |||
exit-address-family | |||
! | ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,52 @@ | |||
{ | |||
"routes": { | |||
"10.254.254.1/32": [ | |||
{ | |||
"aspath": "102 101", | |||
"prefix": "10.254.254.1", | |||
"valid": true, | |||
"peerId": "192.168.2.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.2.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
], | |||
"10.254.254.2/32": [ | |||
{ | |||
"aspath": "102", | |||
"prefix": "10.254.254.2", | |||
"valid": true, | |||
"peerId": "192.168.2.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.2.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
], | |||
"10.254.254.3/32": [ | |||
{ | |||
"aspath": "102 103", | |||
"prefix": "10.254.254.3", | |||
"valid": true, | |||
"peerId": "192.168.2.2", | |||
"prefixLen": 32, | |||
"nexthops": [ | |||
{ | |||
"ip": "192.168.2.2", | |||
"used": true, | |||
"afi": "ipv4" | |||
} | |||
] | |||
} | |||
] | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,7 @@ | |||
router bgp 104 | router bgp 104 | ||
neighbor 192.168.2.2 remote-as 102 | neighbor 192.168.2.2 remote-as 102 | ||
neighbor 192.168.2.2 bfd | neighbor 192.168.2.2 bfd | ||
address-family ipv4 unicast | |||
network 10.254.254.4/32 | |||
exit-address-family | |||
! | ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters