All error codes

router_interface_not_found

HTTP 409 The router has no network on this interface

What happened

The router has no network on the interface you named, in an access rule or in address handout (DHCP): nothing is attached there, for example eth5, or eth2 after its network was detached from the router. Only eth0 and the interfaces of the router's attached networks are accepted.

What to do

Read GET /v1/servers/{id}/router/networks for the interfaces that carry a network, then repeat with one of them - in a rule also null to match any interface. A rule that already sits on the interface of a detached network can still be switched off, renamed or deleted without changing its interface.

Retrying

Change the state this refers to, then repeat the same request with the same idempotency key.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/router_interface_not_found",
    "title": "The router has no network on this interface",
    "status": 409,
    "code": "router_interface_not_found",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.