Netinfra Routing

DELETE /netinfra/routing/kernel/routes

Delete a static kernel route

Removes a static (proto static) IPv4 route from the node’s Linux FIB.

Query Parameters:
  • dst (string) – Destination CIDR to remove, e.g. 10.20.0.0/16

Status Codes:
GET /netinfra/routing/kernel/routes

Get kernel routing table

The node’s kernel routing table (the Linux FIB, i.e. ip route show).

Query Parameters:
  • protocol (string) – filter by route protocol: static, kernel, bgp, boot, dhcp

  • dev (string) – filter by egress interface, e.g. cloudbr0

  • search (string) – case-insensitive substring search over dst, gateway, dev (alias: q)

Status Codes:
POST /netinfra/routing/kernel/routes

Add a static kernel route

Installs an IPv4 static route in the node’s Linux FIB (ip route add).

Request JSON Object:
  • dev (string) – egress interface name (required)

  • dst (string) – destination CIDR, e.g. 10.20.0.0/16 (required)

  • gateway (string) – next-hop IP; omit for a link-scoped route

  • metric (integer) – route metric (priority); 0 = kernel default

Status Codes: