Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 54. router
This chapter describes the commands under the router
command.
54.1. router add port Link kopierenLink in die Zwischenablage kopiert!
Add a port to a router
Usage:
openstack router add port [-h] <router> <port>
openstack router add port [-h] <router> <port>
Value | Summary |
---|---|
<port> | Port to be added (name or id) |
<router> | Router to which port will be added (name or id) |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
54.2. router add subnet Link kopierenLink in die Zwischenablage kopiert!
Add a subnet to a router
Usage:
openstack router add subnet [-h] <router> <subnet>
openstack router add subnet [-h] <router> <subnet>
Value | Summary |
---|---|
<subnet> | Subnet to be added (name or id) |
<router> | Router to which subnet will be added (name or id) |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
54.3. router create Link kopierenLink in die Zwischenablage kopiert!
Create a new router
Usage:
Value | Summary |
---|---|
--print-empty | Print empty table if there is no data to show. |
--max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
--fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
Value | Summary |
---|---|
<name> | New router name |
Value | Summary |
---|---|
output formatter options-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | The output format, defaults to table |
-c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
Value | Summary |
---|---|
--noindent | Whether to disable indenting the json |
Value | Summary |
---|---|
--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) |
--description <description> | Set router description |
--distributed | Create a distributed router |
--ha | Create a highly available router |
--no-tag | No tags associated with the router |
--enable | Enable router (default) |
--centralized | Create a centralized router |
--project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
--no-ha | Create a legacy router |
-h, --help | Show this help message and exit |
--disable | Disable router |
--project <project> | Owner’s project (name or id) |
--tag <tag> | Tag to be added to the router (repeat option to set multiple tags) |
Value | Summary |
---|---|
a format a UNIX shell can parse (variable="value")--prefix PREFIX | Add a prefix to all variable names |
54.4. router delete Link kopierenLink in die Zwischenablage kopiert!
Delete router(s)
Usage:
openstack router delete [-h] <router> [<router> ...]
openstack router delete [-h] <router> [<router> ...]
Value | Summary |
---|---|
<router> | Router(s) to delete (name or id) |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
54.5. router list Link kopierenLink in die Zwischenablage kopiert!
List routers
Usage:
Value | Summary |
---|---|
--print-empty | Print empty table if there is no data to show. |
--max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
--fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
Value | Summary |
---|---|
--quote {all,minimal,none,nonnumeric} | When to include quotes, defaults to nonnumeric |
Value | Summary |
---|---|
output formatter options-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml} | The output format, defaults to table |
-c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
--sort-column SORT_COLUMN | Specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated |
Value | Summary |
---|---|
--noindent | Whether to disable indenting the json |
Value | Summary |
---|---|
--agent <agent-id> | List routers hosted by an agent (id only) |
--enable | List enabled routers |
--not-any-tags <tag>[,<tag>,…] | Exclude routers which have any given tag(s) (comma- separated list of tags) |
--name <name> | List routers according to their name |
--tags <tag>[,<tag>,…] | List routers which have all given tag(s) (comma- separated list of tags) |
--long | List additional fields in output |
--project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
--any-tags <tag>[,<tag>,…] | List routers which have any given tag(s) (comma- separated list of tags) |
--not-tags <tag>[,<tag>,…] | Exclude routers which have all given tag(s) (comma- separated list of tags) |
-h, --help | Show this help message and exit |
--disable | List disabled routers |
--project <project> | List routers according to their project (name or id) |
54.6. router remove port Link kopierenLink in die Zwischenablage kopiert!
Remove a port from a router
Usage:
openstack router remove port [-h] <router> <port>
openstack router remove port [-h] <router> <port>
Value | Summary |
---|---|
<port> | Port to be removed and deleted (name or id) |
<router> | Router from which port will be removed (name or id) |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
54.7. router remove subnet Link kopierenLink in die Zwischenablage kopiert!
Remove a subnet from a router
Usage:
openstack router remove subnet [-h] <router> <subnet>
openstack router remove subnet [-h] <router> <subnet>
Value | Summary |
---|---|
<subnet> | Subnet to be removed (name or id) |
<router> | Router from which the subnet will be removed (name or id) |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
54.8. router set Link kopierenLink in die Zwischenablage kopiert!
Set router properties
Usage:
Value | Summary |
---|---|
<router> | Router to modify (name or id) |
Value | Summary |
---|---|
--description <description> | Set router description |
--distributed | Set router to distributed mode (disabled router only) |
--route destination=<subnet>,gateway=<ip-address> | Routes associated with the router destination: destination subnet (in CIDR notation) gateway: nexthop IP address (repeat option to set multiple routes) |
--no-ha | Clear high availability attribute of the router (disabled router only) |
--enable | Enable router |
--no-tag | Clear tags associated with the router. specify both --tag and --no-tag to overwrite current tags |
--name <name> | Set router name |
--ha | Set the router as highly available (disabled router only) |
--tag <tag> | Tag to be added to the router (repeat option to set multiple tags) |
--centralized | Set router to centralized mode (disabled router only) |
--disable-snat | Disable source nat on external gateway |
--external-gateway <network> | External network used as router’s gateway (name or id) |
--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) |
--no-route | Clear routes associated with the router. specify both --route and --no-route to overwrite current value of route. |
-h, --help | Show this help message and exit |
--disable | Disable router |
--enable-snat | Enable source nat on external gateway |
54.9. router show Link kopierenLink in die Zwischenablage kopiert!
Display router details
Usage:
openstack router show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--max-width <integer>] [--fit-width] [--print-empty] [--noindent] [--prefix PREFIX] <router>
openstack router show [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--fit-width]
[--print-empty] [--noindent] [--prefix PREFIX]
<router>
Value | Summary |
---|---|
--print-empty | Print empty table if there is no data to show. |
--max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
--fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
Value | Summary |
---|---|
<router> | Router to display (name or id) |
Value | Summary |
---|---|
output formatter options-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | The output format, defaults to table |
-c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
Value | Summary |
---|---|
--noindent | Whether to disable indenting the json |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
Value | Summary |
---|---|
a format a UNIX shell can parse (variable="value")--prefix PREFIX | Add a prefix to all variable names |
54.10. router unset Link kopierenLink in die Zwischenablage kopiert!
Unset router properties
Usage:
openstack router unset [-h] [--route destination=<subnet>,gateway=<ip-address>] [--external-gateway] [--tag <tag> | --all-tag] <router>
openstack router unset [-h]
[--route destination=<subnet>,gateway=<ip-address>]
[--external-gateway] [--tag <tag> | --all-tag]
<router>
Value | Summary |
---|---|
<router> | Router to modify (name or id) |
Value | Summary |
---|---|
--external-gateway | Remove external gateway information from the router |
--all-tag | Clear all tags associated with the router |
-h, --help | Show this help message and exit |
--route destination=<subnet>,gateway=<ip-address> | Routes to be removed from the router destination: destination subnet (in CIDR notation) gateway: nexthop IP address (repeat option to unset multiple routes) |
--tag <tag> | Tag to be removed from the router (repeat option to remove multiple tags) |