[roads] QA F-02: going direct never takes what the tunnel carries out of it

A goes-direct subnet was only checked to be canonical, and the kill switch
dropped it only when it reached the internet, so 100.96.0.0/16 (every mesh
address) or the home LAN that the plan routes into the tunnel compiled cleanly.

Now, decided here because the plan has to say which route wins:
- a goes-direct subnet other than /0 that holds a mesh address is refused
  (direct.mesh);
- per device, a direct subnet inside a net the plan tunnels is dropped and
  reported (direct.tunnelled);
- a direct subnet that holds tunnelled nets keeps them in the tunnel, listed
  in the new plan field direct[].except. A platform that cannot honour except
  (an app-level bypass) must not apply the entry.

The F-02 test now checks that every overlap is covered by except, and that
only the mesh subnet is refused. Golden plans and the pinned jana-phone digest
are regenerated: the only change is the except lists. Plan format 1 has not
been released, so it changes in place.
This commit is contained in:
2026-11-25 08:54:51 +01:00
parent ecafe194a5
commit 80f73a0154
17 changed files with 132 additions and 5 deletions
+4
View File
@@ -29,6 +29,7 @@ pub const OBJECT_UNKNOWN: &str = "object.unknown";
pub const OBJECT_NOT_EXIT: &str = "object.not-exit";
pub const SUBNET_NOT_CANONICAL: &str = "subnet.not-canonical";
pub const SUBNET_UNROUTED: &str = "subnet.unrouted";
pub const DIRECT_MESH: &str = "direct.mesh";
pub const UNTIL_FORMAT: &str = "until.format";
pub const CREATED_FORMAT: &str = "created.format";
pub const PORTS_FORMAT: &str = "ports.format";
@@ -49,6 +50,7 @@ pub const ROAD_SELF: &str = "road.self";
pub const EXIT_CONFLICT: &str = "exit.conflict";
pub const DIRECT_KILL_SWITCH: &str = "direct.kill-switch";
pub const ROAD_FAMILY: &str = "road.family";
pub const DIRECT_TUNNELLED: &str = "direct.tunnelled";
// Snapshots
pub const SNAPSHOT_JSON: &str = "snapshot.json";
@@ -97,6 +99,7 @@ pub const ALL: &[&str] = &[
OBJECT_NOT_EXIT,
SUBNET_NOT_CANONICAL,
SUBNET_UNROUTED,
DIRECT_MESH,
UNTIL_FORMAT,
CREATED_FORMAT,
PORTS_FORMAT,
@@ -115,6 +118,7 @@ pub const ALL: &[&str] = &[
EXIT_CONFLICT,
DIRECT_KILL_SWITCH,
ROAD_FAMILY,
DIRECT_TUNNELLED,
SNAPSHOT_JSON,
SNAPSHOT_FORMAT,
DIRECTORY_ID,