.. _cisco.nxos.nxos_bgp_templates_module:
*****************************
cisco.nxos.nxos_bgp_templates
*****************************
**BGP Templates resource module.**
Version added: 4.2.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages BGP templates on devices running Cisco NX-OS.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A list of BGP templates.
|
|
as_number
string
|
|
Autonomous System Number of the router.
|
|
neighbor
list
/ elements=dictionary
|
|
Configure BGP peer templates.
|
|
|
address_family
list
/ elements=dictionary
|
|
Configure an address-family for peer.
|
|
|
|
advertise_map
dictionary
|
|
Specify route-map for conditional advertisement.
|
|
|
|
|
exist_map
string
|
|
Condition route-map to advertise only when prefix in condition exists.
|
|
|
|
|
non_exist_map
string
|
|
Condition route-map to advertise only when prefix in condition does not exist.
|
|
|
|
|
route_map
string
/ required
|
|
Route-map name.
|
|
|
|
advertisement_interval
integer
|
|
Minimum interval between sending BGP routing updates.
|
|
|
|
afi
string
/ required
|
Choices:
- ipv4
- ipv6
- link-state
- l2vpn
|
Address Family indicator.
|
|
|
|
allowas_in
dictionary
|
|
Accept as-path with my AS present in it.
|
|
|
|
|
max_occurences
integer
|
|
Number of occurrences of AS number, default is 3.
|
|
|
|
|
set
boolean
|
|
Activate allowas-in property.
|
|
|
|
as_override
boolean
|
|
Override matching AS-number while sending update.
|
|
|
|
capability
dictionary
|
|
Advertise capability to the peer.
|
|
|
|
|
additional_paths
dictionary
|
|
Additional paths capability.
|
|
|
|
|
|
receive
string
|
|
Additional paths Receive capability.
|
|
|
|
|
|
send
string
|
|
Additional paths Send capability.
|
|
|
|
default_originate
dictionary
|
|
Originate a default toward this peer.
|
|
|
|
|
route_map
string
|
|
Route-map to specify criteria for originating default.
|
|
|
|
|
set
boolean
|
|
Set default-originate attribute.
|
|
|
|
disable_peer_as_check
boolean
|
|
Disable checking of peer AS-number while advertising.
|
|
|
|
filter_list
dictionary
|
|
Name of filter-list.
|
|
|
|
|
inbound
string
|
|
Apply policy to incoming routes.
|
|
|
|
|
outbound
string
|
|
Apply policy to outgoing routes.
|
|
|
|
inherit
dictionary
|
|
Inherit a peer-policy template.
|
|
|
|
|
peer_policy
string
|
|
Peer-policy template to inherit.
|
|
|
|
maximum_prefix
dictionary
|
|
Maximum number of prefixes from this neighbor.
|
|
|
|
|
generate_warning_threshold
integer
|
|
Threshold percentage at which to generate a warning.
|
|
|
|
|
max_prefix_limit
integer
|
|
Maximum prefix limit.
|
|
|
|
|
restart_interval
integer
|
|
Restart bgp connection after limit is exceeded.
|
|
|
|
|
warning_only
boolean
|
|
Only give a warning message when limit is exceeded.
|
|
|
|
next_hop_self
dictionary
|
|
Set our address as nexthop (non-reflected).
|
|
|
|
|
all_routes
boolean
|
|
Set our address as nexthop for all routes.
|
|
|
|
|
set
boolean
|
|
Set next-hop-self attribute.
|
|
|
|
next_hop_third_party
boolean
|
|
Compute a third-party nexthop if possible.
|
|
|
|
prefix_list
dictionary
|
|
Apply prefix-list.
|
|
|
|
|
inbound
string
|
|
Apply policy to incoming routes.
|
|
|
|
|
outbound
string
|
|
Apply policy to outgoing routes.
|
|
|
|
route_map
dictionary
|
|
Apply route-map to neighbor.
|
|
|
|
|
inbound
string
|
|
Name of policy to apply to incoming routes.
|
|
|
|
|
outbound
string
|
|
Name of policy to apply to outgoing routes.
|
|
|
|
route_reflector_client
boolean
|
|
Configure a neighbor as Route reflector client.
|
|
|
|
safi
string
|
Choices:
- unicast
- multicast
- mvpn
- evpn
|
Sub Address Family indicator.
|
|
|
|
send_community
string
|
Choices:
- standard
- extended
- both
|
Send Community attribute to this neighbor.
|
|
|
|
soft_reconfiguration_inbound
dictionary
|
|
Soft reconfiguration.
|
|
|
|
|
always
boolean
|
|
Always perform inbound soft reconfiguration.
|
|
|
|
|
set
boolean
|
|
Set soft-reconfiguration inbound attribute.
|
|
|
|
soo
string
|
|
Specify Site-of-origin extcommunity.
|
|
|
|
suppress_inactive
boolean
|
|
Advertise only active routes to peer.
|
|
|
|
unsuppress_map
string
|
|
Route-map to selectively unsuppress suppressed routes.
|
|
|
|
weight
integer
|
|
Set default weight for routes from this neighbor.
|
|
|
bfd
dictionary
|
|
Bidirectional Fast Detection for the neighbor.
|
|
|
|
multihop
dictionary
|
|
Multihop session.
|
|
|
|
|
interval
dictionary
|
|
Configure BFD session interval parameters.
|
|
|
|
|
|
min_rx_interval
integer
/ required
|
|
Minimum RX interval.
|
|
|
|
|
|
multiplier
integer
/ required
|
|
Detect Multiplier.
|
|
|
|
|
|
tx_interval
integer
/ required
|
|
TX interval in milliseconds.
|
|
|
|
|
set
boolean
|
|
Set BFD multihop.
|
|
|
|
set
boolean
|
|
Set BFD for this neighbor.
|
|
|
|
singlehop
boolean
|
|
Single-hop session.
|
|
|
bmp_activate_server
integer
|
|
Specify server ID for activating BMP monitoring for the peer.
|
|
|
capability
dictionary
|
|
Capability.
|
|
|
|
suppress_4_byte_as
boolean
|
|
Suppress 4-byte AS Capability.
|
|
|
description
string
|
|
Neighbor specific descripion.
|
|
|
disable_connected_check
boolean
|
|
Disable check for directly connected peer.
|
|
|
dont_capability_negotiate
boolean
|
|
Don't negotiate capability with this neighbor.
|
|
|
dscp
string
|
|
Set dscp value for tcp transport.
|
|
|
dynamic_capability
boolean
|
|
Dynamic Capability
|
|
|
ebgp_multihop
integer
|
|
Specify multihop TTL for remote peer.
|
|
|
graceful_shutdown
dictionary
|
|
Graceful-shutdown for this neighbor.
|
|
|
|
activate
dictionary
|
|
Send graceful-shutdown community.
|
|
|
|
|
route_map
string
|
|
Apply route-map to modify attributes for outbound.
|
|
|
|
|
set
boolean
|
|
Set activate.
|
|
|
inherit
dictionary
|
|
Inherit a template.
|
|
|
|
peer_session
string
|
|
Peer-session template to inherit.
|
|
|
local_as
string
|
|
Specify the local-as number for the eBGP neighbor.
|
|
|
log_neighbor_changes
dictionary
|
|
Log message for neighbor up/down event.
|
|
|
|
disable
boolean
|
|
Disable logging of neighbor up/down event.
|
|
|
|
set
boolean
|
|
Set log-neighbor-changes.
|
|
|
low_memory
dictionary
|
|
Behaviour in low memory situations.
|
|
|
|
exempt
boolean
|
|
Do not shutdown this peer when under memory pressure.
|
|
|
name
string
|
|
Name of the BGP peer template.
|
|
|
password
dictionary
|
|
Configure a password for neighbor.
|
|
|
|
encryption
integer
|
|
0 specifies an UNENCRYPTED neighbor password.
3 specifies an 3DES ENCRYPTED neighbor password will follow.
7 specifies a Cisco type 7 ENCRYPTED neighbor password will follow.
|
|
|
|
key
string
|
|
Authentication password.
|
|
|
path_attribute
list
/ elements=dictionary
|
|
BGP path attribute optional filtering.
|
|
|
|
action
string
|
Choices:
- discard
- treat-as-withdraw
|
Action.
|
|
|
|
range
dictionary
|
|
Path attribute range.
|
|
|
|
|
end
integer
|
|
Path attribute range end value.
|
|
|
|
|
start
integer
|
|
Path attribute range start value.
|
|
|
|
type
integer
|
|
Path attribute type
|
|
|
remote_as
string
|
|
Specify Autonomous System Number of the neighbor.
|
|
|
remove_private_as
dictionary
|
|
Remove private AS number from outbound updates.
|
|
|
|
all
boolean
|
|
All.
|
|
|
|
replace_as
boolean
|
|
Replace.
|
|
|
|
set
boolean
|
|
Remove private AS.
|
|
|
shutdown
boolean
|
|
Administratively shutdown this neighbor.
|
|
|
timers
dictionary
|
|
Configure keepalive and hold timers.
|
|
|
|
holdtime
integer
|
|
Holdtime (seconds).
|
|
|
|
keepalive
integer
|
|
Keepalive interval (seconds).
|
|
|
transport
dictionary
|
|
BGP transport connection.
|
|
|
|
connection_mode
dictionary
|
|
Specify type of connection.
|
|
|
|
|
passive
boolean
|
|
Allow passive connection setup only.
|
|
|
ttl_security
dictionary
|
|
Enable TTL Security Mechanism.
|
|
|
|
hops
integer
|
|
Specify hop count for remote peer.
|
|
|
update_source
string
|
|
Specify source of BGP session and updates.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the NX-OS device by executing the command show running-config bgp | section 'template'.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- parsed
- gathered
- rendered
|
The state the configuration should be left in.
Refer to examples for more details.
|