此内容没有您所选择的语言版本。
Chapter 44. local
This chapter describes the commands under the local command.
44.1. local ip association create 复制链接链接已复制到粘贴板!
Create Local IP Association
Usage:
openstack local ip association create [-h]
[-f {json,shell,table,value,yaml}]
[-c COLUMN] [--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width] [--print-empty]
[--fixed-ip <fixed-ip>]
[--project-domain <project-domain>]
<local-ip> <fixed-port>
| Value | Summary |
|---|---|
| <local-ip> | Local ip that the port association belongs to (name or ID) |
| <fixed-port> | The id or name of port to allocate local ip Association |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --fixed-ip <fixed-ip> | Fixed ip for local ip association |
| --project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
| Value | Summary |
|---|---|
| -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 to show multiple columns |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
| Value | Summary |
|---|---|
| --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 |
| --print-empty | Print empty table if there is no data to show. |
44.2. local ip association delete 复制链接链接已复制到粘贴板!
Delete Local IP association(s)
Usage:
openstack local ip association delete [-h]
<local-ip> <fixed-port-id>
[<fixed-port-id> ...]
| Value | Summary |
|---|---|
| <local-ip> | Local ip that the port association belongs to (name or id) |
| <fixed-port-id> | The fixed port id of local ip association |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
44.3. local ip association list 复制链接链接已复制到粘贴板!
List Local IP Associations
Usage:
openstack local ip association list [-h]
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width] [--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--fixed-port <fixed-port>]
[--fixed-ip <fixed-ip>]
[--host <host>]
[--project-domain <project-domain>]
<local-ip>
| Value | Summary |
|---|---|
| <local-ip> | Local ip that port associations belongs to |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --fixed-port <fixed-port> | Filter the list result by the id or name of the fixed port |
| --fixed-ip <fixed-ip> | Filter the list result by fixed ip |
| --host <host> | Filter the list result by given host |
| --project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
| Value | Summary |
|---|---|
| -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 to show multiple columns |
| --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 |
| --sort-ascending | Sort the column(s) in ascending order |
| --sort-descending | Sort the column(s) in descending order |
| Value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | When to include quotes, defaults to nonnumeric |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --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 |
| --print-empty | Print empty table if there is no data to show. |
44.4. local ip create 复制链接链接已复制到粘贴板!
Create Local IP
Usage:
openstack local ip create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--noindent] [--prefix PREFIX]
[--max-width <integer>] [--fit-width]
[--print-empty] [--name <name>]
[--description <description>]
[--network <network>]
[--local-port <local-port>]
[--local-ip-address <local-ip-address>]
[--ip-mode <ip-mode>]
[--project-domain <project-domain>]
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --name <name> | New local ip name |
| --description <description> | New local ip description |
| --network <network> | Network to allocate local ip (name or id) |
| --local-port <local-port> | Port to allocate local ip (name or id) |
| --local-ip-address <local-ip-address> | Ip address or cidr |
| --ip-mode <ip-mode> | Local ip ip mode |
| --project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
| Value | Summary |
|---|---|
| -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 to show multiple columns |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
| Value | Summary |
|---|---|
| --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 |
| --print-empty | Print empty table if there is no data to show. |
44.5. local ip delete 复制链接链接已复制到粘贴板!
Delete local IP(s)
Usage:
openstack local ip delete [-h] <local-ip> [<local-ip> ...]
| Value | Summary |
|---|---|
| <local-ip> | Local ip(s) to delete (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
44.6. local ip list 复制链接链接已复制到粘贴板!
List local IPs
Usage:
openstack local ip list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent] [--max-width <integer>]
[--fit-width] [--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--name <name>] [--project <project>]
[--network <network>]
[--local-port <local-port>]
[--local-ip-address <local-ip-address>]
[--ip-mode <ip_mode>]
[--project-domain <project-domain>]
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --name <name> | List only local ips of given name in output |
| --project <project> | List local ips according to their project (name or id) |
| --network <network> | List local ip(s) according to given network (name or ID) |
| --local-port <local-port> | List local ip(s) according to given port (name or id) |
| --local-ip-address <local-ip-address> | List local ip(s) according to given local ip address |
| --ip-mode <ip_mode> | List local ip(s) according to given ip mode |
| --project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
| Value | Summary |
|---|---|
| -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 to show multiple columns |
| --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 |
| --sort-ascending | Sort the column(s) in ascending order |
| --sort-descending | Sort the column(s) in descending order |
| Value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | When to include quotes, defaults to nonnumeric |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --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 |
| --print-empty | Print empty table if there is no data to show. |
44.7. local ip set 复制链接链接已复制到粘贴板!
Set local ip properties
Usage:
openstack local ip set [-h] [--name <name>]
[--description <description>]
<local-ip>
| Value | Summary |
|---|---|
| <local-ip> | Local ip to modify (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --name <name> | Set local ip name |
| --description <description> | Set local ip description |
44.8. local ip show 复制链接链接已复制到粘贴板!
Display local IP details
Usage:
openstack local ip show [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--noindent] [--prefix PREFIX]
[--max-width <integer>] [--fit-width]
[--print-empty]
<local-ip>
| Value | Summary |
|---|---|
| <local-ip> | Local ip to display (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| Value | Summary |
|---|---|
| -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 to show multiple columns |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
| Value | Summary |
|---|---|
| --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 |
| --print-empty | Print empty table if there is no data to show. |