forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add flex-algo prefix-metric flag test
Test the redistribution of the prefix in a flex-algo topology on which the prefix-metric flag is set. Signed-off-by: Louis Scalbert <[email protected]>
- Loading branch information
1 parent
bb20288
commit 9b9554b
Showing
32 changed files
with
1,971 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ip route 10.44.0.0/24 10.1.0.254 |
84 changes: 84 additions & 0 deletions
84
tests/topotests/isis_sr_flex_algo_metrics/rt0/step1/route-142.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[ | ||
{ | ||
"area": "1", | ||
"level-1": { | ||
"area": "1", | ||
"ipv4": [ | ||
{ | ||
"Prefix": "1.1.1.1/32", | ||
"Metric": 110, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "2.2.2.2/32", | ||
"Metric": 5110, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21422" | ||
}, | ||
{ | ||
"Prefix": "3.3.3.3/32", | ||
"Metric": 5210, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21423" | ||
}, | ||
{ | ||
"Prefix": "4.4.4.4/32", | ||
"Metric": 210, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21424" | ||
}, | ||
{ | ||
"Prefix": "5.5.5.5/32", | ||
"Metric": 5010, | ||
"Interface": "eth-rt5", | ||
"Nexthop": "10.5.0.5", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "6.6.6.6/32", | ||
"Metric": 5410, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21426" | ||
}, | ||
{ | ||
"Prefix": "7.7.7.7/32", | ||
"Metric": 410, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21427" | ||
}, | ||
{ | ||
"Prefix": "8.8.8.8/32", | ||
"Metric": 310, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21428" | ||
}, | ||
{ | ||
"Prefix": "9.9.9.9/32", | ||
"Metric": 510, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21429" | ||
}, | ||
{ | ||
"Prefix": "10.10.10.10/32", | ||
"Metric": 0, | ||
"Interface": "-", | ||
"Nexthop": "-", | ||
"Label(s)": "-" | ||
} | ||
] | ||
}, | ||
"level-2": { | ||
"area": "1" | ||
}, | ||
"vrf_id": 0 | ||
} | ||
] |
84 changes: 84 additions & 0 deletions
84
tests/topotests/isis_sr_flex_algo_metrics/rt0/step2/route-142.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[ | ||
{ | ||
"area": "1", | ||
"level-1": { | ||
"area": "1", | ||
"ipv4": [ | ||
{ | ||
"Prefix": "1.1.1.1/32", | ||
"Metric": 110, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "2.2.2.2/32", | ||
"Metric": 5110, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21422" | ||
}, | ||
{ | ||
"Prefix": "3.3.3.3/32", | ||
"Metric": 5410, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21423" | ||
}, | ||
{ | ||
"Prefix": "4.4.4.4/32", | ||
"Metric": 210, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21424" | ||
}, | ||
{ | ||
"Prefix": "5.5.5.5/32", | ||
"Metric": 5010, | ||
"Interface": "eth-rt5", | ||
"Nexthop": "10.5.0.5", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "6.6.6.6/32", | ||
"Metric": 5410, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21426" | ||
}, | ||
{ | ||
"Prefix": "7.7.7.7/32", | ||
"Metric": 410, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21427" | ||
}, | ||
{ | ||
"Prefix": "8.8.8.8/32", | ||
"Metric": 310, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21428" | ||
}, | ||
{ | ||
"Prefix": "9.9.9.9/32", | ||
"Metric": 510, | ||
"Interface": "eth-rt1", | ||
"Nexthop": "10.1.0.1", | ||
"Label(s)": "21429" | ||
}, | ||
{ | ||
"Prefix": "10.10.10.10/32", | ||
"Metric": 0, | ||
"Interface": "-", | ||
"Nexthop": "-", | ||
"Label(s)": "-" | ||
} | ||
] | ||
}, | ||
"level-2": { | ||
"area": "1" | ||
}, | ||
"vrf_id": 0 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
tests/topotests/isis_sr_flex_algo_metrics/rt1/step1/route-142.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
[ | ||
{ | ||
"area": "1", | ||
"level-1": { | ||
"area": "1", | ||
"ipv4": [ | ||
{ | ||
"Prefix": "1.1.1.1/32", | ||
"Metric": 0, | ||
"Interface": "-", | ||
"Nexthop": "-", | ||
"Label(s)": "-" | ||
}, | ||
{ | ||
"Prefix": "2.2.2.2/32", | ||
"Metric": 5010, | ||
"Interface": "eth-rt2", | ||
"Nexthop": "10.12.0.2", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "3.3.3.3/32", | ||
"Metric": 5110, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21423" | ||
}, | ||
{ | ||
"Prefix": "4.4.4.4/32", | ||
"Metric": 110, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "5.5.5.5/32", | ||
"Metric": 5010, | ||
"Interface": "eth-rt5", | ||
"Nexthop": "10.15.0.5", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "6.6.6.6/32", | ||
"Metric": 5310, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21426" | ||
}, | ||
{ | ||
"Prefix": "7.7.7.7/32", | ||
"Metric": 310, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21427" | ||
}, | ||
{ | ||
"Prefix": "8.8.8.8/32", | ||
"Metric": 210, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21428" | ||
}, | ||
{ | ||
"Prefix": "9.9.9.9/32", | ||
"Metric": 410, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21429" | ||
}, | ||
{ | ||
"Prefix": "10.10.10.10/32", | ||
"Metric": 110, | ||
"Interface": "eth-rt0", | ||
"Nexthop": "10.1.0.10", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "10.44.0.0/24", | ||
"Metric": 125, | ||
"Interface": "eth-rt0", | ||
"Nexthop": "10.1.0.10", | ||
"Label(s)": "-" | ||
} | ||
] | ||
}, | ||
"level-2": { | ||
"area": "1" | ||
}, | ||
"vrf_id": 0 | ||
} | ||
] |
84 changes: 84 additions & 0 deletions
84
tests/topotests/isis_sr_flex_algo_metrics/rt1/step2/route-142.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[ | ||
{ | ||
"area": "1", | ||
"level-1": { | ||
"area": "1", | ||
"ipv4": [ | ||
{ | ||
"Prefix": "1.1.1.1/32", | ||
"Metric": 0, | ||
"Interface": "-", | ||
"Nexthop": "-", | ||
"Label(s)": "-" | ||
}, | ||
{ | ||
"Prefix": "2.2.2.2/32", | ||
"Metric": 5010, | ||
"Interface": "eth-rt2", | ||
"Nexthop": "10.12.0.2", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "3.3.3.3/32", | ||
"Metric": 5310, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21423" | ||
}, | ||
{ | ||
"Prefix": "4.4.4.4/32", | ||
"Metric": 110, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "5.5.5.5/32", | ||
"Metric": 5010, | ||
"Interface": "eth-rt5", | ||
"Nexthop": "10.15.0.5", | ||
"Label(s)": "implicit-null" | ||
}, | ||
{ | ||
"Prefix": "6.6.6.6/32", | ||
"Metric": 5310, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21426" | ||
}, | ||
{ | ||
"Prefix": "7.7.7.7/32", | ||
"Metric": 310, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21427" | ||
}, | ||
{ | ||
"Prefix": "8.8.8.8/32", | ||
"Metric": 210, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21428" | ||
}, | ||
{ | ||
"Prefix": "9.9.9.9/32", | ||
"Metric": 410, | ||
"Interface": "eth-rt4", | ||
"Nexthop": "10.14.0.4", | ||
"Label(s)": "21429" | ||
}, | ||
{ | ||
"Prefix": "10.10.10.10/32", | ||
"Metric": 110, | ||
"Interface": "eth-rt0", | ||
"Nexthop": "10.1.0.10", | ||
"Label(s)": "implicit-null" | ||
} | ||
] | ||
}, | ||
"level-2": { | ||
"area": "1" | ||
}, | ||
"vrf_id": 0 | ||
} | ||
] |
Oops, something went wrong.