Skip to content

Commit

Permalink
tests: Add test srv6_sid_manager
Browse files Browse the repository at this point in the history
Add a new topotest to validate the SRv6 SID Manager implementation.

Sets up a mixed BGP and IS-IS topology and verifies that the locator can be
shared by BGP and IS-IS, and that both daemons are able to request and obtain
SIDs from the same locator.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
  • Loading branch information
cscarpitta committed May 3, 2024
1 parent 75131b4 commit faa5c70
Show file tree
Hide file tree
Showing 70 changed files with 6,526 additions and 5 deletions.
Binary file added tests/topotests/.DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/r1/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ log stdout notifications
log commands
!
!debug bgp neighbor-events
!debug bgp zebra
debug bgp zebra
!debug bgp vnc verbose
!debug bgp update-groups
!debug bgp updates in
!debug bgp updates out
!debug bgp vpn label
!debug bgp vpn leak-from-vrf
!debug bgp vpn leak-to-vrf
debug bgp vpn label
debug bgp vpn leak-from-vrf
debug bgp vpn leak-to-vrf
!debug bgp vpn rmap-event
!
router bgp 1
Expand Down
2 changes: 1 addition & 1 deletion tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/r1/zebra.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ password zebra
log stdout notifications
log commands
!
! debug zebra packet
debug zebra packet
! debug zebra dplane
! debug zebra kernel
!
Expand Down
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
Loading

0 comments on commit faa5c70

Please sign in to comment.