此内容没有您所选择的语言版本。

Chapter 42. l2gw


This chapter describes the commands under the l2gw command.

42.1. l2gw connection create

Usage:

openstack l2gw connection create [-h]

                                      [-f {json,shell,table,value,yaml}]
                                      [-c COLUMN] [--max-width <integer>]
                                      [--fit-width] [--print-empty]
                                      [--noindent] [--prefix PREFIX]
                                      [--default-segmentation-id SEG_ID]
                                      <GATEWAY-NAME/UUID>
                                      <NETWORK-NAME/UUID>
Copy to Clipboard Toggle word wrap

Create l2gateway-connection

Expand
Table 42.1. Positional Arguments
ValueSummary

<GATEWAY-NAME/UUID>

Descriptive name for logical gateway.

<NETWORK-NAME/UUID>

Network name or uuid.

Expand
Table 42.2. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--default-segmentation-id SEG_ID

default segmentation-id that will be applied to the interfaces for which segmentation id was not specified in l2-gateway-create command.

Expand
Table 42.3. Output Formatters
ValueSummary

-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

Expand
Table 42.4. Table Formatter
ValueSummary

--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.

Expand
Table 42.5. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 42.6. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

This command is provided by the networking-l2gw plugin.

42.2. l2gw connection delete

Usage:

openstack l2gw connection delete [-h]

                                      <L2_GATEWAY_CONNECTIONS>
                                      [<L2_GATEWAY_CONNECTIONS> ...]
Copy to Clipboard Toggle word wrap

Delete a given l2gateway-connection

Expand
Table 42.7. Positional Arguments
ValueSummary

<L2_GATEWAY_CONNECTIONS>

ID(s) of l2_gateway_connections(s) to delete.

Expand
Table 42.8. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the networking-l2gw plugin.

42.3. l2gw connection list

Usage:

openstack l2gw connection list [-h] [-f {csv,json,table,value,yaml}]

                                    [-c COLUMN] [--max-width <integer>]
                                    [--fit-width] [--print-empty]
                                    [--noindent]
                                    [--quote {all,minimal,none,nonnumeric}]
                                    [--sort-column SORT_COLUMN]
                                    [--project <project>]
                                    [--project-domain <project-domain>]
Copy to Clipboard Toggle word wrap

List l2gateway-connections

Expand
Table 42.9. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--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.

Expand
Table 42.10. Output Formatters
ValueSummary

-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

Expand
Table 42.11. Table Formatter
ValueSummary

--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.

Expand
Table 42.12. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 42.13. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

when to include quotes, defaults to nonnumeric

This command is provided by the networking-l2gw plugin.

42.4. l2gw connection show

Usage:

openstack l2gw connection show [-h] [-f {json,shell,table,value,yaml}]

                                    [-c COLUMN] [--max-width <integer>]
                                    [--fit-width] [--print-empty]
                                    [--noindent] [--prefix PREFIX]
                                    <L2_GATEWAY_CONNECTION>
Copy to Clipboard Toggle word wrap

Show information of a given l2gateway-connection

Expand
Table 42.14. Positional Arguments
ValueSummary

<L2_GATEWAY_CONNECTION>

ID of l2_gateway_connection to look up.

Expand
Table 42.15. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 42.16. Output Formatters
ValueSummary

-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

Expand
Table 42.17. Table Formatter
ValueSummary

--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.

Expand
Table 42.18. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 42.19. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

This command is provided by the networking-l2gw plugin.

42.5. l2gw create

Usage:

openstack l2gw create [-h] [-f {json,shell,table,value,yaml}]

                           [-c COLUMN] [--max-width <integer>] [--fit-width]
                           [--print-empty] [--noindent] [--prefix PREFIX]
                           [--project <project>]
                           [--project-domain <project-domain>]
                           [--device name=name,interface_names=INTERFACE-DETAILS]
                           <GATEWAY-NAME>
Copy to Clipboard Toggle word wrap

Create l2gateway resource

Expand
Table 42.20. Positional Arguments
ValueSummary

<GATEWAY-NAME>

Descriptive name for logical gateway.

Expand
Table 42.21. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--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.

--device name=name,interface_names=INTERFACE-DETAILS

Device name and Interface-names of l2gateway. INTERFACE-DETAILS is of form "<interface_name1>;[<inte rface_name2>][

Expand
Table 42.22. Output Formatters
ValueSummary

-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

Expand
Table 42.23. Table Formatter
ValueSummary

--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.

Expand
Table 42.24. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 42.25. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

This command is provided by the networking-l2gw plugin.

42.6. l2gw delete

Usage:

openstack l2gw delete [-h] <L2_GATEWAY> [<L2_GATEWAY> ...]
Copy to Clipboard Toggle word wrap

Delete a given l2gateway

Expand
Table 42.26. Positional Arguments
ValueSummary

<L2_GATEWAY>

Id(s) or name(s) of l2_gateway to delete.

Expand
Table 42.27. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the networking-l2gw plugin.

42.7. l2gw list

Usage:

openstack l2gw list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]

                         [--max-width <integer>] [--fit-width]
                         [--print-empty] [--noindent]
                         [--quote {all,minimal,none,nonnumeric}]
                         [--sort-column SORT_COLUMN] [--project <project>]
                         [--project-domain <project-domain>]
Copy to Clipboard Toggle word wrap

List l2gateway that belongs to a given tenant

Expand
Table 42.28. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--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.

Expand
Table 42.29. Output Formatters
ValueSummary

-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

Expand
Table 42.30. Table Formatter
ValueSummary

--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.

Expand
Table 42.31. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 42.32. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

when to include quotes, defaults to nonnumeric

This command is provided by the networking-l2gw plugin.

42.8. l2gw show

Usage:

openstack l2gw show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]

                         [--max-width <integer>] [--fit-width]
                         [--print-empty] [--noindent] [--prefix PREFIX]
                         <L2_GATEWAY>
Copy to Clipboard Toggle word wrap

Show information of a given l2gateway

Expand
Table 42.33. Positional Arguments
ValueSummary

<L2_GATEWAY>

Id or name of l2_gateway to look up.

Expand
Table 42.34. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 42.35. Output Formatters
ValueSummary

-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

Expand
Table 42.36. Table Formatter
ValueSummary

--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.

Expand
Table 42.37. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 42.38. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

This command is provided by the networking-l2gw plugin.

42.9. l2gw update

Usage:

openstack l2gw update [-h] [-f {json,shell,table,value,yaml}]

                           [-c COLUMN] [--max-width <integer>] [--fit-width]
                           [--print-empty] [--noindent] [--prefix PREFIX]
                           [--name name]
                           [--device name=name,interface_names=INTERFACE-DETAILS]
                           <L2_GATEWAY>
Copy to Clipboard Toggle word wrap

Update a given l2gateway

Expand
Table 42.39. Positional Arguments
ValueSummary

<L2_GATEWAY>

Id or name of l2_gateway to update.

Expand
Table 42.40. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--name name

Descriptive name for logical gateway.

--device name=name,interface_names=INTERFACE-DETAILS

Device name and Interface-names of l2gateway. INTERFACE-DETAILS is of form "<interface_name1>;[<inte rface_name2>][

Expand
Table 42.41. Output Formatters
ValueSummary

-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

Expand
Table 42.42. Table Formatter
ValueSummary

--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.

Expand
Table 42.43. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 42.44. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

This command is provided by the networking-l2gw plugin.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat