community.network.pn_vrouter_bgp module – CLI command to add/modify/remove vrouter-bgp
Note
This module is part of the community.network collection (version 5.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.pn_vrouter_bgp
.
Note
The community.network collection has been deprecated and will be removed from Ansible 12. See the discussion thread for more information.
DEPRECATED
- Removed in:
version 6.0.0
- Why:
This collection and all content in it is unmaintained and deprecated.
- Alternative:
Unknown.
Synopsis
This module can be used to add Border Gateway Protocol neighbor to a vRouter modify Border Gateway Protocol neighbor to a vRouter and remove Border Gateway Protocol neighbor from a vRouter.
Aliases: network.netvisor.pn_vrouter_bgp
Parameters
Parameter |
Comments |
---|---|
Minimum interval between sending BGP routing updates. |
|
Allow/reject routes with local AS in AS_PATH. Choices:
|
|
BFD protocol support for fault detection. Choices:
|
|
always use BFD multi-hop port for fault detection. Choices:
|
|
Target switch to run the CLI on. |
|
BGP Connect retry interval (seconds). |
|
announce default routes to the neighbor or not. Choices:
|
|
value for external BGP from 1 to 255. |
|
Interface to reach the neighbor. |
|
maximum number of prefixes. |
|
warn if the maximum number of prefixes is exceeded. Choices:
|
|
Multi-protocol features. Choices:
|
|
IP address for BGP neighbor. |
|
BGP Holdtime (seconds). |
|
BGP Keepalive interval (seconds). |
|
BGP next hop is self or not. Choices:
|
|
Remove ingress route-map from BGP neighbor. |
|
Remove egress route-map from BGP neighbor. |
|
override capability. Choices:
|
|
password for MD5 BGP. |
|
prefixes used for filtering. |
|
prefixes used for filtering outgoing packets. |
|
BGP remote AS from 1 to 4294967295. |
|
route map in for nbr. |
|
route map out for nbr. |
|
set as route reflector client. Choices:
|
|
send any community attribute to neighbor. Choices:
|
|
soft reset to reconfigure inbound traffic. Choices:
|
|
IP address of BGP packets required for peering over loopback interface. |
|
name of service config. |
|
default weight value between 0 and 65535 for the neighbor’s routes. |
|
vrouter-bgp configuration command. Choices:
|
Examples
- name: "Add BGP to vRouter"
community.network.pn_vrouter_bgp:
state: 'present'
pn_vrouter_name: 'sw01-vrouter'
pn_neighbor: '105.104.104.1'
pn_remote_as: 65000
pn_bfd: true
- name: "Remove BGP to vRouter"
community.network.pn_vrouter_bgp:
state: 'absent'
pn_vrouter_name: 'sw01-vrouter'
pn_neighbor: '105.104.104.1'
- name: "Modify BGP to vRouter"
community.network.pn_vrouter_bgp:
state: 'update'
pn_vrouter_name: 'sw01-vrouter'
pn_neighbor: '105.104.104.1'
pn_remote_as: 65000
pn_bfd: false
pn_allowas_in: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
indicates whether the CLI caused changes on the target. Returned: always |
|
the CLI command run on the target node. Returned: always |
|
set of error responses from the vrouter-bgp command. Returned: on error |
|
set of responses from the vrouter-bgp command. Returned: always |
Status
This module will be removed in version 6.0.0. [deprecated]
For more information see DEPRECATED.