-
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.
SRv6 Policy is an ordered list of segments that represent a source-routed policy. Packet flows are steered into an SRv6 Policy. Signed-off-by: Dmytro Shytyi <dmytro@[email protected]> Signed-off-by: Philippe Guibert <[email protected]>
- Loading branch information
1 parent
22c4e2d
commit 331f8d4
Showing
28 changed files
with
1,794 additions
and
0 deletions.
There are no files selected for viewing
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,23 @@ | ||
log file zebra.log | ||
! | ||
hostname dst | ||
! | ||
! debug zebra kernel | ||
! debug zebra packet | ||
! debug zebra mpls | ||
! | ||
interface lo | ||
ip address 9.9.9.2/32 | ||
ipv6 address fc00:0:9::1/128 | ||
! | ||
interface eth-rt6 | ||
ip address 10.0.10.2/24 | ||
ipv6 address 2001:db8:10::2/64 | ||
! | ||
ip forwarding | ||
! | ||
ip route 10.8.0.2/24 10.0.10.1 | ||
ipv6 route 2001:db8:1::/64 2001:db8:10::1 | ||
! | ||
line vty | ||
! |
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,45 @@ | ||
frr defaults traditional | ||
! | ||
hostname r1 | ||
password zebra | ||
! | ||
log stdout notifications | ||
log commands | ||
! | ||
router bgp 65001 | ||
bgp router-id 192.0.2.1 | ||
no bgp ebgp-requires-policy | ||
no bgp default ipv4-unicast | ||
neighbor fc00:0:6b::1 remote-as 65002 | ||
neighbor fc00:0:6b::1 ebgp-multihop | ||
neighbor fc00:0:6b::1 update-source fc00:0:1b::1 | ||
neighbor fc00:0:6b::1 timers 3 10 | ||
neighbor fc00:0:6b::1 timers connect 1 | ||
neighbor fc00:0:6b::1 capability extended-nexthop | ||
! | ||
segment-routing srv6 | ||
locator loc2 | ||
! | ||
address-family ipv6 | ||
neighbor fc00:0:6b::1 activate | ||
exit-address-family | ||
! | ||
address-family ipv4 vpn | ||
neighbor fc00:0:6b::1 activate | ||
exit-address-family | ||
! | ||
! | ||
router bgp 65001 vrf vrf10 | ||
bgp router-id 192.0.2.1 | ||
! | ||
address-family ipv4 unicast | ||
redistribute connected | ||
sid vpn export 1 | ||
rd vpn export 65001:10 | ||
rt vpn both 0:10 | ||
import vpn | ||
export vpn | ||
exit-address-family | ||
! | ||
! | ||
! |
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,35 @@ | ||
password 1 | ||
hostname rt1 | ||
log file isisd.log | ||
! | ||
! debug isis events | ||
! debug isis route-events | ||
! debug isis spf-events | ||
! debug isis sr-events | ||
! debug isis lsp-gen | ||
! | ||
interface lo | ||
ip router isis 1 | ||
ipv6 router isis 1 | ||
isis passive | ||
! | ||
interface eth-sw1 | ||
ip router isis 1 | ||
ipv6 router isis 1 | ||
isis hello-interval 1 | ||
isis hello-multiplier 10 | ||
! | ||
router isis 1 | ||
lsp-gen-interval 2 | ||
net 49.0000.0000.0000.0001.00 | ||
is-type level-1 | ||
topology ipv6-unicast | ||
segment-routing srv6 | ||
locator loc1 | ||
node-msd | ||
max-segs-left 3 | ||
max-end-pop 3 | ||
max-h-encaps 2 | ||
max-end-d 5 | ||
interface sr0 | ||
! |
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,10 @@ | ||
segment-routing | ||
traffic-eng | ||
segment-list srv6-header | ||
index 1 ipv6-address fc00:0:3:: | ||
index 2 ipv6-address fc00:0:5:: | ||
index 3 ipv6-address fc00:0:6:: | ||
exit | ||
exit | ||
exit | ||
! |
Empty file.
Empty file.
276 changes: 276 additions & 0 deletions
276
tests/topotests/isis_srv6_te_topo1/rt1/step1/show_ip_route.ref
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,276 @@ | ||
{ | ||
"2.2.2.2\/32":[ | ||
{ | ||
"prefix":"2.2.2.2\/32", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":20, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.2", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"3.3.3.3\/32":[ | ||
{ | ||
"prefix":"3.3.3.3\/32", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":20, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.3", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"4.4.4.4\/32":[ | ||
{ | ||
"prefix":"4.4.4.4\/32", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":30, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.2", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"5.5.5.5\/32":[ | ||
{ | ||
"prefix":"5.5.5.5\/32", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":30, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.3", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"6.6.6.6\/32":[ | ||
{ | ||
"prefix":"6.6.6.6\/32", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":40, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.2", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
}, | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.3", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.1.0\/24":[ | ||
{ | ||
"prefix":"10.0.1.0\/24", | ||
"protocol":"isis", | ||
"distance":115, | ||
"metric":20, | ||
"nexthops":[ | ||
{ | ||
"ip":"10.0.1.2", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1" | ||
}, | ||
{ | ||
"ip":"10.0.1.3", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1" | ||
} | ||
] | ||
} | ||
], | ||
"10.0.2.0\/24":[ | ||
{ | ||
"prefix":"10.0.2.0\/24", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":20, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.2", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.3.0\/24":[ | ||
{ | ||
"prefix":"10.0.3.0\/24", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":20, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.2", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.4.0\/24":[ | ||
{ | ||
"prefix":"10.0.4.0\/24", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":20, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.3", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.5.0\/24":[ | ||
{ | ||
"prefix":"10.0.5.0\/24", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":20, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.3", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.6.0\/24":[ | ||
{ | ||
"prefix":"10.0.6.0\/24", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":30, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.2", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
}, | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.3", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.7.0\/24":[ | ||
{ | ||
"prefix":"10.0.7.0\/24", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":30, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.2", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
], | ||
"10.0.8.0\/24":[ | ||
{ | ||
"prefix":"10.0.8.0\/24", | ||
"protocol":"isis", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":115, | ||
"metric":30, | ||
"installed":true, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"ip":"10.0.1.3", | ||
"afi":"ipv4", | ||
"interfaceName":"eth-sw1", | ||
"active":true | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.