mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 03:28:31 +00:00
topotests: bgp_vpnv6_per_nexthop_label, use only global ipv6 addresses
The test is modified so as to use global ipv6 addresses for nexthop resolution. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
cf0eeb3dc1
commit
e82cd92b19
@ -48,11 +48,11 @@
|
|||||||
{
|
{
|
||||||
"ip":"192:2::12",
|
"ip":"192:2::12",
|
||||||
"afi":"ipv6",
|
"afi":"ipv6",
|
||||||
"scope":"global"
|
"scope":"global",
|
||||||
|
"used":true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"scope": "link-local",
|
"scope": "link-local"
|
||||||
"used":true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -69,7 +69,8 @@
|
|||||||
{
|
{
|
||||||
"ip":"192:168::255:13",
|
"ip":"192:168::255:13",
|
||||||
"afi":"ipv6",
|
"afi":"ipv6",
|
||||||
"scope": "global"
|
"scope": "global",
|
||||||
|
"used":true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"scope": "link-local"
|
"scope": "link-local"
|
||||||
@ -123,7 +124,8 @@
|
|||||||
{
|
{
|
||||||
"ip":"192:2::11",
|
"ip":"192:2::11",
|
||||||
"afi":"ipv6",
|
"afi":"ipv6",
|
||||||
"scope":"global"
|
"scope":"global",
|
||||||
|
"used":true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -140,7 +142,8 @@
|
|||||||
{
|
{
|
||||||
"ip":"192:2::11",
|
"ip":"192:2::11",
|
||||||
"afi":"ipv6",
|
"afi":"ipv6",
|
||||||
"scope":"global"
|
"scope":"global",
|
||||||
|
"used":true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ router bgp 65500 vrf vrf1
|
|||||||
neighbor 192:168::255:13 activate
|
neighbor 192:168::255:13 activate
|
||||||
neighbor 192:168::255:13 route-map rmap in
|
neighbor 192:168::255:13 route-map rmap in
|
||||||
redistribute connected
|
redistribute connected
|
||||||
redistribute static
|
redistribute static route-map rmap
|
||||||
label vpn export allocation-mode per-nexthop
|
label vpn export allocation-mode per-nexthop
|
||||||
label vpn export auto
|
label vpn export auto
|
||||||
rd vpn export 444:1
|
rd vpn export 444:1
|
||||||
@ -39,7 +39,6 @@ interface r1-eth0
|
|||||||
bgp community-list 1 seq 5 permit 10:10
|
bgp community-list 1 seq 5 permit 10:10
|
||||||
!
|
!
|
||||||
route-map rmap permit 1
|
route-map rmap permit 1
|
||||||
match community 1
|
|
||||||
set ipv6 next-hop prefer-global
|
set ipv6 next-hop prefer-global
|
||||||
!
|
!
|
||||||
route-map rmap permit 2
|
route-map rmap permit 2
|
||||||
|
@ -7,12 +7,9 @@ router bgp 65500
|
|||||||
!
|
!
|
||||||
address-family ipv6 unicast
|
address-family ipv6 unicast
|
||||||
neighbor 192:2::100 activate
|
neighbor 192:2::100 activate
|
||||||
neighbor 192:2::100 route-map rmap out
|
|
||||||
network 172:31::11/128
|
network 172:31::11/128
|
||||||
network 172:31::111/128
|
network 172:31::111/128
|
||||||
network 172:31::20/128
|
network 172:31::20/128
|
||||||
exit-address-family
|
exit-address-family
|
||||||
!
|
!
|
||||||
route-map rmap permit 1
|
|
||||||
set community 10:10
|
|
||||||
!
|
|
||||||
|
@ -7,10 +7,6 @@ router bgp 65500
|
|||||||
exit-address-family
|
exit-address-family
|
||||||
address-family ipv6 unicast
|
address-family ipv6 unicast
|
||||||
neighbor 192:168::255:1 activate
|
neighbor 192:168::255:1 activate
|
||||||
neighbor 192:168::255:1 route-map rmap out
|
|
||||||
network 172:31::0:13/128
|
network 172:31::0:13/128
|
||||||
exit-address-family
|
exit-address-family
|
||||||
!
|
!
|
||||||
route-map rmap permit 1
|
|
||||||
set community 10:10
|
|
||||||
!
|
|
||||||
|
@ -52,9 +52,7 @@ from lib.topolog import logger
|
|||||||
pytestmark = [pytest.mark.bgpd]
|
pytestmark = [pytest.mark.bgpd]
|
||||||
|
|
||||||
PREFIXES_R11 = ["172:31::11/128", "172:31::20/128", "172:31::111/128"]
|
PREFIXES_R11 = ["172:31::11/128", "172:31::20/128", "172:31::111/128"]
|
||||||
PREFIXES_R12 = ["172:31::12/128"]
|
PREFIXES_R12 = ["172:31::12/128", "172:31::15/128"]
|
||||||
PREFIXES_REDIST_R12 = ["172:31::15/128"]
|
|
||||||
PREFIXES_R13 = ["172:31::13/128"]
|
|
||||||
PREFIXES_REDIST_R14 = ["172:31::14/128"]
|
PREFIXES_REDIST_R14 = ["172:31::14/128"]
|
||||||
PREFIXES_CONNECTED = ["192:168::255/112", "192:2::/64"]
|
PREFIXES_CONNECTED = ["192:168::255/112", "192:2::/64"]
|
||||||
|
|
||||||
@ -214,8 +212,6 @@ def bgp_vpnv6_table_check_all(router, label_list=None, same=False):
|
|||||||
router,
|
router,
|
||||||
group=PREFIXES_R11
|
group=PREFIXES_R11
|
||||||
+ PREFIXES_R12
|
+ PREFIXES_R12
|
||||||
+ PREFIXES_REDIST_R12
|
|
||||||
+ PREFIXES_R13
|
|
||||||
+ PREFIXES_REDIST_R14
|
+ PREFIXES_REDIST_R14
|
||||||
+ PREFIXES_CONNECTED,
|
+ PREFIXES_CONNECTED,
|
||||||
label_list=label_list,
|
label_list=label_list,
|
||||||
@ -224,8 +220,6 @@ def bgp_vpnv6_table_check_all(router, label_list=None, same=False):
|
|||||||
for group in (
|
for group in (
|
||||||
PREFIXES_R11,
|
PREFIXES_R11,
|
||||||
PREFIXES_R12,
|
PREFIXES_R12,
|
||||||
PREFIXES_REDIST_R12,
|
|
||||||
PREFIXES_R13,
|
|
||||||
PREFIXES_REDIST_R14,
|
PREFIXES_REDIST_R14,
|
||||||
PREFIXES_CONNECTED,
|
PREFIXES_CONNECTED,
|
||||||
):
|
):
|
||||||
|
Loading…
Reference in New Issue
Block a user