-
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: add bgp_l3vpn_label_export
There is no test that checks for the label allocation mechanisms involved when using BGP and/or LDP. Signed-off-by: Louis Scalbert <[email protected]> Signed-off-by: Philippe Guibert <[email protected]>
- Loading branch information
1 parent
7eef99d
commit 51e8992
Showing
10 changed files
with
628 additions
and
0 deletions.
There are no files selected for viewing
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,22 @@ | ||
router bgp 65001 | ||
bgp router-id 192.0.2.1 | ||
no bgp default ipv4-unicast | ||
no bgp ebgp-requires-policy | ||
neighbor 192.0.2.2 remote-as 65002 | ||
neighbor 192.0.2.2 timers 1 3 | ||
neighbor 192.0.2.2 timers connect 1 | ||
neighbor 192.0.2.2 ebgp-multihop 2 | ||
address-family ipv4 vpn | ||
neighbor 192.0.2.2 activate | ||
exit-address-family | ||
! | ||
router bgp 65001 vrf vrf1 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export 1111 | ||
rd vpn export 101:1 | ||
rt vpn both 52:100 | ||
import vpn | ||
export vpn | ||
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,26 @@ | ||
hostname r1 | ||
log file ldpd.log | ||
password zebra | ||
! | ||
! 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 192.0.2.1 | ||
! | ||
address-family ipv4 | ||
discovery transport-address 192.0.2.1 | ||
! | ||
interface r1-eth0 | ||
! | ||
interface r1-eth1 | ||
! | ||
! | ||
! | ||
line vty | ||
! |
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 @@ | ||
ip route 192.0.2.2/32 192.168.1.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,7 @@ | ||
! | ||
interface lo | ||
ip address 192.0.2.1/32 | ||
! | ||
interface r1-eth0 | ||
ip address 192.168.1.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,23 @@ | ||
router bgp 65002 | ||
bgp router-id 192.0.2.2 | ||
no bgp default ipv4-unicast | ||
no bgp ebgp-requires-policy | ||
neighbor 192.168.1.1 remote-as 65001 | ||
neighbor 192.168.1.1 timers 1 3 | ||
neighbor 192.168.1.1 timers connect 1 | ||
neighbor 192.168.1.1 ebgp-multihop 2 | ||
neighbor 192.168.1.1 update-source 192.0.2.2 | ||
address-family ipv4 vpn | ||
neighbor 192.168.1.1 activate | ||
exit-address-family | ||
! | ||
router bgp 65002 vrf vrf1 | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export 2222 | ||
rd vpn export 102:1 | ||
rt vpn both 52:100 | ||
import vpn | ||
export vpn | ||
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,24 @@ | ||
hostname r2 | ||
log file ldpd.log | ||
password zebra | ||
! | ||
! 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 192.0.2.2 | ||
! | ||
address-family ipv4 | ||
discovery transport-address 192.0.2.2 | ||
! | ||
interface r2-eth0 | ||
! | ||
! | ||
! | ||
line vty | ||
! |
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 @@ | ||
ip route 192.0.2.1/32 192.168.1.1 |
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 @@ | ||
! | ||
int lo | ||
ip address 192.0.2.2/32 | ||
! | ||
interface r2-eth0 | ||
ip address 192.168.1.2/24 | ||
! |
Oops, something went wrong.