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:
Louis Scalbert 2023-06-08 12:27:18 +02:00
parent bf636d3712
commit fe993cb25f
8 changed files with 52 additions and 52 deletions

View File

@ -1,5 +1,5 @@
router bgp 65500 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 neighbor 10.125.0.2 remote-as 65500
address-family ipv4 unicast address-family ipv4 unicast
no neighbor 10.125.0.2 activate no neighbor 10.125.0.2 activate
@ -10,13 +10,13 @@ router bgp 65500
exit-address-family exit-address-family
! !
router bgp 65500 vrf vrf1 router bgp 65500 vrf vrf1
bgp router-id 1.1.1.1 bgp router-id 192.0.2.1
address-family ipv4 unicast address-family ipv4 unicast
redistribute connected redistribute connected
label vpn export 101 label vpn export 101
rd vpn export 444:1 rd vpn export 192.0.2.1:1
rt vpn import 51:100 52:100 rt vpn import 192.0.2.1:100 192.0.2.2:100
rt vpn export 51:100 rt vpn export 192.0.2.1:100
export vpn export vpn
import vpn import vpn
exit-address-family exit-address-family

View File

@ -1,21 +1,21 @@
{ {
"vrfId":0, "vrfId":0,
"vrfName":"default", "vrfName":"default",
"routerId":"1.1.1.1", "routerId":"192.0.2.1",
"defaultLocPrf":100, "defaultLocPrf":100,
"localAS":65500, "localAS":65500,
"routes":{ "routes":{
"routeDistinguishers":{ "routeDistinguishers":{
"444:1":{ "192.0.2.1:1":{
"10.201.0.0/24":[ "10.101.0.0/24":[
{ {
"valid":true, "valid":true,
"bestpath":true, "bestpath":true,
"selectionReason":"First path received", "selectionReason":"First path received",
"pathFrom":"external", "pathFrom":"external",
"prefix":"10.201.0.0", "prefix":"10.101.0.0",
"prefixLen":24, "prefixLen":24,
"network":"10.201.0.0\/24", "network":"10.101.0.0\/24",
"metric":0, "metric":0,
"weight":32768, "weight":32768,
"peerId":"(unspec)", "peerId":"(unspec)",
@ -34,16 +34,16 @@
} }
] ]
}, },
"444:2":{ "192.0.2.2:1":{
"10.200.0.0/24":[ "10.201.0.0/24":[
{ {
"valid":true, "valid":true,
"bestpath":true, "bestpath":true,
"selectionReason":"First path received", "selectionReason":"First path received",
"pathFrom":"internal", "pathFrom":"internal",
"prefix":"10.200.0.0", "prefix":"10.201.0.0",
"prefixLen":24, "prefixLen":24,
"network":"10.200.0.0\/24", "network":"10.201.0.0\/24",
"metric":0, "metric":0,
"locPrf":100, "locPrf":100,
"weight":0, "weight":0,
@ -61,16 +61,16 @@
} }
] ]
}, },
"444:3":{ "192.0.2.2:2":{
"10.210.0.0/24":[ "10.202.0.0/24":[
{ {
"valid":true, "valid":true,
"bestpath":true, "bestpath":true,
"selectionReason":"First path received", "selectionReason":"First path received",
"pathFrom":"internal", "pathFrom":"internal",
"prefix":"10.210.0.0", "prefix":"10.202.0.0",
"prefixLen":24, "prefixLen":24,
"network":"10.210.0.0\/24", "network":"10.202.0.0\/24",
"metric":0, "metric":0,
"locPrf":100, "locPrf":100,
"weight":0, "weight":0,

View File

@ -1,21 +1,21 @@
{ {
"vrfId":0, "vrfId":0,
"vrfName":"default", "vrfName":"default",
"routerId":"1.1.1.1", "routerId":"192.0.2.1",
"defaultLocPrf":100, "defaultLocPrf":100,
"localAS":65500, "localAS":65500,
"routes":{ "routes":{
"routeDistinguishers":{ "routeDistinguishers":{
"444:1":{ "192.0.2.1:1":{
"10.201.0.0/24":[ "10.101.0.0/24":[
{ {
"valid":true, "valid":true,
"bestpath":true, "bestpath":true,
"selectionReason":"First path received", "selectionReason":"First path received",
"pathFrom":"external", "pathFrom":"external",
"prefix":"10.201.0.0", "prefix":"10.101.0.0",
"prefixLen":24, "prefixLen":24,
"network":"10.201.0.0\/24", "network":"10.101.0.0\/24",
"metric":0, "metric":0,
"weight":32768, "weight":32768,
"peerId":"(unspec)", "peerId":"(unspec)",
@ -34,16 +34,16 @@
} }
] ]
}, },
"444:2":{ "192.0.2.2:1":{
"10.200.0.0/24":[ "10.201.0.0/24":[
{ {
"valid":true, "valid":true,
"bestpath":true, "bestpath":true,
"selectionReason":"First path received", "selectionReason":"First path received",
"pathFrom":"internal", "pathFrom":"internal",
"prefix":"10.200.0.0", "prefix":"10.201.0.0",
"prefixLen":24, "prefixLen":24,
"network":"10.200.0.0\/24", "network":"10.201.0.0\/24",
"metric":0, "metric":0,
"locPrf":100, "locPrf":100,
"weight":0, "weight":0,
@ -61,7 +61,7 @@
} }
] ]
}, },
"444:3":{ "192.0.2.2:2":{
} }
} }
} }

View File

@ -10,5 +10,5 @@ router isis 1
is-type level-1 is-type level-1
net 49.0002.0000.1994.00 net 49.0002.0000.1994.00
segment-routing on segment-routing on
segment-routing prefix 1.1.1.1/32 index 11 segment-routing prefix 192.0.2.1/32 index 11
! !

View File

@ -1,13 +1,13 @@
log stdout log stdout
interface lo interface lo
ip address 1.1.1.1/32 ip address 192.0.2.1/32
! !
interface r1-gre0 interface r1-gre0
ip address 192.168.0.1/24 ip address 192.168.0.1/24
! !
interface r1-eth1 vrf vrf1
ip address 10.201.0.1/24
!
interface r1-eth0 interface r1-eth0
ip address 10.125.0.1/24 ip address 10.125.0.1/24
! !
interface r1-eth1 vrf vrf1
ip address 10.101.0.1/24
!

View File

@ -1,5 +1,5 @@
router bgp 65500 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 neighbor 10.125.0.1 remote-as 65500
address-family ipv4 unicast address-family ipv4 unicast
no neighbor 10.125.0.1 activate no neighbor 10.125.0.1 activate
@ -10,25 +10,25 @@ router bgp 65500
exit-address-family exit-address-family
! !
router bgp 65500 vrf vrf1 router bgp 65500 vrf vrf1
bgp router-id 2.2.2.2 bgp router-id 192.0.2.2
address-family ipv4 unicast address-family ipv4 unicast
redistribute connected redistribute connected
label vpn export 102 label vpn export 201
rd vpn export 444:2 rd vpn export 192.0.2.2:1
rt vpn import 53:100 52:100 51:100 rt vpn import 192.0.2.1:100 192.0.2.2:100 192.0.2.2:200
rt vpn export 52:100 rt vpn export 192.0.2.2:100
export vpn export vpn
import vpn import vpn
exit-address-family exit-address-family
! !
router bgp 65500 vrf vrf2 router bgp 65500 vrf vrf2
bgp router-id 2.2.2.2 bgp router-id 192.0.2.2
address-family ipv4 unicast address-family ipv4 unicast
redistribute connected redistribute connected
label vpn export 102 label vpn export 202
rd vpn export 444:3 rd vpn export 192.0.2.2:2
rt vpn both 53:100 52:100 51:100 rt vpn both 192.0.2.1:100 192.0.2.2:100 192.0.2.2:200
rt vpn both 53:100 rt vpn both 192.0.2.2:200
export vpn export vpn
import vpn import vpn
exit-address-family exit-address-family

View File

@ -10,5 +10,5 @@ router isis 1
is-type level-1 is-type level-1
net 49.0002.0000.1995.00 net 49.0002.0000.1995.00
segment-routing on segment-routing on
segment-routing prefix 2.2.2.2/32 index 22 segment-routing prefix 192.0.2.2/32 index 22
! !

View File

@ -1,16 +1,16 @@
log stdout log stdout
interface lo interface lo
ip address 2.2.2.2/32 ip address 192.0.2.2/32
! !
interface r2-gre0 interface r2-gre0
ip address 192.168.0.2/24 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 interface r2-eth0
ip address 10.125.0.2/24 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
!