Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Add topotest to validate the sharing of an SRv6 locator among multiple protocols #15679

Merged
merged 81 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
220f7fd
tests: Add BGP configuration for ce1
cscarpitta Sep 6, 2024
f88c7a7
tests: Add zebra configuration for ce1
cscarpitta Sep 6, 2024
b812153
tests: Add json to verify ce1 rib
cscarpitta Sep 6, 2024
0c116a5
tests: Add BGP configuration for ce2
cscarpitta Sep 6, 2024
b8cc37e
tests: Add zebra configuration for ce2
cscarpitta Sep 6, 2024
eb6458c
tests: Add json to verify ce2 rib
cscarpitta Sep 6, 2024
7a907a9
tests: Add BGP configuration for ce3
cscarpitta Sep 6, 2024
9275d84
tests: Add zebra configuration for ce3
cscarpitta Sep 6, 2024
948c3a3
tests: Add json to verify ce3 rib
cscarpitta Sep 6, 2024
b3dc1d4
tests: Add BGP configuration for ce4
cscarpitta Sep 6, 2024
95ef795
tests: Add zebra configuration for ce4
cscarpitta Sep 6, 2024
153e5df
tests: Add json to verify ce4 rib
cscarpitta Sep 6, 2024
fe0074c
tests: Add BGP configuration for ce5
cscarpitta Sep 6, 2024
f4231f3
tests: Add zebra configuration for ce5
cscarpitta Sep 6, 2024
afbcc80
tests: Add json to verify ce5 rib
cscarpitta Sep 6, 2024
8d171d4
tests: Add BGP configuration for ce6
cscarpitta Sep 6, 2024
2b62990
tests: Add zebra configuration for ce6
cscarpitta Sep 6, 2024
4de8063
tests: Add json to verify ce6 rib
cscarpitta Sep 6, 2024
e82f79f
tests: Add sharp configuration for dst
cscarpitta Sep 6, 2024
613fd9a
tests: Add zebra configuration for dst
cscarpitta Sep 6, 2024
dc1b3c4
tests: Add BGP configuration for rt1
cscarpitta Sep 6, 2024
e61f48b
tests: Add ISIS configuration for rt1
cscarpitta Sep 6, 2024
d305ff4
tests: Add sharp configuration for rt1
cscarpitta Sep 6, 2024
89b3886
tests: Add zebra configuration for rt1
cscarpitta Sep 6, 2024
cb968ad
tests: Add json to verify rt1 vrf10 rib
cscarpitta Sep 6, 2024
020fe7d
tests: Add json to verify rt1 vrf20 rib
cscarpitta Sep 6, 2024
740c073
tests: Add json to verify rt1 vpn rib
cscarpitta Sep 6, 2024
b8d40ea
tests: Add json to verify rt1 ip routes
cscarpitta Sep 6, 2024
af0499e
tests: Add json to verify rt1 ipv6 routes
cscarpitta Sep 6, 2024
5351018
tests: Add json to verify rt1 SRv6 locators
cscarpitta Sep 6, 2024
cc909c7
tests: Add json to verify rt1 ISIS adj
cscarpitta Sep 6, 2024
56a6958
tests: Add ISIS configuration for rt2
cscarpitta Sep 6, 2024
a88d234
tests: Add zebra configuration for rt2
cscarpitta Sep 6, 2024
06ca995
tests: Add json to verify rt2 ip routes
cscarpitta Sep 6, 2024
1e546db
tests: Add json to verify rt2 ipv6 routes
cscarpitta Sep 6, 2024
6c93cd4
tests: Add json to verify rt2 SRv6 locators
cscarpitta Sep 6, 2024
5b12e45
tests: Add json to verify rt2 ISIS adj
cscarpitta Sep 6, 2024
1862b8d
tests: Add ISIS configuration for rt3
cscarpitta Sep 6, 2024
493b504
tests: Add zebra configuration for rt3
cscarpitta Sep 6, 2024
51b5dce
tests: Add json to verify rt3 ip routes
cscarpitta Sep 6, 2024
58866a7
tests: Add json to verify rt3 ipv6 routes
cscarpitta Sep 6, 2024
d23fca8
tests: Add json to verify rt3 SRv6 locators
cscarpitta Sep 6, 2024
25f0af0
tests: Add json to verify rt3 ISIS adj
cscarpitta Sep 6, 2024
e2141d0
tests: Add ISIS configuration for rt4
cscarpitta Sep 6, 2024
f443c48
tests: Add zebra configuration for rt4
cscarpitta Sep 6, 2024
fa3d419
tests: Add json to verify rt4 ip routes
cscarpitta Sep 6, 2024
a7eb091
tests: Add json to verify rt4 ipv6 routes
cscarpitta Sep 6, 2024
d13777e
tests: Add json to verify rt4 SRv6 locators
cscarpitta Sep 6, 2024
a056dfd
tests: Add json to verify rt4 ISIS adj
cscarpitta Sep 6, 2024
42feb8d
tests: Add ISIS configuration for rt5
cscarpitta Sep 6, 2024
f5d8c37
tests: Add zebra configuration for rt5
cscarpitta Sep 6, 2024
7b156dd
tests: Add json to verify rt5 ip routes
cscarpitta Sep 6, 2024
1e885f0
tests: Add json to verify rt5 ipv6 routes
cscarpitta Sep 6, 2024
0eb7062
tests: Add json to verify rt5 SRv6 locators
cscarpitta Sep 6, 2024
4e126ab
tests: Add json to verify rt5 ISIS adj
cscarpitta Sep 6, 2024
27d1fa8
tests: Add BGP configuration for rt6
cscarpitta Sep 6, 2024
70e38f7
tests: Add ISIS configuration for rt6
cscarpitta Sep 6, 2024
e0e1dd8
tests: Add sharp configuration for rt6
cscarpitta Sep 6, 2024
0b08195
tests: Add zebra configuration for rt6
cscarpitta Sep 6, 2024
459b974
tests: Add json to verify rt6 ip routes
cscarpitta Sep 6, 2024
639e0c9
tests: Add json to verify rt6 ipv6 routes
cscarpitta Sep 6, 2024
c9e4280
tests: Add json to verify rt6 SRv6 locators
cscarpitta Sep 6, 2024
379dacd
tests: Add json to verify rt6 ISIS adj
cscarpitta Sep 6, 2024
ac89710
tests: Add json to verify rt6 vrf10 rib
cscarpitta Sep 6, 2024
39acb03
tests: Add json to verify rt6 vrf20 rib
cscarpitta Sep 6, 2024
7b4de98
tests: Add json to verify rt6 vpn rib
cscarpitta Sep 6, 2024
9edf600
tests: Add SRv6 SID Manager topotest
cscarpitta Sep 6, 2024
eea0da4
tests: SRv6 SID Manager build topology
cscarpitta Sep 6, 2024
7d7678d
tests: SRv6 SID Manager setup module
cscarpitta Sep 6, 2024
fccfda2
tests: SRv6 SID Manager teardown module
cscarpitta Sep 6, 2024
d157212
tests: SRv6 SID Manager json cmp
cscarpitta Sep 6, 2024
1168c5a
tests: SRv6 SID Manager check ping
cscarpitta Sep 6, 2024
d6d8005
tests: SRv6 SID Manager open json
cscarpitta Sep 6, 2024
55c9b65
tests: SRv6 SID Manager check rib
cscarpitta Sep 6, 2024
bbd59ed
tests: Add SRv6 SID Manager ISIS adj testcase
cscarpitta Sep 6, 2024
583c34c
tests: Add SRv6 SID Manager RIB IPv4 testcase
cscarpitta Sep 6, 2024
0a3be6a
tests: Add SRv6 SID Manager RIB IPv6 testcase
cscarpitta Sep 6, 2024
d00be6a
tests: Add SRv6 SID Manager SRv6 loc testcase
cscarpitta Sep 6, 2024
f1a63df
tests: Add SRv6 SID Manager VPN RIB testcase
cscarpitta Sep 6, 2024
c6c8efb
tests: Add SRv6 SID Manager ping testcase
cscarpitta Sep 6, 2024
c7f4753
tests: Add SRv6 SID Manager mem leak testcase
cscarpitta Sep 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading