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

Chapter 12. bgp


This chapter describes the commands under the bgp command.

12.1. bgp dragent add speaker

Usage:

openstack bgp dragent add speaker [-h] <agent-id> <bgp-speaker>
Copy to Clipboard Toggle word wrap

Add a BGP speaker to a dynamic routing agent

Expand
Table 12.1. Positional Arguments
ValueSummary

<agent-id>

Id of the dynamic routing agent

<bgp-speaker>

Id or name of the bgp speaker

Expand
Table 12.2. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the python-neutronclient plugin.

12.2. bgp dragent remove speaker

Usage:

openstack bgp dragent remove speaker [-h] <agent-id> <bgp-speaker>
Copy to Clipboard Toggle word wrap

Removes a BGP speaker from a dynamic routing agent

Expand
Table 12.3. Positional Arguments
ValueSummary

<agent-id>

Id of the dynamic routing agent

<bgp-speaker>

Id or name of the bgp speaker

Expand
Table 12.4. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the python-neutronclient plugin.

12.3. bgp peer delete

Usage:

openstack bgp peer delete [-h] <bgp-peer>
Copy to Clipboard Toggle word wrap

Delete a BGP peer

Expand
Table 12.5. Positional Arguments
ValueSummary

<bgp-peer>

Bgp peer to delete (name or id)

Expand
Table 12.6. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the python-neutronclient plugin.

12.4. bgp peer list

Usage:

openstack bgp peer 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]
Copy to Clipboard Toggle word wrap

List BGP peers

Expand
Table 12.7. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 12.8. 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 12.9. 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 12.10. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 12.11. CSV Formatter
ValueSummary

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

when to include quotes, defaults to nonnumeric

This command is provided by the python-neutronclient plugin.

12.5. bgp peer set

Usage:

openstack bgp peer set [-h] [--name NAME] [--password <auth-password>]

                            <bgp-peer>
Copy to Clipboard Toggle word wrap

Update a BGP peer

Expand
Table 12.12. Positional Arguments
ValueSummary

<bgp-peer>

Bgp peer to update (name or id)

Expand
Table 12.13. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--name NAME

Updated name of the bgp peer

--password <auth-password>

Updated authentication password

This command is provided by the python-neutronclient plugin.

12.6. bgp peer show

Usage:

openstack bgp peer show [-h] [-f {json,shell,table,value,yaml}]

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

Show information for a BGP peer

Expand
Table 12.14. Positional Arguments
ValueSummary

<bgp-peer>

Bgp peer to display (name or id)

Expand
Table 12.15. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 12.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 12.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 12.18. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 12.19. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

This command is provided by the python-neutronclient plugin.

12.7. bgp speaker add network

Usage:

openstack bgp speaker add network [-h] <bgp-speaker> <network>
Copy to Clipboard Toggle word wrap

Add a network to a BGP speaker

Expand
Table 12.20. Positional Arguments
ValueSummary

<bgp-speaker>

Bgp speaker (name or id)

<network>

Network to add (name or id)

Expand
Table 12.21. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the python-neutronclient plugin.

12.8. bgp speaker add peer

Usage:

openstack bgp speaker add peer [-h] <bgp-speaker> <bgp-peer>
Copy to Clipboard Toggle word wrap

Add a peer to a BGP speaker

Expand
Table 12.22. Positional Arguments
ValueSummary

<bgp-speaker>

Bgp speaker (name or id)

<bgp-peer>

Bgp peer to add (name or id)

Expand
Table 12.23. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the python-neutronclient plugin.

12.9. bgp speaker create

Usage:

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

                                  [-c COLUMN] [--max-width <integer>]
                                  [--fit-width] [--print-empty] [--noindent]
                                  [--prefix PREFIX] --local-as <local-as>
                                  [--ip-version {4,6}]
                                  [--advertise-floating-ip-host-routes]
                                  [--no-advertise-floating-ip-host-routes]
                                  [--advertise-tenant-networks]
                                  [--no-advertise-tenant-networks]
                                  [--project <project>]
                                  [--project-domain <project-domain>]
                                  <name>
Copy to Clipboard Toggle word wrap

Create a BGP speaker

Expand
Table 12.24. Positional Arguments
ValueSummary

<name>

Name of the bgp speaker to create

Expand
Table 12.25. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--local-as <local-as>

Local AS number. (Integer in [1, 65535] is allowed.)

--ip-version {4,6}

Ip version for the bgp speaker (default is 4)

--advertise-floating-ip-host-routes

Enable the advertisement of floating IP host routes by the BGP speaker. (default)

--no-advertise-floating-ip-host-routes

Disable the advertisement of floating IP host routes by the BGP speaker.

--advertise-tenant-networks

Enable the advertisement of tenant network routes by the BGP speaker. (default)

--no-advertise-tenant-networks

Disable the advertisement of tenant network routes by the BGP speaker.

--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 12.26. 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 12.27. 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 12.28. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 12.29. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

This command is provided by the python-neutronclient plugin.

12.10. bgp speaker delete

Usage:

openstack bgp speaker delete [-h] <bgp-speaker>
Copy to Clipboard Toggle word wrap

Delete a BGP speaker

Expand
Table 12.30. Positional Arguments
ValueSummary

<bgp-speaker>

Bgp speaker to delete (name or id)

Expand
Table 12.31. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the python-neutronclient plugin.

12.11. bgp speaker list

Usage:

openstack bgp speaker 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]
                                [--agent <agent-id>]
Copy to Clipboard Toggle word wrap

List BGP speakers

Expand
Table 12.32. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--agent <agent-id>

List bgp speakers hosted by an agent (id only)

Expand
Table 12.33. 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 12.34. 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 12.35. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 12.36. CSV Formatter
ValueSummary

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

when to include quotes, defaults to nonnumeric

This command is provided by the python-neutronclient plugin.

12.12. bgp speaker list advertised routes

Usage:

openstack bgp speaker list advertised routes [-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]
                                                  <bgp-speaker>
Copy to Clipboard Toggle word wrap

List routes advertised

Expand
Table 12.37. Positional Arguments
ValueSummary

<bgp-speaker>

Bgp speaker (name or id)

Expand
Table 12.38. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 12.39. 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 12.40. 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 12.41. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 12.42. CSV Formatter
ValueSummary

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

when to include quotes, defaults to nonnumeric

This command is provided by the python-neutronclient plugin.

12.13. bgp speaker remove network

Usage:

openstack bgp speaker remove network [-h] <bgp-speaker> <network>
Copy to Clipboard Toggle word wrap

Remove a network from a BGP speaker

Expand
Table 12.43. Positional Arguments
ValueSummary

<bgp-speaker>

Bgp speaker (name or id)

<network>

Network to remove (name or id)

Expand
Table 12.44. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the python-neutronclient plugin.

12.14. bgp speaker remove peer

Usage:

openstack bgp speaker remove peer [-h] <bgp-speaker> <bgp-peer>
Copy to Clipboard Toggle word wrap

Remove a peer from a BGP speaker

Expand
Table 12.45. Positional Arguments
ValueSummary

<bgp-speaker>

Bgp speaker (name or id)

<bgp-peer>

Bgp peer to remove (name or id)

Expand
Table 12.46. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

This command is provided by the python-neutronclient plugin.

12.15. bgp speaker set

Usage:

openstack bgp speaker set [-h] [--name NAME]

                               [--advertise-floating-ip-host-routes]
                               [--no-advertise-floating-ip-host-routes]
                               [--advertise-tenant-networks]
                               [--no-advertise-tenant-networks]
                               <bgp-speaker>
Copy to Clipboard Toggle word wrap

Set BGP speaker properties

Expand
Table 12.47. Positional Arguments
ValueSummary

<bgp-speaker>

Bgp speaker to update (name or id)

Expand
Table 12.48. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--name NAME

Name of the bgp speaker to update

--advertise-floating-ip-host-routes

Enable the advertisement of floating IP host routes by the BGP speaker. (default)

--no-advertise-floating-ip-host-routes

Disable the advertisement of floating IP host routes by the BGP speaker.

--advertise-tenant-networks

Enable the advertisement of tenant network routes by the BGP speaker. (default)

--no-advertise-tenant-networks

Disable the advertisement of tenant network routes by the BGP speaker.

This command is provided by the python-neutronclient plugin.

12.16. bgp speaker show

Usage:

openstack bgp speaker show [-h] [-f {json,shell,table,value,yaml}]

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

Show a BGP speaker

Expand
Table 12.49. Positional Arguments
ValueSummary

<bgp-speaker>

Bgp speaker to display (name or id)

Expand
Table 12.50. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 12.51. 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 12.52. 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 12.53. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 12.54. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

This command is provided by the python-neutronclient plugin.

12.17. bgp speaker show dragents

Usage:

openstack bgp speaker show dragents [-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]
                                         <bgp-speaker>
Copy to Clipboard Toggle word wrap

List dynamic routing agents hosting a BGP speaker

Expand
Table 12.55. Positional Arguments
ValueSummary

<bgp-speaker>

Id or name of the bgp speaker

Expand
Table 12.56. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 12.57. 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 12.58. 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 12.59. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 12.60. CSV Formatter
ValueSummary

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

when to include quotes, defaults to nonnumeric

This command is provided by the python-neutronclient plugin.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat