Skip to content

Commit

Permalink
topotest: isis_srv6_te_topo1
Browse files Browse the repository at this point in the history
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
dmytroshytyi-6WIND committed Aug 20, 2024
1 parent d27d862 commit b0fa3ff
Show file tree
Hide file tree
Showing 27 changed files with 1,478 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/topotests/isis_srv6_te_topo1/dst/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
log file zebra.log
!
hostname dst
!
! debug zebra kernel
! debug zebra packet
! debug zebra mpls
!
interface lo
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
!
45 changes: 45 additions & 0 deletions tests/topotests/isis_srv6_te_topo1/rt1/bgpd.conf
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 auto
rd vpn export 65001:10
rt vpn both 0:10
import vpn
export vpn
exit-address-family
!
!
!
34 changes: 34 additions & 0 deletions tests/topotests/isis_srv6_te_topo1/rt1/isisd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
!
Empty file.
Empty file.
Empty file.
246 changes: 246 additions & 0 deletions tests/topotests/isis_srv6_te_topo1/rt1/step1/show_ipv6_route.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
{
"fc00:0:1::/128": [
{
"prefix": "fc00:0:1::/128",
"prefixLen": 128,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"directlyConnected": true,
"active": true,
"weight": 1,
"seg6local": {
"action": "End"
}
}
]
}
],
"fc00:0:1:1::/128": [
{
"prefix": "fc00:0:1:1::/128",
"prefixLen": 128,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"directlyConnected": true,
"active": true,
"weight": 1,
"seg6local": {
"action": "End.X"
}
}
]
}
],
"fc00:0:1:2::/128": [
{
"prefix": "fc00:0:1:2::/128",
"prefixLen": 128,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"directlyConnected": true,
"active": true,
"weight": 1,
"seg6local": {
"action": "End.X"
}
}
]
}
],
"fc00:0:2::/48": [
{
"prefix": "fc00:0:2::/48",
"prefixLen": 48,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
],
"fc00:0:2::1/128": [
{
"prefix": "fc00:0:2::1/128",
"prefixLen": 128,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
],
"fc00:0:3::/48": [
{
"prefix": "fc00:0:3::/48",
"prefixLen": 48,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
],
"fc00:0:3::1/128": [
{
"prefix": "fc00:0:3::1/128",
"prefixLen": 128,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
],
"fc00:0:4::/48": [
{
"prefix": "fc00:0:4::/48",
"prefixLen": 48,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
],
"fc00:0:4::1/128": [
{
"prefix": "fc00:0:4::1/128",
"prefixLen": 128,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
],
"fc00:0:5::/48": [
{
"prefix": "fc00:0:5::/48",
"prefixLen": 48,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
],
"fc00:0:5::1/128": [
{
"prefix": "fc00:0:5::1/128",
"prefixLen": 128,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
],
"fc00:0:6::/48": [
{
"prefix": "fc00:0:6::/48",
"prefixLen": 48,
"protocol": "isis",
"selected": true,
"distance": 115,
"installed": true,
"nexthops": [
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
},
{
"flags": 3,
"fib": true,
"afi": "ipv6",
"active": true,
"weight": 1
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"locators":[
{
"name":"loc1",
"prefix":"fc00:0:1::/48",
"blockBitsLength":32,
"nodeBitsLength":16,
"functionBitsLength":16,
"argumentBitsLength":0,
"statusUp":true,
"chunks":[
{
"prefix":"fc00:0:1::/48"
}
]
}
]
}
Loading

0 comments on commit b0fa3ff

Please sign in to comment.