Neutron Router

Media Type
[application/vnd.org.midonet.neutron.Router-v1+json]
Collection Media Type
[application/vnd.org.midonet.neutron.Routers-v1+json]
GET     /neutron/routers
GET     /neutron/routers/:routerId
POST    /neutron/routers
PUT     /neutron/routers/:routerId
DELETE  /neutron/routers/:routerid
Field NameTypePOST/PUTRequiredDescription

id

UUID

POST

No

A unique identifier of the resource. If this field is omitted in the POST request, a random UUID is generated.

tenant_id

String

POST

Yes

The identifier of the tenant that owns the router.

admin_state_up

Boolean

POST/PUT

No

The administrative state of the router. The default is true (up).

external_gateway_info

(UUID, Boolean))

POST/PUT

No

The external gateway information. It is a JSON that includes the network_id and enable_snat.

gw_port_id

UUID

POST/PUT

No

The identifier of the gateway port on the external network.

name

String

POST/PUT

No

The router name.

routes

Array of (String, String)

POST/PUT

No

The list of routes of this router. Each array element is a JSON indicating the destination and nexthop IP addresses for each route, such as { "destination: "192.168.0.100", "nexthop": "10.0.0.100" }

status

String

  

Status of this resource. This field is currently unused.

external_gateway_info consists of the following fields:

  • network_id: ID of the external network. This field is required.
  • enable_snat: Enabling SNAT allows VMs to reach the Internet. This field is optional and is defaulted to True.
Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.