forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 14
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 FRRouting#15259 from dmytroshytyi-6WIND/nexthop_re…
…solution zebra: add LSP entry to nexthop via recursive (part 2)
- Loading branch information
Showing
40 changed files
with
1,078 additions
and
33 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
Empty file.
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,24 @@ | ||
! | ||
router bgp 65500 | ||
bgp router-id 192.0.2.1 | ||
neighbor 192.0.2.3 remote-as 65500 | ||
neighbor 192.0.2.3 update-source lo | ||
neighbor 192.0.2.7 remote-as 65500 | ||
neighbor 192.0.2.7 ttl-security hops 10 | ||
neighbor 192.0.2.7 disable-connected-check | ||
neighbor 192.0.2.7 update-source lo | ||
! | ||
address-family ipv4 unicast | ||
network 192.0.2.1/32 | ||
no neighbor 192.0.2.3 activate | ||
neighbor 192.0.2.7 activate | ||
exit-address-family | ||
! | ||
address-family ipv4 labeled-unicast | ||
neighbor 192.0.2.3 activate | ||
neighbor 192.0.2.3 route-reflector-client | ||
neighbor 192.0.2.3 next-hop-self force | ||
exit-address-family | ||
! | ||
exit | ||
! |
25 changes: 25 additions & 0 deletions
25
tests/topotests/zebra_fec_nexthop_resolution/r1/ospfd.conf.after
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,25 @@ | ||
log stdout | ||
! | ||
interface lo | ||
ip ospf passive | ||
exit | ||
! | ||
interface r1-eth0 | ||
ip ospf network point-to-point | ||
ip ospf hello-interval 1 | ||
exit | ||
! | ||
router ospf | ||
ospf router-id 192.0.2.1 | ||
network 192.0.2.1/32 area 0.0.0.0 | ||
network 192.168.1.0/24 area 0.0.0.0 | ||
passive-interface lo | ||
capability opaque | ||
mpls-te on | ||
mpls-te router-address 192.0.2.1 | ||
segment-routing on | ||
segment-routing global-block 1000 10000 local-block 32000 32999 | ||
segment-routing node-msd 8 | ||
segment-routing prefix 192.0.2.1/32 index 11 | ||
exit | ||
! |
13 changes: 13 additions & 0 deletions
13
tests/topotests/zebra_fec_nexthop_resolution/r1/zebra.conf
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 192.0.2.1/32 | ||
mpls enable | ||
exit | ||
! | ||
interface r1-eth0 | ||
ip address 192.168.1.1/24 | ||
mpls enable | ||
link-params | ||
enable | ||
exit-link-params | ||
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 @@ | ||
router bgp 65500 | ||
bgp router-id 192.0.2.2 | ||
neighbor 192.0.2.1 remote-as 65500 | ||
neighbor 192.0.2.1 update-source lo | ||
neighbor 192.0.2.3 remote-as 65500 | ||
neighbor 192.0.2.3 update-source lo | ||
! | ||
address-family ipv4 unicast | ||
network 192.0.2.2/32 | ||
no neighbor 192.0.2.1 activate | ||
no neighbor 192.0.2.3 activate | ||
exit-address-family | ||
! | ||
address-family ipv4 labeled-unicast | ||
neighbor 192.0.2.1 activate | ||
neighbor 192.0.2.1 route-reflector-client | ||
neighbor 192.0.2.1 next-hop-self force | ||
neighbor 192.0.2.3 activate | ||
neighbor 192.0.2.3 route-reflector-client | ||
neighbor 192.0.2.3 next-hop-self force | ||
exit-address-family | ||
exit | ||
! |
25 changes: 25 additions & 0 deletions
25
tests/topotests/zebra_fec_nexthop_resolution/r2/isisd.conf
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,25 @@ | ||
! | ||
interface lo | ||
ip router isis 1 | ||
isis hello-interval 1 | ||
isis hello-multiplier 3 | ||
exit | ||
! | ||
interface r2-eth1 | ||
ip router isis 2 | ||
isis hello-interval 1 | ||
isis hello-multiplier 3 | ||
exit | ||
! | ||
router isis 1 | ||
is-type level-1 | ||
net 49.0000.0007.e901.2223.00 | ||
lsp-timers gen-interval 1 refresh-interval 900 max-lifetime 1200 | ||
mpls-te on | ||
mpls-te router-address 192.0.2.2 | ||
segment-routing on | ||
segment-routing global-block 11000 20000 local-block 36000 36999 | ||
segment-routing node-msd 8 | ||
segment-routing prefix 192.0.2.2/32 index 22 no-php-flag | ||
exit | ||
! |
32 changes: 32 additions & 0 deletions
32
tests/topotests/zebra_fec_nexthop_resolution/r2/ospfd.conf.after
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,32 @@ | ||
log stdout | ||
! | ||
interface lo | ||
ip ospf network point-to-point | ||
ip ospf passive | ||
exit | ||
! | ||
interface r2-eth0 | ||
ip ospf network point-to-point | ||
ip ospf hello-interval 1 | ||
exit | ||
! | ||
interface r2-eth1 | ||
ip ospf network point-to-point | ||
ip ospf hello-interval 1 | ||
exit | ||
! | ||
router ospf | ||
ospf router-id 192.0.2.2 | ||
network 192.0.2.2/32 area 0.0.0.0 | ||
network 192.168.1.0/24 area 0.0.0.0 | ||
network 192.168.2.0/24 area 0.0.0.0 | ||
passive-interface lo | ||
capability opaque | ||
mpls-te on | ||
mpls-te router-address 192.0.2.2 | ||
segment-routing on | ||
segment-routing global-block 1000 10000 local-block 36000 36999 | ||
segment-routing node-msd 8 | ||
segment-routing prefix 192.0.2.2/32 index 22 | ||
exit | ||
! |
16 changes: 16 additions & 0 deletions
16
tests/topotests/zebra_fec_nexthop_resolution/r2/zebra.conf
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,16 @@ | ||
! | ||
interface lo | ||
ip address 192.0.2.2/32 | ||
mpls enable | ||
exit | ||
! | ||
interface r2-eth0 | ||
ip address 192.168.1.2/24 | ||
mpls enable | ||
exit | ||
! | ||
interface r2-eth1 | ||
ip address 192.168.2.2/24 | ||
mpls enable | ||
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 @@ | ||
router bgp 65500 | ||
bgp router-id 192.0.2.3 | ||
neighbor 192.0.2.1 remote-as 65500 | ||
neighbor 192.0.2.1 update-source lo | ||
neighbor 192.0.2.5 remote-as 65500 | ||
neighbor 192.0.2.5 update-source lo | ||
! | ||
address-family ipv4 unicast | ||
network 192.0.2.3/32 | ||
no neighbor 192.0.2.1 activate | ||
no neighbor 192.0.2.5 activate | ||
exit-address-family | ||
! | ||
address-family ipv4 labeled-unicast | ||
neighbor 192.0.2.1 activate | ||
neighbor 192.0.2.1 route-reflector-client | ||
neighbor 192.0.2.1 next-hop-self force | ||
neighbor 192.0.2.5 activate | ||
neighbor 192.0.2.5 route-reflector-client | ||
neighbor 192.0.2.5 next-hop-self force | ||
exit-address-family | ||
exit | ||
! |
25 changes: 25 additions & 0 deletions
25
tests/topotests/zebra_fec_nexthop_resolution/r3/isisd.conf
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,25 @@ | ||
! | ||
interface lo | ||
ip router isis 1 | ||
isis hello-interval 1 | ||
isis hello-multiplier 3 | ||
exit | ||
! | ||
interface r3-eth1 | ||
ip router isis 1 | ||
isis hello-interval 1 | ||
isis hello-multiplier 3 | ||
exit | ||
! | ||
router isis 1 | ||
is-type level-1 | ||
net 49.0000.0007.e901.3333.00 | ||
lsp-timers gen-interval 1 refresh-interval 900 max-lifetime 1200 | ||
mpls-te on | ||
mpls-te router-address 192.0.2.3 | ||
segment-routing on | ||
segment-routing global-block 11000 12000 local-block 36000 36999 | ||
segment-routing node-msd 8 | ||
segment-routing prefix 192.0.2.3/32 index 33 | ||
exit | ||
! |
26 changes: 26 additions & 0 deletions
26
tests/topotests/zebra_fec_nexthop_resolution/r3/ospfd.conf.after
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 @@ | ||
log stdout | ||
! | ||
interface lo | ||
ip ospf network point-to-point | ||
ip ospf passive | ||
exit | ||
! | ||
interface r3-eth0 | ||
ip ospf network point-to-point | ||
ip ospf hello-interval 1 | ||
exit | ||
! | ||
router ospf | ||
ospf router-id 192.0.2.3 | ||
network 192.0.2.3/32 area 0.0.0.0 | ||
network 192.168.2.0/24 area 0.0.0.0 | ||
passive-interface lo | ||
capability opaque | ||
mpls-te on | ||
mpls-te router-address 192.0.2.3 | ||
segment-routing on | ||
segment-routing global-block 1000 10000 local-block 30000 30999 | ||
segment-routing node-msd 8 | ||
segment-routing prefix 192.0.2.3/32 index 33 | ||
exit | ||
! |
19 changes: 19 additions & 0 deletions
19
tests/topotests/zebra_fec_nexthop_resolution/r3/zebra.conf
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,19 @@ | ||
! | ||
interface lo | ||
ip address 192.0.2.3/32 | ||
mpls enable | ||
exit | ||
! | ||
interface r3-eth0 | ||
ip address 192.168.2.3/24 | ||
mpls enable | ||
link-params | ||
enable | ||
exit-link-params | ||
exit | ||
! | ||
interface r3-eth1 | ||
ip address 192.168.3.3/24 | ||
mpls enable | ||
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,24 @@ | ||
! | ||
router bgp 65500 | ||
bgp router-id 192.0.2.4 | ||
neighbor 192.0.2.1 remote-as 65500 | ||
neighbor 192.0.2.1 ttl-security hops 10 | ||
neighbor 192.0.2.1 disable-connected-check | ||
neighbor 192.0.2.1 update-source lo | ||
neighbor 192.0.2.3 remote-as 65500 | ||
neighbor 192.0.2.3 update-source lo | ||
! | ||
address-family ipv4 unicast | ||
network 192.0.2.4/32 | ||
neighbor 192.0.2.1 activate | ||
no neighbor 192.0.2.3 activate | ||
exit-address-family | ||
! | ||
address-family ipv4 labeled-unicast | ||
neighbor 192.0.2.3 activate | ||
neighbor 192.0.2.3 route-reflector-client | ||
neighbor 192.0.2.3 next-hop-self force | ||
exit-address-family | ||
! | ||
exit | ||
! |
31 changes: 31 additions & 0 deletions
31
tests/topotests/zebra_fec_nexthop_resolution/r4/isisd.conf
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,31 @@ | ||
! | ||
interface lo | ||
ip router isis 1 | ||
isis hello-interval 1 | ||
isis hello-multiplier 3 | ||
exit | ||
! | ||
interface r4-eth0 | ||
ip router isis 1 | ||
isis hello-interval 1 | ||
isis hello-multiplier 3 | ||
exit | ||
! | ||
interface r4-eth1 | ||
ip router isis 1 | ||
isis hello-interval 1 | ||
isis hello-multiplier 3 | ||
exit | ||
! | ||
router isis 1 | ||
is-type level-1 | ||
net 49.0000.0007.e901.4444.00 | ||
lsp-timers gen-interval 1 refresh-interval 900 max-lifetime 1200 | ||
mpls-te on | ||
mpls-te router-address 192.0.2.4 | ||
segment-routing on | ||
segment-routing global-block 11000 12000 local-block 37000 37999 | ||
segment-routing node-msd 8 | ||
segment-routing prefix 192.0.2.4/32 index 44 | ||
exit | ||
! |
Oops, something went wrong.