integration: remove --accept-routes from via steering routers

Subnet routers that advertise routes must not accept peer routes.
With co-router visibility the HA primary's subnet appears in co-routers'
AllowedIPs, and --accept-routes installs a system route that conflicts
with local subnet forwarding.

Updates #3157
This commit is contained in:
Kristoffer Dalby 2026-04-15 13:02:04 +00:00
parent ec48f34e1c
commit 3a4af8cf87

View File

@ -3276,9 +3276,12 @@ func TestGrantViaSubnetSteering(t *testing.T) {
require.NoError(t, err)
// Create Router A (tag:router-a) on usernet1.
// Routers advertise routes but must NOT accept peer routes — with
// co-router visibility the HA primary's subnet appears in the
// co-router's AllowedIPs, and --accept-routes would install a
// system route that conflicts with local subnet forwarding.
routerA, err := scenario.CreateTailscaleNode("head",
tsic.WithNetwork(usernet1),
tsic.WithAcceptRoutes(),
)
require.NoError(t, err)
@ -3296,7 +3299,6 @@ func TestGrantViaSubnetSteering(t *testing.T) {
// Create Router B (tag:router-b) on usernet1.
routerB, err := scenario.CreateTailscaleNode("head",
tsic.WithNetwork(usernet1),
tsic.WithAcceptRoutes(),
)
require.NoError(t, err)