mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 22:09:48 +00:00
topotests: router relative variables in bgp_vpnv4_noretain
Change IP addresses, label, RD and RT to match the router number and VRF number. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
bf636d3712
commit
fe993cb25f
@ -1,5 +1,5 @@
|
||||
router bgp 65500
|
||||
bgp router-id 1.1.1.1
|
||||
bgp router-id 192.0.2.1
|
||||
neighbor 10.125.0.2 remote-as 65500
|
||||
address-family ipv4 unicast
|
||||
no neighbor 10.125.0.2 activate
|
||||
@ -10,13 +10,13 @@ router bgp 65500
|
||||
exit-address-family
|
||||
!
|
||||
router bgp 65500 vrf vrf1
|
||||
bgp router-id 1.1.1.1
|
||||
bgp router-id 192.0.2.1
|
||||
address-family ipv4 unicast
|
||||
redistribute connected
|
||||
label vpn export 101
|
||||
rd vpn export 444:1
|
||||
rt vpn import 51:100 52:100
|
||||
rt vpn export 51:100
|
||||
rd vpn export 192.0.2.1:1
|
||||
rt vpn import 192.0.2.1:100 192.0.2.2:100
|
||||
rt vpn export 192.0.2.1:100
|
||||
export vpn
|
||||
import vpn
|
||||
exit-address-family
|
||||
|
@ -1,21 +1,21 @@
|
||||
{
|
||||
"vrfId":0,
|
||||
"vrfName":"default",
|
||||
"routerId":"1.1.1.1",
|
||||
"routerId":"192.0.2.1",
|
||||
"defaultLocPrf":100,
|
||||
"localAS":65500,
|
||||
"routes":{
|
||||
"routeDistinguishers":{
|
||||
"444:1":{
|
||||
"10.201.0.0/24":[
|
||||
"192.0.2.1:1":{
|
||||
"10.101.0.0/24":[
|
||||
{
|
||||
"valid":true,
|
||||
"bestpath":true,
|
||||
"selectionReason":"First path received",
|
||||
"pathFrom":"external",
|
||||
"prefix":"10.201.0.0",
|
||||
"prefix":"10.101.0.0",
|
||||
"prefixLen":24,
|
||||
"network":"10.201.0.0\/24",
|
||||
"network":"10.101.0.0\/24",
|
||||
"metric":0,
|
||||
"weight":32768,
|
||||
"peerId":"(unspec)",
|
||||
@ -34,16 +34,16 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"444:2":{
|
||||
"10.200.0.0/24":[
|
||||
"192.0.2.2:1":{
|
||||
"10.201.0.0/24":[
|
||||
{
|
||||
"valid":true,
|
||||
"bestpath":true,
|
||||
"selectionReason":"First path received",
|
||||
"pathFrom":"internal",
|
||||
"prefix":"10.200.0.0",
|
||||
"prefix":"10.201.0.0",
|
||||
"prefixLen":24,
|
||||
"network":"10.200.0.0\/24",
|
||||
"network":"10.201.0.0\/24",
|
||||
"metric":0,
|
||||
"locPrf":100,
|
||||
"weight":0,
|
||||
@ -61,16 +61,16 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"444:3":{
|
||||
"10.210.0.0/24":[
|
||||
"192.0.2.2:2":{
|
||||
"10.202.0.0/24":[
|
||||
{
|
||||
"valid":true,
|
||||
"bestpath":true,
|
||||
"selectionReason":"First path received",
|
||||
"pathFrom":"internal",
|
||||
"prefix":"10.210.0.0",
|
||||
"prefix":"10.202.0.0",
|
||||
"prefixLen":24,
|
||||
"network":"10.210.0.0\/24",
|
||||
"network":"10.202.0.0\/24",
|
||||
"metric":0,
|
||||
"locPrf":100,
|
||||
"weight":0,
|
||||
|
@ -1,21 +1,21 @@
|
||||
{
|
||||
"vrfId":0,
|
||||
"vrfName":"default",
|
||||
"routerId":"1.1.1.1",
|
||||
"routerId":"192.0.2.1",
|
||||
"defaultLocPrf":100,
|
||||
"localAS":65500,
|
||||
"routes":{
|
||||
"routeDistinguishers":{
|
||||
"444:1":{
|
||||
"10.201.0.0/24":[
|
||||
"192.0.2.1:1":{
|
||||
"10.101.0.0/24":[
|
||||
{
|
||||
"valid":true,
|
||||
"bestpath":true,
|
||||
"selectionReason":"First path received",
|
||||
"pathFrom":"external",
|
||||
"prefix":"10.201.0.0",
|
||||
"prefix":"10.101.0.0",
|
||||
"prefixLen":24,
|
||||
"network":"10.201.0.0\/24",
|
||||
"network":"10.101.0.0\/24",
|
||||
"metric":0,
|
||||
"weight":32768,
|
||||
"peerId":"(unspec)",
|
||||
@ -34,16 +34,16 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"444:2":{
|
||||
"10.200.0.0/24":[
|
||||
"192.0.2.2:1":{
|
||||
"10.201.0.0/24":[
|
||||
{
|
||||
"valid":true,
|
||||
"bestpath":true,
|
||||
"selectionReason":"First path received",
|
||||
"pathFrom":"internal",
|
||||
"prefix":"10.200.0.0",
|
||||
"prefix":"10.201.0.0",
|
||||
"prefixLen":24,
|
||||
"network":"10.200.0.0\/24",
|
||||
"network":"10.201.0.0\/24",
|
||||
"metric":0,
|
||||
"locPrf":100,
|
||||
"weight":0,
|
||||
@ -61,7 +61,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"444:3":{
|
||||
"192.0.2.2:2":{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,5 +10,5 @@ router isis 1
|
||||
is-type level-1
|
||||
net 49.0002.0000.1994.00
|
||||
segment-routing on
|
||||
segment-routing prefix 1.1.1.1/32 index 11
|
||||
segment-routing prefix 192.0.2.1/32 index 11
|
||||
!
|
||||
|
@ -1,13 +1,13 @@
|
||||
log stdout
|
||||
interface lo
|
||||
ip address 1.1.1.1/32
|
||||
ip address 192.0.2.1/32
|
||||
!
|
||||
interface r1-gre0
|
||||
ip address 192.168.0.1/24
|
||||
!
|
||||
interface r1-eth1 vrf vrf1
|
||||
ip address 10.201.0.1/24
|
||||
!
|
||||
interface r1-eth0
|
||||
ip address 10.125.0.1/24
|
||||
!
|
||||
interface r1-eth1 vrf vrf1
|
||||
ip address 10.101.0.1/24
|
||||
!
|
||||
|
@ -1,5 +1,5 @@
|
||||
router bgp 65500
|
||||
bgp router-id 2.2.2.2
|
||||
bgp router-id 192.0.2.2
|
||||
neighbor 10.125.0.1 remote-as 65500
|
||||
address-family ipv4 unicast
|
||||
no neighbor 10.125.0.1 activate
|
||||
@ -10,25 +10,25 @@ router bgp 65500
|
||||
exit-address-family
|
||||
!
|
||||
router bgp 65500 vrf vrf1
|
||||
bgp router-id 2.2.2.2
|
||||
bgp router-id 192.0.2.2
|
||||
address-family ipv4 unicast
|
||||
redistribute connected
|
||||
label vpn export 102
|
||||
rd vpn export 444:2
|
||||
rt vpn import 53:100 52:100 51:100
|
||||
rt vpn export 52:100
|
||||
label vpn export 201
|
||||
rd vpn export 192.0.2.2:1
|
||||
rt vpn import 192.0.2.1:100 192.0.2.2:100 192.0.2.2:200
|
||||
rt vpn export 192.0.2.2:100
|
||||
export vpn
|
||||
import vpn
|
||||
exit-address-family
|
||||
!
|
||||
router bgp 65500 vrf vrf2
|
||||
bgp router-id 2.2.2.2
|
||||
bgp router-id 192.0.2.2
|
||||
address-family ipv4 unicast
|
||||
redistribute connected
|
||||
label vpn export 102
|
||||
rd vpn export 444:3
|
||||
rt vpn both 53:100 52:100 51:100
|
||||
rt vpn both 53:100
|
||||
label vpn export 202
|
||||
rd vpn export 192.0.2.2:2
|
||||
rt vpn both 192.0.2.1:100 192.0.2.2:100 192.0.2.2:200
|
||||
rt vpn both 192.0.2.2:200
|
||||
export vpn
|
||||
import vpn
|
||||
exit-address-family
|
||||
|
@ -10,5 +10,5 @@ router isis 1
|
||||
is-type level-1
|
||||
net 49.0002.0000.1995.00
|
||||
segment-routing on
|
||||
segment-routing prefix 2.2.2.2/32 index 22
|
||||
segment-routing prefix 192.0.2.2/32 index 22
|
||||
!
|
||||
|
@ -1,16 +1,16 @@
|
||||
log stdout
|
||||
interface lo
|
||||
ip address 2.2.2.2/32
|
||||
ip address 192.0.2.2/32
|
||||
!
|
||||
interface r2-gre0
|
||||
ip address 192.168.0.2/24
|
||||
!
|
||||
interface r2-eth1 vrf vrf1
|
||||
ip address 10.200.0.2/24
|
||||
!
|
||||
interface r2-eth2 vrf vrf2
|
||||
ip address 10.210.0.2/24
|
||||
!
|
||||
interface r2-eth0
|
||||
ip address 10.125.0.2/24
|
||||
!
|
||||
interface r2-eth1 vrf vrf1
|
||||
ip address 10.201.0.2/24
|
||||
!
|
||||
interface r2-eth2 vrf vrf2
|
||||
ip address 10.202.0.2/24
|
||||
!
|
||||
|
Loading…
Reference in New Issue
Block a user