-
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_ipv6_rtadv, add control over bgp updates
Add a test to control the json values of the incoming BGP update received by an unnumbered BGP. Signed-off-by: Philippe Guibert <[email protected]>
- Loading branch information
1 parent
aa43346
commit ca84c7e
Showing
3 changed files
with
109 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"vrfId": 0, | ||
"vrfName": "default", | ||
"routerId": "10.254.254.1", | ||
"defaultLocPrf": 100, | ||
"localAS": 101, | ||
"routes": { | ||
"10.254.254.2/32": [{ | ||
"valid": true, | ||
"bestpath": true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"external", | ||
"prefix":"10.254.254.2", | ||
"prefixLen":32, | ||
"network":"10.254.254.2/32", | ||
"metric":0, | ||
"weight":0, | ||
"path":"102", | ||
"origin":"incomplete", | ||
"nexthops":[{ | ||
"ip":"2001:db8:1::2", | ||
"hostname":"r2", | ||
"afi":"ipv6", | ||
"scope":"global" | ||
},{ | ||
"interface":"r1-eth0", | ||
"hostname":"r2", | ||
"afi":"ipv6", | ||
"scope":"link-local", | ||
"used":true | ||
}]}] | ||
}, | ||
"totalRoutes": 2, | ||
"totalPaths": 2 | ||
} |
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,35 @@ | ||
{ | ||
"vrfId": 0, | ||
"vrfName": "default", | ||
"routerId": "10.254.254.1", | ||
"defaultLocPrf": 100, | ||
"localAS": 101, | ||
"routes": { | ||
"2001:db8:1::/64": [{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"external", | ||
"prefix":"2001:db8:1::", | ||
"prefixLen":64, | ||
"network":"2001:db8:1::/64", | ||
"metric":0, | ||
"weight":0, | ||
"path":"102", | ||
"origin":"incomplete", | ||
"nexthops":[{ | ||
"ip":"2001:db8:1::2", | ||
"hostname":"r2", | ||
"afi":"ipv6", | ||
"scope":"global" | ||
},{ | ||
"interface":"r1-eth0", | ||
"hostname":"r2", | ||
"afi":"ipv6", | ||
"scope":"link-local", | ||
"used":true | ||
}]}] | ||
}, | ||
"totalRoutes": 1, | ||
"totalPaths": 1 | ||
} |
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