-
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.
tests: check bgp vpn table in bgp_vpnv4_route_leak_basic
Check bgp vpn table in bgp_vpnv4_route_leak_basic Signed-off-by: Louis Scalbert <[email protected]>
- Loading branch information
1 parent
9623e0f
commit 55b36f1
Showing
6 changed files
with
522 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
137 changes: 137 additions & 0 deletions
137
tests/topotests/bgp_vpnv4_route_leak_basic/r1/show_bgp_ipv4_vpn_add_zita.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,137 @@ | ||
{ | ||
"routerId": "10.0.4.1", | ||
"localAS": 99, | ||
"routes": { | ||
"routeDistinguishers": { | ||
"10.0.4.1:1": { | ||
"10.0.0.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "DONNA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.1.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "EVA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.2.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "DONNA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.3.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "EVA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.4.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "default", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"172.16.3.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "IGP", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "DONNA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"172.16.101.0/24": [ | ||
{ | ||
"valid": null, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "IGP", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "ZITA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
|
102 changes: 102 additions & 0 deletions
102
tests/topotests/bgp_vpnv4_route_leak_basic/r1/show_bgp_ipv4_vpn_eva_down.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,102 @@ | ||
{ | ||
"routerId": "10.0.4.1", | ||
"localAS": 99, | ||
"routes": { | ||
"routeDistinguishers": { | ||
"10.0.4.1:1": { | ||
"10.0.0.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "DONNA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.1.0/24": [ | ||
{ | ||
"valid": null, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "EVA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.2.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "DONNA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.3.0/24": [ | ||
{ | ||
"valid": null, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "EVA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.4.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "default", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"172.16.101.0/24": null | ||
} | ||
} | ||
} | ||
} | ||
|
102 changes: 102 additions & 0 deletions
102
tests/topotests/bgp_vpnv4_route_leak_basic/r1/show_bgp_ipv4_vpn_init.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,102 @@ | ||
{ | ||
"routerId": "10.0.4.1", | ||
"localAS": 99, | ||
"routes": { | ||
"routeDistinguishers": { | ||
"10.0.4.1:1": { | ||
"10.0.0.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "DONNA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.1.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "EVA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.2.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "DONNA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.3.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "EVA", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.4.0/24": [ | ||
{ | ||
"valid": true, | ||
"pathFrom": "external", | ||
"path": "", | ||
"origin": "incomplete", | ||
"announceNexthopSelf": true, | ||
"nhVrfName": "default", | ||
"nexthops": [ | ||
{ | ||
"ip": "0.0.0.0", | ||
"hostname": "r1", | ||
"afi": "ipv4", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"172.16.101.0/24": null | ||
} | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.