Update route_leak_basic tests. The routes with an unusable nexthop VRF
are no more present in the RIB.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
],
},
],
- "172.16.101.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "unknown",
- "vrf": "Unknown",
- "active": None,
- },
- ],
- },
- ],
+ "172.16.101.0/24": None,
}
test_func = partial(
"protocol": "connected",
}
],
- "172.16.101.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "unknown",
- "vrf": "Unknown",
- "active": None,
- },
- ],
- },
- ],
+ "172.16.101.0/24": None,
}
test_func = partial(
# Test DONNA VRF.
expect = {
- "10.0.1.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "EVA",
- "vrf": "EVA",
- "active": None,
- },
- ],
- },
- ],
- "10.0.3.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "EVA",
- "vrf": "EVA",
- "active": None,
- },
- ],
- },
- ],
+ "10.0.1.0/24": None,
+ "10.0.3.0/24": None,
}
test_func = partial(
# Test DONNA VRF.
expect = {
- "172.16.101.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "ZITA",
- "vrf": "ZITA",
- "active": None,
- },
- ],
- },
- ],
+ "172.16.101.0/24": None,
}
test_func = partial(
],
},
],
- "172.16.101.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "unknown",
- "vrf": "Unknown",
- "active": None,
- },
- ],
- },
- ],
+ "172.16.101.0/24": None,
}
test_func = partial(
"protocol": "connected",
}
],
- "172.16.101.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "unknown",
- "vrf": "Unknown",
- "active": None,
- },
- ],
- },
- ],
+ "172.16.101.0/24": None,
}
test_func = partial(
# Test DONNA VRF.
expect = {
- "10.0.1.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "EVA",
- "vrf": "EVA",
- "active": None,
- },
- ],
- },
- ],
- "10.0.3.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "EVA",
- "vrf": "EVA",
- "active": None,
- },
- ],
- },
- ],
+ "10.0.1.0/24": None,
+ "10.0.3.0/24": None,
}
test_func = partial(
# Test DONNA VRF.
expect = {
- "172.16.101.0/24": [
- {
- "protocol": "bgp",
- "selected": None,
- "nexthops": [
- {
- "fib": None,
- "interfaceName": "ZITA",
- "vrf": "ZITA",
- "active": None,
- },
- ],
- },
- ],
+ "172.16.101.0/24": None,
}
test_func = partial(