Chuyển tới nội dung chính
openstack router create

Create a new router

Options​

OptionDescription
<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.
--enableEnable router (default)
--disableDisable router
--distributedCreate a distributed router
--centralizedCreate a centralized router
--haCreate a highly available router
--no-haCreate 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-tagNo 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-snatEnable Source NAT on external gateway
--disable-snatDisable Source NAT on external gateway
--enable-ndp-proxyEnable IPv6 NDP proxy on external gateway
--disable-ndp-proxyDisable IPv6 NDP proxy on external gateway
--flavor <flavor-id>Associate the router to a flavor (by name or ID
--enable-default-route-bfdEnable BFD sessions for default routes inferred from the external gateway port subnets for this router
--disable-default-route-bfdDisable BFD sessions for default routes inferred from the external gateway port subnets for this router
--enable-default-route-ecmpAdd ECMP default routes if multiple are available via different gateway ports
--disable-default-route-ecmpAdd default route only for first gateway port
--qos-policy <qos-policy>Attach QoS policy to router gateway IPs