.. _cisco.iosxr.iosxr_bgp_address_family_module:
************************************
cisco.iosxr.iosxr_bgp_address_family
************************************
**Resource module to configure BGP Address family.**
Version added: 2.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module configures and manages the attributes of BGP address family on Cisco IOS-XR platforms.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A list of configurations for BGP address family.
|
|
address_family
list
/ elements=dictionary
|
|
Enable address family and enter its config mode
|
|
|
additional_paths
string
|
|
BGP additional-paths commands
|
|
|
advertise_best_external
boolean
|
|
Advertise best-external path.
|
|
|
afi
string
|
Choices:
- ipv4
- ipv6
- l2vpn
- link-state
- vpnv4
- vpnv6
|
address family.
|
|
|
aggregate_address
list
/ elements=dictionary
|
|
Configure BGP aggregate entries.
|
|
|
|
as_confed_set
boolean
|
|
Generate AS confed set path information.
|
|
|
|
as_set
boolean
|
|
Generate AS set path information.
|
|
|
|
route_policy
string
|
|
Policy to condition advertisement, suppression, and attributes.
|
|
|
|
summary_only
boolean
|
|
Filter more specific routes from updates.
|
|
|
|
value
string
|
|
IPv4 Aggregate address and mask or masklength.
|
|
|
allocate_label
dictionary
|
|
Allocate labels.
|
|
|
|
all
boolean
|
|
Allocate labels for all prefixes.
|
|
|
|
route_policy
string
|
|
Use a route policy to select prefixes for label allocation.
|
|
|
allow_vpn_default_originate
boolean
|
|
Allow sending default originate route to VPN neighbor.
|
|
|
as_path_loopcheck_out_disable
boolean
|
|
Configure AS Path loop checking for outbound updates.
|
|
|
bgp
dictionary
|
|
BGP Commands.
|
|
|
|
attribute_download
boolean
|
|
Configure attribute download for this address-family.
|
|
|
|
bestpath
dictionary
|
|
Change default route selection criteria.
|
|
|
|
|
origin_as
dictionary
|
|
BGP origin-AS knobs.
|
|
|
|
|
|
allow
dictionary
|
|
BGP origin-AS knobs.
|
|
|
|
|
|
|
invalid
boolean
|
|
BGP bestpath selection will allow 'invalid' origin-AS
|
|
|
|
|
|
use
dictionary
|
|
BGP origin-AS knobs.
|
|
|
|
|
|
|
validity
boolean
|
|
BGP bestpath selection will use origin-AS validity
|
|
|
|
client_to_client
dictionary
|
|
Configure client to client route reflection.
|
|
|
|
|
reflection
dictionary
|
|
disable client to client reflection of cluster id.
|
|
|
|
|
|
cluster_id_disable
dictionary
|
|
ID of Cluster for which reflection is to be disabled.
|
|
|
|
|
|
|
cluster_id
string
|
|
ID of Cluster for which reflection is to be disabled.
|
|
|
|
|
|
|
disable
boolean
|
|
disable cluster id.
|
|
|
|
|
|
disable
boolean
|
|
disable reflection.
|
|
|
|
dampening
dictionary
|
|
Enable route-flap dampening
|
|
|
|
|
route_policy
string
|
|
Route policy to specify criteria for dampening.
|
|
|
|
|
set
boolean
|
|
Enable dampening.
|
|
|
|
|
value
integer
|
|
Half-life time for the penalty
|
|
|
|
import_delay
dictionary
|
|
Specify delay for batching import processing.
|
|
|
|
|
delay_ms_parts
integer
|
|
milliseconds part <0-999>.
|
|
|
|
|
delay_second_parts
integer
|
|
Delay, seconds part <0-10>.
|
|
|
|
label_delay
dictionary
|
|
Specify delay for batching label processing
|
|
|
|
|
delay_ms_parts
integer
|
|
milliseconds part <0-999>.
|
|
|
|
|
delay_second_parts
integer
|
|
Delay, seconds part <0-10>.
|
|
|
|
origin_as
dictionary
|
|
BGP origin-AS knobs.
|
|
|
|
|
validation
dictionary
|
|
BGP origin-AS validation knobs.
|
|
|
|
|
|
disable
boolean
|
|
Disable RPKI origin-AS validation.
|
|
|
|
|
|
signal
dictionary
|
|
Signal origin-AS validity towards peers.
|
|
|
|
|
|
|
ibgp
boolean
|
|
Signal origin-AS validity towards iBGP peers
|
|
|
|
scan_time
integer
|
|
Configure background scanner interval for this address-family Example- <5-3600>.
|
|
|
default_martian_check_disable
boolean
|
|
Martian check default
|
|
|
distance
dictionary
|
|
Define an administrative distance.
|
|
|
|
local_routes
integer
|
|
Distance for local routes <1-255>.
|
|
|
|
routes_external_to_as
integer
|
|
Distance for routes external to the AS <1-255>.
|
|
|
|
routes_internal_to_as
integer
|
|
Distance for routes internal to the AS <1-255>.
|
|
|
dynamic_med
integer
|
|
Dynamic MED Interval.
|
|
|
global_table_multicast
boolean
|
|
Enable global table multicast.
|
|
|
inter_as_install
boolean
|
|
Install remote mvpn routes in default vrf.This is applicable for mvpn afi.
|
|
|
label_mode
dictionary
|
|
label configuration.
|
|
|
|
per_ce
boolean
|
|
Set per CE label mode
|
|
|
|
per_prefix
boolean
|
|
Set per perfix label mode.
|
|
|
|
per_vrf
boolean
|
|
Set per VRF label mode.
|
|
|
|
route_policy
string
|
|
Use a route policy to select prefixes for label allocation mode.
|
|
|
maximum_paths
dictionary
|
|
Forward packets over multiple paths.
|
|
|
|
ebgp
dictionary
|
|
ebgp-multipath.
|
|
|
|
|
max_path_value
integer
|
|
<2-64> Number of paths (limit includes backup path).
|
|
|
|
|
order_igp_metric
boolean
|
|
Order candidate multipaths for selection as per configured number(cisco-support).
|
|
|
|
|
selective_order_igp_metric
boolean
|
|
Allow multipaths only from marked neighbors
|
|
|
|
eibgp
dictionary
|
|
eiBGP-multipath.
|
|
|
|
|
max_path_value
integer
|
|
<2-64> Number of paths (limit includes backup path).
|
|
|
|
|
order_igp_metric
boolean
|
|
Order candidate multipaths for selection as per configured number(cisco-support).
|
|
|
|
|
selective_order_igp_metric
boolean
|
|
Allow multipaths only from marked neighbors
|
|
|
|
ibgp
dictionary
|
|
iBGP-multipath.
|
|
|
|
|
max_path_value
integer
|
|
<2-64> Number of paths (limit includes backup path).
|
|
|
|
|
order_igp_metric
boolean
|
|
Order candidate multipaths for selection as per configured number(cisco-support).
|
|
|
|
|
selective_order_igp_metric
boolean
|
|
Allow multipaths only from marked neighbors
|
|
|
|
|
unequal_cost
dictionary
|
|
Allow multipaths to have different BGP nexthop IGP metrics.
|
|
|
|
|
|
order_igp_metric
boolean
|
|
Order candidate multipaths for selection as per configured number(cisco-support).
|
|
|
|
|
|
selective_order_igp_metric
boolean
|
|
Allow multipaths only from marked neighbors
|
|
|
|
|
|
set
boolean
|
|
set unequal_cost.
|
|
|
mvpn_single_forwarder_selection_all
boolean
|
|
Enable single forwarder selection for all
|
|
|
mvpn_single_forwarder_selection_highest_ip_address
boolean
|
|
Enable single forwarder selection for PE with highest ip address.
|
|
|
networks
list
/ elements=dictionary
|
|
Specify a network to announce via BGP.
|
|
|
|
backdoor_route_policy
string
|
|
Specify a BGP backdoor route.
|
|
|
|
network
string
|
|
Specify a network to announce via BGP.
|
|
|
|
route_policy
string
|
|
Route-policy to modify the attributes.
|
|
|
nexthop
dictionary
|
|
Nexthop
|
|
|
|
resolution_prefix_length_minimum
integer
|
|
Set minimum prefix-length for nexthop resolution.
|
|
|
|
route_policy
string
|
|
Policy to filter out nexthop notification.
|
|
|
|
trigger_delay_critical
integer
|
|
For critical notification
|
|
|
|
trigger_delay_non_critical
integer
|
|
For non critical notification.
|
|
|
optimal_route_reflection
dictionary
|
|
Configure optimal-route-reflection group.
|
|
|
|
group_name
string
|
|
ORR group name - maximum 32 characters.
|
|
|
|
primary_address
string
|
|
IPv4 primary address.
|
|
|
|
secondary_address
string
|
|
IPv4 secondary address
|
|
|
permanent_network_route_policy
string
|
|
Name of the policy.
|
|
|
redistribute
list
/ elements=dictionary
|
|
Redistribute information from another routing protocol.
|
|
|
|
external
boolean
|
|
Redistribute EIGRP external routes.applicable for eigrp.
|
|
|
|
external_ospf
integer
|
|
Redistribute OSPF external routes.applicable for ospf.
|
|
|
|
id
string
|
|
Identifier for the routing protocol for configuring redistribute information. Example-application name, eigrp/is-is instance name, ospf tag
Valid for protocols 'ospf', 'eigrp', 'isis' and 'application'.
|
|
|
|
internal
boolean
|
|
Redistribute EIGRP internal routes.applicable for eigrp.
|
|
|
|
level
string
|
Choices:
- 1
- 2
- 1-inter-area
|
Redistribute routes from the specified ISIS levels.
Redistribute ISIS level 1 routes
Redistribute ISIS level 1 inter-area routes
Redistribute ISIS level 2 ISIS routes
|
|
|
|
metric
integer
|
|
Specifies the metric for redistributed routes.
|
|
|
|
nssa_external
boolean
|
|
Redistribute OSPF NSSA external routes.applicable for ospf.
|
|
|
|
protocol
string
/ required
|
Choices:
- ospf
- application
- eigrp
- isis
- static
- connected
- lisp
- mobile
- rip
- subscriber
|
Specifies the protocol for configuring redistribute information.
|
|
|
|
route_policy
string
|
|
Specifies the route policy reference.
|
|
|
retain_local_label
integer
|
|
Label retention time in minutes <3-60>.
|
|
|
route_target_download
boolean
|
|
Route target RIB installation.
|
|
|
safi
string
|
Choices:
- flowspec
- mdt
- multicast
- mvpn
- rt-filter
- tunnel
- unicast
- evpn
- mspw
- vpls-vpws
- link-state
|
Address Family modifier
|
|
|
segmented_multicast
boolean
|
|
Enable segmented multicast.This is applicable for mvpn afi.
|
|
|
table_policy
string
|
|
Configure policy for installation of routes to RIB.
|
|
|
update
dictionary
|
|
BGP Update generation configuration.
|
|
|
|
limit
dictionary
|
|
Update limit.
|
|
|
|
|
address_family
integer
|
|
Update limit for sub-groups.
|
|
|
|
|
sub_group
dictionary
|
|
Update limit for address-family.
|
|
|
|
|
|
ebgp
integer
|
|
Update limit for eBGP sub-groups<1-512.
|
|
|
|
|
|
ibgp
integer
|
|
Update limit for iBGP sub-groups<1-512.
|
|
|
|
wait_install
boolean
|
|
Wait for route install.
|
|
|
vrf
string
|
|
VRF name.
|
|
|
vrf_all_conf
dictionary
|
|
configuration is for all vrfs and its applicable for afi vpn6 and modifier unicast.
|
|
|
|
label_mode
dictionary
|
|
Label-related configuration.
|
|
|
|
|
per_ce
boolean
|
|
Set per CE label mode
|
|
|
|
|
per_vrf
boolean
|
|
Set per VRF label mode.
|
|
|
|
|
route_policy
string
|
|
Use a route policy to select prefixes for label allocation mode.
|
|
|
|
source_rt_import_policy
boolean
|
|
Source import route-targets from import-policy.
|
|
|
|
table_policy
string
|
|
Configure policy for installation of routes to RIB.
|
|
|
weight
dictionary
|
|
Define or modify weight.
|
|
|
|
reset_on_import
boolean
|
|
set reset_on_import.
|
|
|
|
reset_on_import_disable
boolean
|
|
disable reset_on_import.
|
|
as_number
string
|
|
Autonomous system number.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the Iosxr device by executing the command show running-config router bgp.
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:
- deleted
merged ←
- overridden
- replaced
- gathered
- rendered
- parsed
|
The state the configuration should be left in.
|