-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17184 from FRRouting/mergify/bp/dev/10.2/pr-17168
bgpd: fix AIGP calculation in route advertisement (backport #17168)
- Loading branch information
Showing
18 changed files
with
351 additions
and
35 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
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
router bgp 65001 | ||
no bgp ebgp-requires-policy | ||
no bgp network import-check | ||
bgp route-reflector allow-outbound-policy | ||
neighbor 10.0.0.2 remote-as internal | ||
neighbor 10.0.0.2 update-source lo | ||
neighbor 10.0.0.2 timers 1 3 | ||
neighbor 10.0.0.2 timers connect 1 | ||
neighbor 10.0.0.2 route-reflector-client | ||
neighbor 10.0.0.3 remote-as internal | ||
neighbor 10.0.0.3 update-source lo | ||
neighbor 10.0.0.3 timers 1 3 | ||
neighbor 10.0.0.3 timers connect 1 | ||
neighbor 10.0.0.3 route-reflector-client | ||
neighbor 10.0.0.4 remote-as internal | ||
neighbor 10.0.0.4 update-source lo | ||
neighbor 10.0.0.4 timers 1 3 | ||
neighbor 10.0.0.4 timers connect 1 | ||
neighbor 10.0.0.4 route-reflector-client | ||
address-family ipv4 | ||
neighbor 10.0.0.4 route-map set-nexthop out | ||
exit-address-family | ||
! | ||
route-map set-nexthop permit 10 | ||
set ip next-hop peer-address | ||
exit | ||
! |
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,23 @@ | ||
! | ||
interface lo | ||
ip ospf passive | ||
! | ||
interface r1-eth0 | ||
ip ospf dead-interval 4 | ||
ip ospf hello-interval 1 | ||
ip ospf cost 10 | ||
! | ||
interface r1-eth1 | ||
ip ospf dead-interval 4 | ||
ip ospf hello-interval 1 | ||
ip ospf cost 10 | ||
! | ||
interface r1-eth2 | ||
ip ospf dead-interval 4 | ||
ip ospf hello-interval 1 | ||
ip ospf cost 10 | ||
! | ||
router ospf | ||
router-id 10.0.0.1 | ||
network 0.0.0.0/0 area 0 | ||
! |
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,13 @@ | ||
! | ||
interface lo | ||
ip address 10.0.0.1/32 | ||
! | ||
interface r1-eth0 | ||
ip address 192.168.12.1/24 | ||
! | ||
interface r1-eth1 | ||
ip address 192.168.13.1/24 | ||
! | ||
interface r1-eth2 | ||
ip address 192.168.14.1/24 | ||
! |
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,18 @@ | ||
router bgp 65001 | ||
no bgp ebgp-requires-policy | ||
no bgp network import-check | ||
neighbor 10.0.0.1 remote-as internal | ||
neighbor 10.0.0.1 update-source lo | ||
neighbor 10.0.0.1 timers 1 3 | ||
neighbor 10.0.0.1 timers connect 1 | ||
address-family ipv4 | ||
redistribute connected route-map connected-to-bgp | ||
neighbor 10.0.0.1 next-hop-self | ||
exit-address-family | ||
! | ||
ip prefix-list p22 seq 5 permit 10.0.2.2/32 | ||
! | ||
route-map connected-to-bgp permit 10 | ||
match ip address prefix-list p22 | ||
set aigp 2 | ||
! |
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,18 @@ | ||
! | ||
interface lo | ||
ip ospf passive | ||
! | ||
interface r2-eth0 | ||
ip ospf dead-interval 4 | ||
ip ospf hello-interval 1 | ||
ip ospf cost 10 | ||
! | ||
interface r2-eth1 | ||
ip ospf dead-interval 4 | ||
ip ospf hello-interval 1 | ||
ip ospf cost 10 | ||
! | ||
router ospf | ||
router-id 10.0.0.2 | ||
network 0.0.0.0/0 area 0 | ||
! |
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,11 @@ | ||
! | ||
interface lo | ||
ip address 10.0.0.2/32 | ||
ip address 10.0.2.2/32 | ||
! | ||
interface r2-eth0 | ||
ip address 192.168.12.2/24 | ||
! | ||
interface r2-eth1 | ||
ip address 192.168.23.2/24 | ||
! |
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,11 @@ | ||
router bgp 65001 | ||
no bgp ebgp-requires-policy | ||
no bgp network import-check | ||
neighbor 10.0.0.1 remote-as internal | ||
neighbor 10.0.0.1 update-source lo | ||
neighbor 10.0.0.1 timers 1 3 | ||
neighbor 10.0.0.1 timers connect 1 | ||
address-family ipv4 | ||
neighbor 10.0.0.1 next-hop-self | ||
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
! | ||
interface lo | ||
ip ospf passive | ||
! | ||
interface r3-eth0 | ||
ip ospf dead-interval 4 | ||
ip ospf hello-interval 1 | ||
ip ospf cost 10 | ||
! | ||
interface r3-eth1 | ||
ip ospf dead-interval 4 | ||
ip ospf hello-interval 1 | ||
ip ospf cost 10 | ||
! | ||
router ospf | ||
router-id 10.0.0.3 | ||
network 0.0.0.0/0 area 0 | ||
! |
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,10 @@ | ||
! | ||
interface lo | ||
ip address 10.0.0.3/32 | ||
! | ||
interface r3-eth0 | ||
ip address 192.168.13.3/24 | ||
! | ||
interface r3-eth1 | ||
ip address 192.168.23.3/24 | ||
! |
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,11 @@ | ||
router bgp 65001 | ||
no bgp ebgp-requires-policy | ||
no bgp network import-check | ||
neighbor 10.0.0.1 remote-as internal | ||
neighbor 10.0.0.1 update-source lo | ||
neighbor 10.0.0.1 timers 1 3 | ||
neighbor 10.0.0.1 timers connect 1 | ||
address-family ipv4 | ||
neighbor 10.0.0.1 next-hop-self | ||
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
! | ||
interface lo | ||
ip ospf passive | ||
! | ||
interface r4-eth0 | ||
ip ospf dead-interval 4 | ||
ip ospf hello-interval 1 | ||
ip ospf cost 10 | ||
! | ||
router ospf | ||
router-id 10.0.0.4 | ||
network 0.0.0.0/0 area 0 | ||
! |
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,7 @@ | ||
! | ||
interface lo | ||
ip address 10.0.0.4/32 | ||
! | ||
interface r4-eth0 | ||
ip address 192.168.14.4/24 | ||
! |
Oops, something went wrong.