Skip to content

Commit

Permalink
Merge pull request FRRouting#15679 from cscarpitta/test-srv6-sid-manager
Browse files Browse the repository at this point in the history
tests: Add topotest to validate the sharing of an SRv6 locator among multiple protocols
  • Loading branch information
riw777 authored Sep 8, 2024
2 parents 7779937 + c7f4753 commit 80d3a2b
Show file tree
Hide file tree
Showing 67 changed files with 6,519 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/topotests/srv6_sid_manager/ce1/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce1
password zebra
!
log stdout notifications
log commands
log file bgpd.log
58 changes: 58 additions & 0 deletions tests/topotests/srv6_sid_manager/ce1/ipv6_rib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"::/0": [
{
"prefix": "::/0",
"protocol": "static",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 1,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 73,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"ip": "2001:1::1",
"afi": "ipv6",
"interfaceName": "eth-rt1",
"active": true,
"weight": 1
}
]
}
],
"2001:1::/64": [
{
"prefix": "2001:1::/64",
"protocol": "connected",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 0,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 8,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"directlyConnected": true,
"interfaceName": "eth-rt1",
"active": true
}
]
}
]
}
14 changes: 14 additions & 0 deletions tests/topotests/srv6_sid_manager/ce1/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
log file zebra.log
!
hostname ce1
!
interface eth-rt1
ipv6 address 2001:1::2/64
!
ip forwarding
ipv6 forwarding
!
ipv6 route ::/0 2001:1::1
!
line vty
!
8 changes: 8 additions & 0 deletions tests/topotests/srv6_sid_manager/ce2/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce2
password zebra
!
log stdout notifications
log commands
log file bgpd.log
58 changes: 58 additions & 0 deletions tests/topotests/srv6_sid_manager/ce2/ipv6_rib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"::/0": [
{
"prefix": "::/0",
"protocol": "static",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 1,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 73,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"ip": "2001:2::1",
"afi": "ipv6",
"interfaceName": "eth-rt6",
"active": true,
"weight": 1
}
]
}
],
"2001:2::/64": [
{
"prefix": "2001:2::/64",
"protocol": "connected",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 0,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 8,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"directlyConnected": true,
"interfaceName": "eth-rt6",
"active": true
}
]
}
]
}
14 changes: 14 additions & 0 deletions tests/topotests/srv6_sid_manager/ce2/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
log file zebra.log
!
hostname ce2
!
interface eth-rt6
ipv6 address 2001:2::2/64
!
ip forwarding
ipv6 forwarding
!
ipv6 route ::/0 2001:2::1
!
line vty
!
8 changes: 8 additions & 0 deletions tests/topotests/srv6_sid_manager/ce3/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce3
password zebra
!
log stdout notifications
log commands
log file bgpd.log
58 changes: 58 additions & 0 deletions tests/topotests/srv6_sid_manager/ce3/ipv6_rib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"::/0": [
{
"prefix": "::/0",
"protocol": "static",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 1,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 73,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"ip": "2001:3::1",
"afi": "ipv6",
"interfaceName": "eth-rt1",
"active": true,
"weight": 1
}
]
}
],
"2001:3::/64": [
{
"prefix": "2001:3::/64",
"protocol": "connected",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 0,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 8,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"directlyConnected": true,
"interfaceName": "eth-rt1",
"active": true
}
]
}
]
}
14 changes: 14 additions & 0 deletions tests/topotests/srv6_sid_manager/ce3/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
log file zebra.log
!
hostname ce3
!
interface eth-rt1
ipv6 address 2001:3::2/64
!
ip forwarding
ipv6 forwarding
!
ipv6 route ::/0 2001:3::1
!
line vty
!
8 changes: 8 additions & 0 deletions tests/topotests/srv6_sid_manager/ce4/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce4
password zebra
!
log stdout notifications
log commands
log file bgpd.log
58 changes: 58 additions & 0 deletions tests/topotests/srv6_sid_manager/ce4/ipv6_rib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"::/0": [
{
"prefix": "::/0",
"protocol": "static",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 1,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 73,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"ip": "2001:4::1",
"afi": "ipv6",
"interfaceName": "eth-rt6",
"active": true,
"weight": 1
}
]
}
],
"2001:4::/64": [
{
"prefix": "2001:4::/64",
"protocol": "connected",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 0,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 8,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"directlyConnected": true,
"interfaceName": "eth-rt6",
"active": true
}
]
}
]
}
14 changes: 14 additions & 0 deletions tests/topotests/srv6_sid_manager/ce4/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
log file zebra.log
!
hostname ce4
!
interface eth-rt6
ipv6 address 2001:4::2/64
!
ip forwarding
ipv6 forwarding
!
ipv6 route ::/0 2001:4::1
!
line vty
!
8 changes: 8 additions & 0 deletions tests/topotests/srv6_sid_manager/ce5/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce5
password zebra
!
log stdout notifications
log commands
log file bgpd.log
58 changes: 58 additions & 0 deletions tests/topotests/srv6_sid_manager/ce5/ipv6_rib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"::/0": [
{
"prefix": "::/0",
"protocol": "static",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 1,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 73,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"ip": "2001:5::1",
"afi": "ipv6",
"interfaceName": "eth-rt1",
"active": true,
"weight": 1
}
]
}
],
"2001:5::/64": [
{
"prefix": "2001:5::/64",
"protocol": "connected",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
"distance": 0,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
"internalFlags": 8,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
"directlyConnected": true,
"interfaceName": "eth-rt1",
"active": true
}
]
}
]
}
Loading

0 comments on commit 80d3a2b

Please sign in to comment.