mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
topotests: test leak from unknown vrf
Add a test in bgp_vrf_route_leak_basic topotest to check that route leaking from a non existing VRF results in an inactive route. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
b459f7937e
commit
eeb9f76588
@ -5,6 +5,7 @@ router bgp 99 vrf DONNA
|
|||||||
address-family ipv4 unicast
|
address-family ipv4 unicast
|
||||||
redistribute connected
|
redistribute connected
|
||||||
import vrf EVA
|
import vrf EVA
|
||||||
|
import vrf NOTEXISTING
|
||||||
!
|
!
|
||||||
!
|
!
|
||||||
router bgp 99 vrf EVA
|
router bgp 99 vrf EVA
|
||||||
@ -12,5 +13,13 @@ router bgp 99 vrf EVA
|
|||||||
address-family ipv4 unicast
|
address-family ipv4 unicast
|
||||||
redistribute connected
|
redistribute connected
|
||||||
import vrf DONNA
|
import vrf DONNA
|
||||||
|
import vrf NOTEXISTING
|
||||||
|
!
|
||||||
|
!
|
||||||
|
router bgp 99 vrf NOTEXISTING
|
||||||
|
no bgp ebgp-requires-policy
|
||||||
|
no bgp network import-check
|
||||||
|
address-family ipv4 unicast
|
||||||
|
network 172.16.101.0/24
|
||||||
!
|
!
|
||||||
!
|
!
|
||||||
|
@ -109,6 +109,18 @@ def test_vrf_route_leak():
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
"172.16.101.0/24": [
|
||||||
|
{
|
||||||
|
"protocol": "bgp",
|
||||||
|
"nexthops": [
|
||||||
|
{
|
||||||
|
"interfaceIndex": 0,
|
||||||
|
"interfaceName": "unknown",
|
||||||
|
"vrf": "Unknown",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
test_func = partial(
|
test_func = partial(
|
||||||
@ -157,6 +169,18 @@ def test_vrf_route_leak():
|
|||||||
"protocol": "connected",
|
"protocol": "connected",
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"172.16.101.0/24": [
|
||||||
|
{
|
||||||
|
"protocol": "bgp",
|
||||||
|
"nexthops": [
|
||||||
|
{
|
||||||
|
"interfaceIndex": 0,
|
||||||
|
"interfaceName": "unknown",
|
||||||
|
"vrf": "Unknown",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
test_func = partial(
|
test_func = partial(
|
||||||
|
Loading…
Reference in New Issue
Block a user