tests: Add valid, bestpath, and selectionReason to JSON files

They are expected in router_vrf_json_cmp_exact_filter(), because it has
exact=True.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2024-09-05 12:49:42 +03:00
parent 34f7a5730b
commit 014acb15d6
4 changed files with 30 additions and 0 deletions

View File

@ -7,6 +7,9 @@
"routes": {
"10.204.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.204.0.0",
"prefixLen": 24,
@ -63,6 +66,9 @@
],
"10.201.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.201.0.0",
"prefixLen": 24,

View File

@ -7,6 +7,9 @@
"routes": {
"10.204.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.204.0.0",
"prefixLen": 24,
@ -63,6 +66,9 @@
],
"10.201.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.201.0.0",
"prefixLen": 24,

View File

@ -7,6 +7,9 @@
"routes": {
"10.204.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.204.0.0",
"prefixLen": 24,
@ -63,6 +66,9 @@
],
"10.201.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.201.0.0",
"prefixLen": 24,
@ -161,6 +167,9 @@
"routes": {
"10.202.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.202.0.0",
"prefixLen": 24,

View File

@ -7,6 +7,9 @@
"routes": {
"10.204.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.204.0.0",
"prefixLen": 24,
@ -63,6 +66,9 @@
],
"10.201.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.201.0.0",
"prefixLen": 24,
@ -161,6 +167,9 @@
"routes": {
"10.203.0.0/24": [
{
"valid": true,
"bestpath": true,
"selectionReason": "First path received",
"pathFrom": "external",
"prefix": "10.203.0.0",
"prefixLen": 24,