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 istrue
Possible values:
true
,false
-
--availability-zone-hints <AVAILABILITY_ZONE_HINTS>
— The availability zone candidates for the router. It is available whenrouter_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 whendvr
extension is enabledPossible values:
true
,false
-
--enable-ndp-proxy <ENABLE_NDP_PROXY>
— Enable NDP proxy attribute. Default isfalse
, To persist this attribute value, set theenable_ndp_proxy_by_default
option in theneutron.conf
file. It is available whenrouter-extend-ndp-proxy
extension is enabledPossible 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 whenl3-ha
extension is enabledPossible 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