When srv6 is disabled due to misconfiguration, exported VPN prefixes
are invalidated, except for the ones that have their nexthop modified
with the 'nexthop vpn export' command. The previous commit also
invalidates those vpn prefixes.
Apply the changes to the test by not considering some prefixes as
selected. Enforce the expected route count.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
"1:10": {
"192.168.1.0/24": [
{
- "valid": true,
- "bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "192.168.1.0",
],
"192.168.3.0/24": [
{
- "valid": true,
- "bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "192.168.3.0",
"1:20": {
"192.168.5.0/24": [
{
- "valid": true,
- "bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "192.168.5.0",
]
}
}
- }
+ },
+ "totalRoutes": 3,
+ "totalPaths": 3
}
]
}
}
- }
+ },
+ "totalRoutes": 3,
+ "totalPaths": 3
}