-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BGP route reflector should reflect RIB-failure routes (#7398)
- Loading branch information
Showing
5 changed files
with
161 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
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
34 changes: 34 additions & 0 deletions
34
.../batfish/src/test/resources/org/batfish/dataplane/ibdp/testrigs/rr-rib-failure/configs/r1
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
!RANCID-CONTENT-TYPE: cisco | ||
! | ||
hostname r1 | ||
! | ||
interface Loopback0 | ||
ip address 1.1.1.1 255.255.255.255 | ||
! | ||
interface GigabitEthernet0/1 | ||
ip address 10.12.0.1 255.255.255.0 | ||
! | ||
interface GigabitEthernet0/2 | ||
ip address 10.13.0.1 255.255.255.0 | ||
! | ||
router bgp 1 | ||
bgp router-id 1.1.1.1 | ||
neighbor 2.2.2.2 remote-as 1 | ||
neighbor 2.2.2.2 update-source Loopback0 | ||
! | ||
address-family ipv4 | ||
redistribute static route-map rs | ||
neighbor 2.2.2.2 activate | ||
neighbor 2.2.2.2 soft-reconfiguration inbound | ||
exit-address-family | ||
! | ||
ip route 2.2.2.2 255.255.255.255 10.12.0.2 | ||
ip route 5.5.5.5 255.255.255.255 Null0 | ||
! | ||
ip prefix-list five seq 5 permit 5.5.5.5/32 | ||
! | ||
route-map rs permit 100 | ||
match ip address prefix-list five | ||
set ip next-hop 10.13.0.1 | ||
! | ||
end |
35 changes: 35 additions & 0 deletions
35
.../batfish/src/test/resources/org/batfish/dataplane/ibdp/testrigs/rr-rib-failure/configs/r2
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
!RANCID-CONTENT-TYPE: cisco | ||
! | ||
hostname r2 | ||
! | ||
interface Loopback0 | ||
ip address 2.2.2.2 255.255.255.255 | ||
! | ||
interface GigabitEthernet0/1 | ||
ip address 10.12.0.2 255.255.255.0 | ||
! | ||
interface GigabitEthernet0/2 | ||
ip address 10.23.0.2 255.255.255.0 | ||
! | ||
router bgp 1 | ||
bgp router-id 2.2.2.2 | ||
neighbor 1.1.1.1 remote-as 1 | ||
neighbor 1.1.1.1 update-source Loopback0 | ||
neighbor 3.3.3.3 remote-as 1 | ||
neighbor 3.3.3.3 update-source Loopback0 | ||
! | ||
address-family ipv4 | ||
neighbor 1.1.1.1 activate | ||
neighbor 1.1.1.1 route-reflector-client | ||
neighbor 1.1.1.1 soft-reconfiguration inbound | ||
neighbor 3.3.3.3 activate | ||
neighbor 3.3.3.3 route-reflector-client | ||
neighbor 3.3.3.3 soft-reconfiguration inbound | ||
exit-address-family | ||
! | ||
ip route 1.1.1.1 255.255.255.255 10.12.0.1 | ||
ip route 3.3.3.3 255.255.255.255 10.23.0.3 | ||
ip route 5.5.5.5 255.255.255.255 Null0 | ||
ip route 10.13.0.1 255.255.255.255 10.12.0.1 | ||
! | ||
end |
26 changes: 26 additions & 0 deletions
26
.../batfish/src/test/resources/org/batfish/dataplane/ibdp/testrigs/rr-rib-failure/configs/r3
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
!RANCID-CONTENT-TYPE: cisco | ||
! | ||
hostname r3 | ||
! | ||
interface Loopback0 | ||
ip address 3.3.3.3 255.255.255.255 | ||
! | ||
interface GigabitEthernet0/1 | ||
ip address 10.13.0.3 255.255.255.0 | ||
! | ||
interface GigabitEthernet0/2 | ||
ip address 10.23.0.3 255.255.255.0 | ||
! | ||
router bgp 1 | ||
bgp router-id 3.3.3.3 | ||
neighbor 2.2.2.2 remote-as 1 | ||
neighbor 2.2.2.2 update-source Loopback0 | ||
! | ||
address-family ipv4 | ||
neighbor 2.2.2.2 activate | ||
neighbor 2.2.2.2 soft-reconfiguration inbound | ||
exit-address-family | ||
! | ||
ip route 2.2.2.2 255.255.255.255 10.23.0.2 | ||
! | ||
end |