-
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.
Merge pull request #17491 from pguibert6WIND/bgp_evpn_rt5_routemap
Bgp evpn rt5 routemap
- Loading branch information
Showing
5 changed files
with
652 additions
and
66 deletions.
There are no files selected for viewing
131 changes: 131 additions & 0 deletions
131
tests/topotests/bgp_evpn_rt5/r1/bgp_l2vpn_evpn_routes.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,131 @@ | ||
{ | ||
"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]:[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 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"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":4, | ||
"totalPrefix":4 | ||
} |
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 | ||
} |
Oops, something went wrong.