openstack router createCreate a new router
Options
| Option | Description |
|---|---|
<name> | New router name |
--extra-property type=<property_type>,name=<property_name>,value=<property_value> | Additional parameters can be passed using this property. Default type of the extra property is string ('str'), but other types can be used as well. Available types are: 'dict', 'list', 'str', 'bool', 'int'. In case of 'list' type, 'value' can be semicolon-separated list of values. For 'dict' value is semicolon-separated list of the key:value pairs. |
--enable | Enable router (default) |
--disable | Disable router |
--distributed | Create a distributed router |
--centralized | Create a centralized router |
--ha | Create a highly available router |
--no-ha | Create a legacy router |
--description <description> | Set router description |
--project <project> | Owner's project (name or ID) |
--project-domain <project-domain> | Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. |
--availability-zone-hint <availability-zone> | Availability Zone in which to create this router (Router Availability Zone extension required, repeat option to set multiple availability zones) |
--tag <tag> | Tag to be added to the router (repeat option to set multiple tags) |
--no-tag | No tags associated with the router |
--external-gateway <network> | External Network used as router's gateway (name or ID) (repeat option to set multiple gateways per router if the L3 service plugin in use supports it) |
--fixed-ip subnet=<subnet>,ip-address=<ip-address> | Desired IP and/or subnet (name or ID) on external gateway: subnet=<subnet>,ip-address=<ip-address> (repeat option to set multiple fixed IP addresses) |
--enable-snat | Enable Source NAT on external gateway |
--disable-snat | Disable Source NAT on external gateway |
--enable-ndp-proxy | Enable IPv6 NDP proxy on external gateway |
--disable-ndp-proxy | Disable IPv6 NDP proxy on external gateway |
--flavor <flavor-id> | Associate the router to a flavor (by name or ID |
--enable-default-route-bfd | Enable BFD sessions for default routes inferred from the external gateway port subnets for this router |
--disable-default-route-bfd | Disable BFD sessions for default routes inferred from the external gateway port subnets for this router |
--enable-default-route-ecmp | Add ECMP default routes if multiple are available via different gateway ports |
--disable-default-route-ecmp | Add default route only for first gateway port |
--qos-policy <qos-policy> | Attach QoS policy to router gateway IPs |