cisco.nxos.nxos_bgp_neighbor module – (deprecated, removed after 2023-01-27) Manages BGP neighbors configurations.
Note
This module is part of the cisco.nxos collection (version 4.4.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 cisco.nxos
.
To use it in a playbook, specify: cisco.nxos.nxos_bgp_neighbor
.
New in cisco.nxos 1.0.0
DEPRECATED
- Removed in:
major release after 2023-01-27
- Why:
Updated module released with more functionality.
- Alternative:
nxos_bgp_global
Synopsis
Manages BGP neighbors configurations on NX-OS switches.
Note
This module has a corresponding action plugin.
Aliases: bgp_neighbor
Parameters
Parameter |
Comments |
---|---|
BGP autonomous system number. Valid values are string, Integer in ASPLAIN or ASDOT notation. |
|
Enables/Disables BFD for a given neighbor. Dependency: ‘’feature bfd’’ Choices:
|
|
Configure whether or not to negotiate capability with this neighbor. Choices:
|
|
Configure whether or not to check for directly connected peer. Choices:
|
|
Description of the neighbor. |
|
Configure whether or not to enable dynamic capability. Choices:
|
|
Specify multihop TTL for a remote peer. Valid values are integers between 2 and 255, or keyword ‘default’ to disable this property. |
|
Specify the local-as number for the eBGP neighbor. Valid values are String or Integer in ASPLAIN or ASDOT notation, or ‘default’, which means not to configure it. |
|
Specify whether or not to enable log messages for neighbor up/down event. Choices:
|
|
Specify whether or not to shut down this neighbor under memory pressure. Choices:
|
|
Specify Maximum number of peers for this neighbor prefix Valid values are between 1 and 1000, or ‘default’, which does not impose the limit. Note that this parameter is accepted only on neighbors with address/prefix. |
|
Neighbor Identifier. Valid values are string. Neighbors may use IPv4 or IPv6 notation, with or without prefix length. |
|
Specify the peer type for BGP session. Choices:
|
|
Specify the password for neighbor. Valid value is string. |
|
Specify the encryption type the password will use. Valid values are ‘3des’ or ‘cisco_type_7’ encryption or keyword ‘default’. Choices:
|
|
Specify Autonomous System Number of the neighbor. Valid values are String or Integer in ASPLAIN or ASDOT notation, or ‘default’, which means not to configure it. |
|
Specify the config to remove private AS number from outbound updates. Valid values are ‘enable’ to enable this config, ‘disable’ to disable this config, ‘all’ to remove all private AS number, or ‘replace-as’, to replace the private AS number. Choices:
|
|
Configure to administratively shutdown this neighbor. Choices:
|
|
Determines whether the config should be present or not on the device. Choices:
|
|
Configure to suppress 4-byte AS Capability. Choices:
|
|
Specify holdtime timer value. Valid values are integers between 0 and 3600 in terms of seconds, or ‘default’, which is 180. |
|
Specify keepalive timer value. Valid values are integers between 0 and 3600 in terms of seconds, or ‘default’, which is 60. |
|
Specify whether or not to only allow passive connection setup. Valid values are ‘true’, ‘false’, and ‘default’, which defaults to ‘false’. This property can only be configured when the neighbor is in ‘ip’ address format without prefix length. Choices:
|
|
Specify source interface of BGP session and updates. |
|
Name of the VRF. The name ‘default’ is a valid VRF representing the global bgp. Default: |
Notes
Note
Tested against NXOSv 7.3.(0)D1(1) on VIRL
Unsupported for Cisco MDS
state=absent
removes the whole BGP neighbor configuration.Default, where supported, restores params default value.
For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
Examples
# create a new neighbor
- cisco.nxos.nxos_bgp_neighbor:
asn: 65535
neighbor: 192.0.2.3
local_as: 20
remote_as: 30
bfd: enable
description: just a description
update_source: Ethernet1/3
state: present
peer_type: fabric_external
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
commands sent to the device Returned: always Sample: |
Status
This module will be removed in a major release after 2023-01-27. [deprecated]
For more information see DEPRECATED.