-
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.
topotests: Adding a test to control release of BGP labels
Signed-off-by: Varun Hegde <varuntumbe1@gmail.com>
- Loading branch information
1 parent
6bf4283
commit 4fcf9ca
Showing
12 changed files
with
538 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
63 changes: 63 additions & 0 deletions
63
tests/topotests/bgp_vpnv4_ebgp_vpn_auto/r1/bgp_ipv4_vpn_routes.json
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,63 @@ | ||
{ | ||
"vrfId":9, | ||
"vrfName":"vrf1", | ||
"tableVersion":2, | ||
"routerId":"192.0.2.1", | ||
"defaultLocPrf":100, | ||
"localAS":65500, | ||
"routes":{ | ||
"173.31.0.1/32":[ | ||
{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"external", | ||
"prefix":"173.31.0.1", | ||
"prefixLen":32, | ||
"network":"173.31.0.1/32", | ||
"version":2, | ||
"metric":0, | ||
"weight":0, | ||
"peerId":"(unspec)", | ||
"path":"65501", | ||
"origin":"incomplete", | ||
"announceNexthopSelf":true, | ||
"nhVrfName":"default", | ||
"nhVrfId":0, | ||
"nexthops":[ | ||
{ | ||
"ip":"192.168.0.2", | ||
"hostname":"r1", | ||
"afi":"ipv4", | ||
"used":true | ||
} | ||
] | ||
} | ||
], | ||
"173.31.1.1/32":[ | ||
{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"external", | ||
"prefix":"173.31.1.1", | ||
"prefixLen":32, | ||
"network":"173.31.1.1/32", | ||
"version":1, | ||
"metric":0, | ||
"weight":32768, | ||
"peerId":"(unspec)", | ||
"path":"", | ||
"origin":"incomplete", | ||
"nexthops":[ | ||
{ | ||
"ip":"0.0.0.0", | ||
"hostname":"r1", | ||
"afi":"ipv4", | ||
"used":true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
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,71 @@ | ||
bgp route-map delay-timer 1 | ||
router bgp 65500 | ||
bgp router-id 192.0.2.1 | ||
no bgp ebgp-requires-policy | ||
neighbor 192.168.0.2 remote-as 65501 | ||
address-family ipv4 unicast | ||
no neighbor 192.168.0.2 activate | ||
exit-address-family | ||
address-family ipv4 vpn | ||
neighbor 192.168.0.2 activate | ||
exit-address-family | ||
! | ||
router bgp 65500 vrf vrf1 | ||
bgp router-id 192.0.2.1 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:1 | ||
rt vpn both 53:1 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
router bgp 65500 vrf vrf2 | ||
bgp router-id 192.0.2.1 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:2 | ||
rt vpn both 53:2 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
router bgp 65500 vrf vrf3 | ||
bgp router-id 192.0.2.1 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:3 | ||
rt vpn both 53:3 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
router bgp 65500 vrf vrf4 | ||
bgp router-id 192.0.2.1 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:4 | ||
rt vpn both 53:4 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
router bgp 65500 vrf vrf5 | ||
bgp router-id 192.0.2.1 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:5 | ||
rt vpn both 53:5 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
|
||
interface r1-eth0 | ||
mpls bgp forwarding | ||
! |
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 @@ | ||
hostname r1 | ||
log file ldpd.log | ||
! | ||
! debug mpls ldp zebra | ||
! debug mpls ldp event | ||
! debug mpls ldp errors | ||
! debug mpls ldp messages recv | ||
! debug mpls ldp messages sent | ||
! debug mpls ldp discovery hello recv | ||
! debug mpls ldp discovery hello sent | ||
! | ||
mpls ldp | ||
router-id 11.11.11.11 | ||
! | ||
address-family ipv4 | ||
discovery transport-address 11.11.11.11 | ||
! | ||
interface r1-eth6 | ||
exit | ||
! | ||
exit-address-family | ||
! | ||
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,7 @@ | ||
router ospf | ||
ospf router-id 11.11.11.11 | ||
network 193.170.0.0/24 area 0.0.0.0 | ||
network 11.11.11.11/32 area 0.0.0.0 | ||
redistribute connected | ||
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,27 @@ | ||
log stdout | ||
interface r1-eth1 vrf vrf1 | ||
ip address 173.31.1.1/32 | ||
! | ||
interface r1-eth2 vrf vrf2 | ||
ip address 173.31.1.2/32 | ||
! | ||
interface r1-eth3 vrf vrf3 | ||
ip address 173.31.1.3/32 | ||
! | ||
interface r1-eth4 vrf vrf4 | ||
ip address 173.31.1.4/32 | ||
! | ||
interface r1-eth5 vrf vrf5 | ||
ip address 173.31.1.5/32 | ||
! | ||
|
||
interface r1-eth0 | ||
ip address 192.168.0.1/24 | ||
! | ||
|
||
interface r1-eth6 | ||
ip address 193.170.0.1/24 | ||
|
||
interface lo | ||
ip address 11.11.11.11/32 | ||
! |
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,70 @@ | ||
router bgp 65501 | ||
bgp router-id 192.0.2.2 | ||
no bgp ebgp-requires-policy | ||
neighbor 192.168.0.1 remote-as 65500 | ||
address-family ipv4 unicast | ||
no neighbor 192.168.0.1 activate | ||
exit-address-family | ||
address-family ipv4 vpn | ||
neighbor 192.168.0.1 activate | ||
exit-address-family | ||
! | ||
router bgp 65501 vrf vrf1 | ||
bgp router-id 192.0.2.2 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:1 | ||
rt vpn both 53:1 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
router bgp 65501 vrf vrf2 | ||
bgp router-id 192.0.2.2 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:2 | ||
rt vpn both 53:2 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
router bgp 65501 vrf vrf3 | ||
bgp router-id 192.0.2.2 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:3 | ||
rt vpn both 53:3 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
router bgp 65501 vrf vrf4 | ||
bgp router-id 192.0.2.2 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:4 | ||
rt vpn both 53:4 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
router bgp 65501 vrf vrf5 | ||
bgp router-id 192.0.2.2 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export auto | ||
rd vpn export 445:5 | ||
rt vpn both 53:5 | ||
export vpn | ||
import vpn | ||
exit-address-family | ||
! | ||
|
||
interface r2-eth0 | ||
mpls bgp forwarding | ||
! |
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,21 @@ | ||
log stdout | ||
interface r2-eth1 vrf vrf1 | ||
ip address 173.31.0.1/32 | ||
! | ||
interface r2-eth2 vrf vrf2 | ||
ip address 173.31.0.2/32 | ||
! | ||
interface r2-eth3 vrf vrf3 | ||
ip address 173.31.0.3/32 | ||
! | ||
interface r2-eth4 vrf vrf4 | ||
ip address 173.31.0.4/32 | ||
! | ||
interface r2-eth5 vrf vrf5 | ||
ip address 173.31.0.5/32 | ||
! | ||
|
||
|
||
interface r2-eth0 | ||
ip address 192.168.0.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,24 @@ | ||
hostname r3 | ||
log file ldpd.log | ||
! | ||
! debug mpls ldp zebra | ||
! debug mpls ldp event | ||
! debug mpls ldp errors | ||
! debug mpls ldp messages recv | ||
! debug mpls ldp messages sent | ||
! debug mpls ldp discovery hello recv | ||
! debug mpls ldp discovery hello sent | ||
! | ||
mpls ldp | ||
router-id 33.33.33.33 | ||
! | ||
address-family ipv4 | ||
discovery transport-address 33.33.33.33 | ||
! | ||
interface r3-eth0 | ||
exit | ||
! | ||
exit-address-family | ||
! | ||
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,7 @@ | ||
router ospf | ||
ospf router-id 33.33.33.33 | ||
network 193.170.0.0/24 area 0.0.0.0 | ||
network 33.33.33.33/32 area 0.0.0.0 | ||
redistribute connected | ||
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,18 @@ | ||
log stdout | ||
interface r3-eth0 | ||
ip address 193.170.0.2/24 | ||
! | ||
|
||
interface lo | ||
ip address 33.33.33.33/32 | ||
! | ||
|
||
|
||
interface r3-eth1 | ||
ip address 180.170.0.2/32 | ||
! | ||
|
||
|
||
interface r3-eth2 | ||
ip address 180.170.0.3/32 | ||
! |
Oops, something went wrong.