-
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.
bgp_evpn_rt5: add test for advertise route-map service
Use the advertise route-map command, and check that it filters out correctly the undesirable prefixes. Reversely, check that undoing that route-map recovers all prefixes. Signed-off-by: Philippe Guibert <[email protected]>
- Loading branch information
1 parent
199d795
commit 7e88c4b
Showing
3 changed files
with
246 additions
and
2 deletions.
There are no files selected for viewing
191 changes: 191 additions & 0 deletions
191
tests/topotests/bgp_evpn_rt5/r1/bgp_l2vpn_evpn_routes_all.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,191 @@ | ||
{ | ||
"bgpLocalRouterId":"192.168.100.21", | ||
"defaultLocPrf":100, | ||
"localAS":65000, | ||
"192.168.101.41:2":{ | ||
"rd":"192.168.101.41:2", | ||
"[5]:[0]:[32]:[192.168.101.41]":{ | ||
"prefix":"[5]:[0]:[32]:[192.168.101.41]", | ||
"prefixLen":352, | ||
"paths":[ | ||
{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"internal", | ||
"routeType":5, | ||
"ethTag":0, | ||
"ipLen":32, | ||
"ip":"192.168.101.41", | ||
"metric":0, | ||
"locPrf":100, | ||
"weight":0, | ||
"peerId":"192.168.100.41", | ||
"path":"", | ||
"origin":"IGP", | ||
"nexthops":[ | ||
{ | ||
"ip":"192.168.100.41", | ||
"hostname":"r2", | ||
"afi":"ipv4", | ||
"used":true | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"[5]:[0]:[32]:[192.168.102.41]":{ | ||
"prefix":"[5]:[0]:[32]:[192.168.102.41]", | ||
"prefixLen":352, | ||
"paths":[ | ||
{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"internal", | ||
"routeType":5, | ||
"ethTag":0, | ||
"ipLen":32, | ||
"ip":"192.168.102.41", | ||
"metric":0, | ||
"locPrf":100, | ||
"weight":0, | ||
"peerId":"192.168.100.41", | ||
"path":"", | ||
"origin":"IGP", | ||
"nexthops":[ | ||
{ | ||
"ip":"192.168.100.41", | ||
"hostname":"r2", | ||
"afi":"ipv4", | ||
"used":true | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"[5]:[0]:[128]:[fd00::2]":{ | ||
"prefix":"[5]:[0]:[128]:[fd00::2]", | ||
"prefixLen":352, | ||
"paths":[ | ||
{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"internal", | ||
"routeType":5, | ||
"ethTag":0, | ||
"ipLen":128, | ||
"ip":"fd00::2", | ||
"metric":0, | ||
"locPrf":100, | ||
"weight":0, | ||
"peerId":"192.168.100.41", | ||
"path":"", | ||
"origin":"IGP", | ||
"nexthops":[ | ||
{ | ||
"ip":"192.168.100.41", | ||
"hostname":"r2", | ||
"afi":"ipv4", | ||
"used":true | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"[5]:[0]:[128]:[fd00::3]":{ | ||
"prefix":"[5]:[0]:[128]:[fd00::3]", | ||
"prefixLen":352, | ||
"paths":[ | ||
{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"internal", | ||
"routeType":5, | ||
"ethTag":0, | ||
"ipLen":128, | ||
"ip":"fd00::3", | ||
"metric":0, | ||
"locPrf":100, | ||
"weight":0, | ||
"peerId":"192.168.100.41", | ||
"path":"", | ||
"origin":"IGP", | ||
"nexthops":[ | ||
{ | ||
"ip":"192.168.100.41", | ||
"hostname":"r2", | ||
"afi":"ipv4", | ||
"used":true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"192.168.102.21:2":{ | ||
"rd":"192.168.102.21:2", | ||
"[5]:[0]:[32]:[192.168.102.21]":{ | ||
"prefix":"[5]:[0]:[32]:[192.168.102.21]", | ||
"prefixLen":352, | ||
"paths":[ | ||
{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"external", | ||
"routeType":5, | ||
"ethTag":0, | ||
"ipLen":32, | ||
"ip":"192.168.102.21", | ||
"metric":0, | ||
"weight":32768, | ||
"peerId":"(unspec)", | ||
"path":"", | ||
"origin":"IGP", | ||
"nexthops":[ | ||
{ | ||
"ip":"192.168.100.21", | ||
"hostname":"r1", | ||
"afi":"ipv4", | ||
"used":true | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"[5]:[0]:[128]:[fd00::1]":{ | ||
"prefix":"[5]:[0]:[128]:[fd00::1]", | ||
"prefixLen":352, | ||
"paths":[ | ||
{ | ||
"valid":true, | ||
"bestpath":true, | ||
"selectionReason":"First path received", | ||
"pathFrom":"external", | ||
"routeType":5, | ||
"ethTag":0, | ||
"ipLen":128, | ||
"ip":"fd00::1", | ||
"metric":0, | ||
"weight":32768, | ||
"peerId":"(unspec)", | ||
"path":"", | ||
"origin":"IGP", | ||
"nexthops":[ | ||
{ | ||
"ip":"192.168.100.21", | ||
"hostname":"r1", | ||
"afi":"ipv4", | ||
"used":true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"numPrefix":6, | ||
"totalPrefix":6 | ||
} |
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