osc network router create

Creates a logical router.

This operation creates a logical router. The logical router does not have any internal interface and it is not associated with any subnet. You can optionally specify an external gateway for a router at create time. The external gateway for the router must be plugged into an external network. An external network has its router:external extended field set to true. To specify an external gateway, the ID of the external network must be passed in the network_id parameter of the external_gateway_info attribute in the request body.

Normal response codes: 201

Error response codes: 400, 401

Usage: osc network router create [OPTIONS]

Options:

  • --admin-state-up <ADMIN_STATE_UP> — The administrative state of the resource, which is up (true) or down (false). Default is true

    Possible values: true, false

  • --availability-zone-hints <AVAILABILITY_ZONE_HINTS> — The availability zone candidates for the router. It is available when router_availability_zone extension is enabled

  • --description <DESCRIPTION> — A human-readable description for the resource. Default is an empty string

  • --distributed <DISTRIBUTED>true indicates a distributed router. It is available when dvr extension is enabled

    Possible values: true, false

  • --enable-ndp-proxy <ENABLE_NDP_PROXY> — Enable NDP proxy attribute. Default is false, To persist this attribute value, set the enable_ndp_proxy_by_default option in the neutron.conf file. It is available when router-extend-ndp-proxy extension is enabled

    Possible values: true, false

  • --enable-snat <ENABLE_SNAT>

    Possible values: true, false

  • --external-fixed-ips <JSON>

  • --network-id <NETWORK_ID>

  • --flavor-id <FLAVOR_ID> — The ID of the flavor associated with the router

  • --ha <HA>true indicates a highly-available router. It is available when l3-ha extension is enabled

    Possible values: true, false

  • --name <NAME> — Human-readable name of the resource. Default is an empty string

  • --tenant-id <TENANT_ID> — The ID of the project that owns the resource. Only administrative and users with advsvc role can specify a project ID other than their own. You cannot change this value through authorization policies