Skip to content

Commit

Permalink
Merge pull request #17491 from pguibert6WIND/bgp_evpn_rt5_routemap
Browse files Browse the repository at this point in the history
Bgp evpn rt5 routemap
  • Loading branch information
ton31337 authored Nov 28, 2024
2 parents 9d118e3 + b8b7a61 commit 8c9cd28
Show file tree
Hide file tree
Showing 5 changed files with 652 additions and 66 deletions.
131 changes: 131 additions & 0 deletions tests/topotests/bgp_evpn_rt5/r1/bgp_l2vpn_evpn_routes.json
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 tests/topotests/bgp_evpn_rt5/r1/bgp_l2vpn_evpn_routes_all.json
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
}
Loading

0 comments on commit 8c9cd28

Please sign in to comment.