-
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: bmp, test syncro for pre/post-policy of imported bgps
Add a test that controls that the configuration of an imported BGP instance triggers a re-syncronisation. Ensure that changing an attribute like route distinguisher triggers also a re-syncronisation. Signed-off-by: Philippe Guibert <[email protected]>
- Loading branch information
1 parent
ffdb4cd
commit 51cedaa
Showing
5 changed files
with
199 additions
and
39 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
tests/topotests/bgp_bmp/bmp1import/bmp-update-loc-rib-step2.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,34 @@ | ||
{ | ||
"loc-rib": { | ||
"update": { | ||
"172.31.0.77/32": { | ||
"as_path": "", | ||
"bgp_nexthop": "192.168.1.3", | ||
"bmp_log_type": "update", | ||
"ip_prefix": "172.31.0.77/32", | ||
"is_filtered": false, | ||
"origin": "IGP", | ||
"peer_asn": 65501, | ||
"peer_bgp_id": "192.168.0.1", | ||
"peer_distinguisher": "666:22", | ||
"peer_type": "loc-rib instance", | ||
"policy": "loc-rib" | ||
}, | ||
"2001::1125/128": { | ||
"afi": 2, | ||
"as_path": "", | ||
"bmp_log_type": "update", | ||
"ip_prefix": "2001::1125/128", | ||
"is_filtered": false, | ||
"nxhp_ip": "192:167::3", | ||
"origin": "IGP", | ||
"peer_asn": 65501, | ||
"peer_bgp_id": "192.168.0.1", | ||
"peer_distinguisher": "666:22", | ||
"peer_type": "loc-rib instance", | ||
"policy": "loc-rib", | ||
"safi": 1 | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
tests/topotests/bgp_bmp/bmp1import/bmp-update-post-policy-step2.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,36 @@ | ||
{ | ||
"post-policy": { | ||
"update": { | ||
"172.31.0.77/32": { | ||
"as_path": "", | ||
"bgp_nexthop": "192.168.1.3", | ||
"bmp_log_type": "update", | ||
"ip_prefix": "172.31.0.77/32", | ||
"ipv6": false, | ||
"origin": "IGP", | ||
"peer_asn": 65501, | ||
"peer_bgp_id": "192.168.1.3", | ||
"peer_distinguisher": "666:22", | ||
"peer_ip": "192.168.1.3", | ||
"peer_type": "route distinguisher instance", | ||
"policy": "post-policy" | ||
}, | ||
"2001::1125/128": { | ||
"afi": 2, | ||
"as_path": "", | ||
"bmp_log_type": "update", | ||
"ip_prefix": "2001::1125/128", | ||
"ipv6": true, | ||
"nxhp_ip": "192:167::3", | ||
"origin": "IGP", | ||
"peer_asn": 65501, | ||
"peer_bgp_id": "192.168.1.3", | ||
"peer_distinguisher": "666:22", | ||
"peer_ip": "192:167::3", | ||
"peer_type": "route distinguisher instance", | ||
"policy": "post-policy", | ||
"safi": 1 | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
tests/topotests/bgp_bmp/bmp1import/bmp-update-pre-policy-step2.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,36 @@ | ||
{ | ||
"pre-policy": { | ||
"update": { | ||
"172.31.0.77/32": { | ||
"as_path": "", | ||
"bgp_nexthop": "192.168.1.3", | ||
"bmp_log_type": "update", | ||
"ip_prefix": "172.31.0.77/32", | ||
"ipv6": false, | ||
"origin": "IGP", | ||
"peer_asn": 65501, | ||
"peer_bgp_id": "192.168.1.3", | ||
"peer_distinguisher": "666:22", | ||
"peer_ip": "192.168.1.3", | ||
"peer_type": "route distinguisher instance", | ||
"policy": "pre-policy" | ||
}, | ||
"2001::1125/128": { | ||
"afi": 2, | ||
"as_path": "", | ||
"bmp_log_type": "update", | ||
"ip_prefix": "2001::1125/128", | ||
"ipv6": true, | ||
"nxhp_ip": "192:167::3", | ||
"origin": "IGP", | ||
"peer_asn": 65501, | ||
"peer_bgp_id": "192.168.1.3", | ||
"peer_distinguisher": "666:22", | ||
"peer_ip": "192:167::3", | ||
"peer_type": "route distinguisher instance", | ||
"policy": "pre-policy", | ||
"safi": 1 | ||
} | ||
} | ||
} | ||
} |
36 changes: 0 additions & 36 deletions
36
tests/topotests/bgp_bmp/bmp1import/bmp-withdraw-post-policy-step2.json
This file was deleted.
Oops, something went wrong.
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