-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topotests: bgp_aggregate_address_topo1, add test for suppressed keyword
Add a test that checks that the BGP route to 192.168.0.1 has all the necessary json outputs. This route is chosen because it is a suppressed route. Signed-off-by: Philippe Guibert <[email protected]>
- Loading branch information
1 parent
b403769
commit ae35494
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
tests/topotests/bgp_aggregate_address_topo1/r1/bgp_192_168_0_1.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,41 @@ | ||
{ | ||
"prefix":"192.168.0.1/32", | ||
"paths":[ | ||
{ | ||
"aspath":{ | ||
"string":"65001", | ||
"segments":[ | ||
{ | ||
"type":"as-sequence", | ||
"list":[ | ||
65001 | ||
] | ||
} | ||
], | ||
"length":1 | ||
}, | ||
"suppressed":true, | ||
"origin":"IGP", | ||
"metric":10, | ||
"valid":true, | ||
"bestpath":{ | ||
"overall":true, | ||
"selectionReason":"First path received" | ||
}, | ||
"nexthops":[ | ||
{ | ||
"ip":"10.0.0.2", | ||
"afi":"ipv4", | ||
"metric":0, | ||
"accessible":true, | ||
"used":true | ||
} | ||
], | ||
"peer":{ | ||
"peerId":"10.0.0.2", | ||
"routerId":"10.254.254.3", | ||
"type":"external" | ||
} | ||
} | ||
] | ||
} |
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