Skip to content

Commit

Permalink
topotests: add bgp_l3vpn_label_export
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind authored and pguibert6WIND committed Sep 29, 2023
1 parent 298bea2 commit 53ab88f
Show file tree
Hide file tree
Showing 10 changed files with 598 additions and 0 deletions.
Empty file.
22 changes: 22 additions & 0 deletions tests/topotests/bgp_l3vpn_label_export/r1/bgpd.conf
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
!
26 changes: 26 additions & 0 deletions tests/topotests/bgp_l3vpn_label_export/r1/ldpd.conf
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
!
1 change: 1 addition & 0 deletions tests/topotests/bgp_l3vpn_label_export/r1/staticd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ip route 192.0.2.2/32 192.168.1.2
7 changes: 7 additions & 0 deletions tests/topotests/bgp_l3vpn_label_export/r1/zebra.conf
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
!
23 changes: 23 additions & 0 deletions tests/topotests/bgp_l3vpn_label_export/r2/bgpd.conf
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
!
24 changes: 24 additions & 0 deletions tests/topotests/bgp_l3vpn_label_export/r2/ldpd.conf
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
!
1 change: 1 addition & 0 deletions tests/topotests/bgp_l3vpn_label_export/r2/staticd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ip route 192.0.2.1/32 192.168.1.1
7 changes: 7 additions & 0 deletions tests/topotests/bgp_l3vpn_label_export/r2/zebra.conf
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
!
Loading

0 comments on commit 53ab88f

Please sign in to comment.