Skip to content

Commit

Permalink
Merge pull request FRRouting#17369 from louis-6wind/bgp_vpnv4_route_l…
Browse files Browse the repository at this point in the history
…eak_basic

tests: add bgp_vpnv4_route_leak_basic
  • Loading branch information
ton31337 authored Nov 25, 2024
2 parents 28b45fd + 82a540d commit 0bacbc6
Show file tree
Hide file tree
Showing 3 changed files with 609 additions and 0 deletions.
75 changes: 75 additions & 0 deletions tests/topotests/bgp_vpnv4_route_leak_basic/r1/frr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
int dummy0
ip address 10.0.4.1/24
no shut
!
int dummy1
ip address 10.0.0.1/24
no shut
!
int dummy2
ip address 10.0.1.1/24
no shut
!
int dummy3
ip address 10.0.2.1/24
no shut
!
int dummy4
ip address 10.0.3.1/24
no shut
!
int EVA
no shut
!
int DONNA
no shut
!
ip router-id 10.0.4.1
!
router bgp 99
no bgp ebgp-requires-policy
address-family ipv4 unicast
redistribute connected
rd vpn export 10.0.4.1:1
rt vpn export 10.0.4.1:1
rt vpn import 10.0.4.1:101
export vpn
import vpn
!
!
router bgp 99 vrf DONNA
no bgp ebgp-requires-policy
address-family ipv4 unicast
redistribute connected
label vpn export 101
rd vpn export 10.0.4.1:1
rt vpn export 10.0.4.1:101
rt vpn import 10.0.4.1:1 10.0.4.1:102 10.0.4.1:103
export vpn
import vpn
!
!
router bgp 99 vrf EVA
no bgp ebgp-requires-policy
address-family ipv4 unicast
redistribute connected
label vpn export 102
rd vpn export 10.0.4.1:1
rt vpn export 10.0.4.1:102
rt vpn import 10.0.4.1:101 10.0.4.1:103
export vpn
import vpn
!
!
router bgp 99 vrf ZITA
no bgp ebgp-requires-policy
no bgp network import-check
address-family ipv4 unicast
network 172.16.101.0/24
label vpn export 103
rd vpn export 10.0.4.1:1
rt vpn export 10.0.4.1:103
export vpn
import vpn
!
!
17 changes: 17 additions & 0 deletions tests/topotests/bgp_vpnv4_route_leak_basic/setup_vrfs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

ip link add DONNA type vrf table 1001
ip link add EVA type vrf table 1002

ip link add dummy0 type dummy # vrf default
ip link add dummy1 type dummy
ip link add dummy2 type dummy
ip link add dummy3 type dummy
ip link add dummy4 type dummy

ip link set dummy1 master DONNA
ip link set dummy2 master EVA
ip link set dummy3 master DONNA
ip link set dummy4 master EVA


Loading

0 comments on commit 0bacbc6

Please sign in to comment.