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

Set router properties

Options​

OptionDescription
<router>Router to modify (name or ID)
--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.
--name <name>Set router name
--description <description>Set router description
--enableEnable router
--disableDisable router
--distributedSet router to distributed mode (disabled router only)
--centralizedSet router to centralized mode (disabled router only)
--route destination=<subnet>,gateway=<ip-address>Add routes to the router. destination: destination subnet (in CIDR notation) gateway: nexthop IP address (repeat option to add multiple routes). This is deprecated in favor of 'router add/remove route' since it is prone to race conditions between concurrent clients when not used together with --no-route to overwrite the current value of 'routes'.
--no-routeClear routes associated with the router. Specify both
--route and --no-route to overwrite current value ofroutes.
--haSet the router as highly available (disabled router only)
--no-haClear high availability attribute of the router (disabled router only)
--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
--qos-policy <qos-policy>Attach QoS policy to router gateway IPs
--no-qos-policyRemove QoS policy from router gateway IPs
--tag <tag>Tag to be added to the router (repeat option to set multiple tags)
--no-tagClear tags associated with the router. Specify both
--tag and --no-tag to overwrite current tags
--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