forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topotest:add topotest for srv6 te policy
Signed-off-by: guozhongfeng.gzf <[email protected]>
- Loading branch information
1 parent
5195792
commit 1bfeed7
Showing
29 changed files
with
562 additions
and
372 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
log file pathd.log | ||
! | ||
hostname pe1 | ||
! |
File renamed without changes.
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
63 changes: 63 additions & 0 deletions
63
tests/topotests/bgp_srv6l3vpn__te_policy/pe2/vpnv4_rib_route.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,63 @@ | ||
{ | ||
"vrfId": 0, | ||
"vrfName": "default", | ||
"routerId": "1.1.1.1", | ||
"defaultLocPrf": 100, | ||
"localAS": 2, | ||
"routes": { | ||
"routeDistinguishers": { | ||
"1:10": { | ||
"192.168.1.0/24": [ | ||
{ | ||
"valid": true, | ||
"bestpath": true, | ||
"selectionReason": "First path received", | ||
"pathFrom": "external", | ||
"prefix": "192.168.1.0", | ||
"prefixLen": 24, | ||
"network": "192.168.1.0/24", | ||
"metric": 0, | ||
"weight": 0, | ||
"peerId": "1000::1", | ||
"path": "1", | ||
"origin": "incomplete", | ||
"nexthops": [ | ||
{ | ||
"ip": "1000::1", | ||
"hostname": "pe1", | ||
"afi": "ipv6", | ||
"used": true | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"1:20": { | ||
"192.168.2.0/24": [ | ||
{ | ||
"valid": true, | ||
"bestpath": true, | ||
"selectionReason": "First path received", | ||
"pathFrom": "external", | ||
"prefix": "192.168.2.0", | ||
"prefixLen": 24, | ||
"network": "192.168.2.0/24", | ||
"metric": 0, | ||
"weight": 0, | ||
"peerId": "1000::1", | ||
"path": "1", | ||
"origin": "incomplete", | ||
"nexthops": [ | ||
{ | ||
"ip": "1000::1", | ||
"hostname": "pe1", | ||
"afi": "ipv6", | ||
"used": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
tests/topotests/bgp_srv6l3vpn__te_policy/pe2/vpnv6_rib_route.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,63 @@ | ||
{ | ||
"vrfId": 0, | ||
"vrfName": "default", | ||
"routerId": "1.1.1.1", | ||
"defaultLocPrf": 100, | ||
"localAS": 2, | ||
"routes": { | ||
"routeDistinguishers": { | ||
"1:10": { | ||
"1001:1::/64": [ | ||
{ | ||
"valid": true, | ||
"bestpath": true, | ||
"selectionReason": "First path received", | ||
"pathFrom": "external", | ||
"prefix": "1001:1::", | ||
"prefixLen": 64, | ||
"network": "1001:1::/64", | ||
"metric": 0, | ||
"weight": 0, | ||
"peerId": "1000::1", | ||
"path": "1", | ||
"origin": "incomplete", | ||
"nexthops": [ | ||
{ | ||
"ip": "1000::1", | ||
"hostname": "pe1", | ||
"afi": "ipv6", | ||
"used": true | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"1:20": { | ||
"1001:2::/64": [ | ||
{ | ||
"valid": true, | ||
"bestpath": true, | ||
"selectionReason": "First path received", | ||
"pathFrom": "external", | ||
"prefix": "1001:2::", | ||
"prefixLen": 64, | ||
"network": "1001:2::/64", | ||
"metric": 0, | ||
"weight": 0, | ||
"peerId": "1000::1", | ||
"path": "1", | ||
"origin": "incomplete", | ||
"nexthops": [ | ||
{ | ||
"ip": "1000::1", | ||
"hostname": "pe1", | ||
"afi": "ipv6", | ||
"used": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
96 changes: 96 additions & 0 deletions
96
tests/topotests/bgp_srv6l3vpn__te_policy/pe2/vrf1_ipv4_route_te_policy.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,96 @@ | ||
{ | ||
"192.168.11.0/24":[ | ||
{ | ||
"prefix":"192.168.11.0/24", | ||
"prefixLen":24, | ||
"protocol":"bgp", | ||
"vrfId":5, | ||
"vrfName":"Vrf1", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":20, | ||
"metric":0, | ||
"installed":true, | ||
"table":1, | ||
"internalStatus":16, | ||
"internalFlags":9, | ||
"internalNextHopNum":3, | ||
"internalNextHopActiveNum":3, | ||
"nexthopGroupId":81, | ||
"installedNexthopGroupId":82, | ||
"uptime":"00:00:27", | ||
"nexthops":[ | ||
{ | ||
"flags":3205, | ||
"ip":"1::1", | ||
"afi":"ipv6", | ||
"vrf":"default", | ||
"active":true, | ||
"recursive":true, | ||
"labels":[ | ||
16 | ||
], | ||
"weight":1, | ||
"srteColor":100, | ||
"seg6local":{ | ||
"action":"unspec" | ||
}, | ||
"seg6localContext":{ | ||
"unknown":true | ||
}, | ||
"seg6":{ | ||
"segs":"100:1::100" | ||
} | ||
}, | ||
{ | ||
"flags":2051, | ||
"fib":true, | ||
"ip":"fe80::a8c1:abff:fe3b:8afa", | ||
"afi":"ipv6", | ||
"interfaceIndex":1377, | ||
"interfaceName":"eth4", | ||
"resolver":true, | ||
"vrf":"default", | ||
"active":true, | ||
"labels":[ | ||
16 | ||
], | ||
"weight":1, | ||
"seg6local":{ | ||
"action":"unspec" | ||
}, | ||
"seg6localContext":{ | ||
"unknown":true | ||
}, | ||
"seg6":{ | ||
"segs":"100:1::100" | ||
} | ||
}, | ||
{ | ||
"flags":2051, | ||
"fib":true, | ||
"ip":"fe80::a8c1:abff:fe4c:b77e", | ||
"afi":"ipv6", | ||
"interfaceIndex":1369, | ||
"interfaceName":"eth3", | ||
"resolver":true, | ||
"vrf":"default", | ||
"active":true, | ||
"labels":[ | ||
16 | ||
], | ||
"weight":1, | ||
"seg6local":{ | ||
"action":"unspec" | ||
}, | ||
"seg6localContext":{ | ||
"unknown":true | ||
}, | ||
"seg6":{ | ||
"segs":"100:1::100" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.