cisco.iosxr.iosxr_bgp_neighbor_address_family module – Manages BGP neighbor address family resource module.
Note
This module is part of the cisco.iosxr collection (version 2.9.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.iosxr
.
To use it in a playbook, specify: cisco.iosxr.iosxr_bgp_neighbor_address_family
.
New in version 2.0.0: of cisco.iosxr
Synopsis
This module configures and manages the attributes of BGP global on Cisco IOS-XR platforms.
Parameters
Parameter |
Comments |
---|---|
BGP neighbor address family configurations. |
|
Autonomous system number. |
|
A list of BGP neighbor address family configurations. |
|
Enable address family and enter its config mode |
|
address family. Choices:
|
|
AIGP attribute |
|
Ignore AIGP attribute. Choices:
|
|
send AIGP attribute. Choices:
|
|
send med options. |
|
disable Send AIGP value in MED. Choices:
|
|
set Send AIGP value in MED. Choices:
|
|
Set AIGP attribute. Choices:
|
|
Allow as-path with my AS present in it. |
|
set allowas_in Choices:
|
|
Number of occurences of AS number 1-10. |
|
Override matching AS-number while sending update |
|
Prevent as-override from being inherited from the parent. Choices:
|
|
set as_override Choices:
|
|
Change default route selection criteria.Allow BGP origin-AS knobs. Choices:
|
|
Advertise address prefix ORF capability to this neighbor. Choices:
|
|
Originate default route to this neighbor. |
|
Prevent default-originate from being inherited from the parent. Choices:
|
|
Route policy to specify criteria to originate default |
|
set default route. Choices:
|
|
Enable long lived graceful restart support. |
|
Treat neighbor as LLGR capable. Choices:
|
|
Maximum time to wait before purging long-lived stale routes. |
|
max accept time |
|
max send time |
|
Maximum number of prefixes to accept from this peer. |
|
Discard extra paths when limit is exceeded. Choices:
|
|
maximum no. of prefix limit.<1-4294967295. |
|
Restart time interval. |
|
hreshold value (%) at which to generate a warning msg <1-100>. |
|
Only give warning message when limit is exceeded. Choices:
|
|
Paths from this neighbor is eligible for multipath. Choices:
|
|
Disable the next hop calculation for this neighbor. |
|
Prevent next_hop_self from being inherited from the parent. Choices:
|
|
set next hop self. Choices:
|
|
Disable the next hop calculation for this neighbor. |
|
Prevent next_hop_unchanged from being inherited from the parent. Choices:
|
|
Do not overwrite nexthop before advertising multipaths. Choices:
|
|
set next hop unchanged. Choices:
|
|
Configure optimal-route-reflection group. |
|
Specify ORF and inbound filtering criteria.’ |
|
BGP origin-AS knobs. |
|
BGP origin-AS validation knobs. |
|
Disable RPKI origin-AS validation. Choices:
|
|
Remove private AS number from outbound updates. |
|
remove only if all ASes in the path are private. Choices:
|
|
Remove private AS number from inbound updates. Choices:
|
|
Prevent remove-private-AS from being inherited from the parent. Choices:
|
|
set remove private As. Choices:
|
|
Apply route policy to neighbor. |
|
Apply route policy to inbound routes. |
|
Apply route policy to outbound routes. |
|
Configure a neighbor as Route Reflector client. |
|
Prevent route-reflector-client from being inherited from the parent. Choices:
|
|
set route-reflector-client. Choices:
|
|
Address Family modifier Choices:
|
|
Send community attribute to this external neighbor. |
|
Prevent send_community_ebgp from being inherited from the parent. Choices:
|
|
set send_community_ebgp. Choices:
|
|
Allow the g-shut community to be sent to this external neighbor. |
|
Prevent send_community_gshut_ebgp from being inherited from the parent. Choices:
|
|
set send_community_gshut_ebgp. Choices:
|
|
Send extended community attribute to this external neighbor. |
|
Prevent send_extended_community_ebgp from being inherited from the parent. Choices:
|
|
set send_extended_community_ebgp. Choices:
|
|
Send multicast attributes to this neighbor . |
|
Disable send multicast attributes. Choices:
|
|
set send_multicast_attributes. Choices:
|
|
Per neighbor soft reconfiguration. |
|
inbound soft reconfiguration |
|
Allow inbound soft reconfiguration for this neighbor. Always use soft reconfig, even if route refresh is supported. Choices:
|
|
Prevent soft_reconfiguration from being inherited from the parent. Choices:
|
|
set inbound Choices:
|
|
Flowspec Validation for this neighbor. |
|
disable validation. Choices:
|
|
Flowspec Redirect nexthop Validation. Choices:
|
|
set validation. Choices:
|
|
Set default weight for routes from this neighbor. |
|
Neighbor router address. |
|
Configure BGP neighbor afin a VRF. |
|
A list of BGP neighbor address family configurations. |
|
Enable address family and enter its config mode |
|
address family. Choices:
|
|
AIGP attribute |
|
Ignore AIGP attribute. Choices:
|
|
send AIGP attribute. Choices:
|
|
send med options. |
|
disable Send AIGP value in MED. Choices:
|
|
set Send AIGP value in MED. Choices:
|
|
Set AIGP attribute. Choices:
|
|
Allow as-path with my AS present in it. |
|
set allowas_in Choices:
|
|
Number of occurences of AS number 1-10. |
|
Override matching AS-number while sending update |
|
Prevent as-override from being inherited from the parent. Choices:
|
|
set as_override Choices:
|
|
Advertise address prefix ORF capability to this neighbor. Choices:
|
|
Originate default route to this neighbor. |
|
Prevent default-originate from being inherited from the parent. Choices:
|
|
Route policy to specify criteria to originate default |
|
set default route. Choices:
|
|
Enable long lived graceful restart support. |
|
Treat neighbor as LLGR capable. Choices:
|
|
Maximum time to wait before purging long-lived stale routes. |
|
max accept time |
|
max send time |
|
Maximum number of prefixes to accept from this peer. |
|
Discard extra paths when limit is exceeded. Choices:
|
|
maximum no. of prefix limit.<1-4294967295. |
|
Restart time interval. |
|
hreshold value (%) at which to generate a warning msg <1-100>. |
|
Only give warning message when limit is exceeded. Choices:
|
|
Paths from this neighbor is eligible for multipath. Choices:
|
|
Disable the next hop calculation for this neighbor. |
|
Prevent next_hop_self from being inherited from the parent. Choices:
|
|
set next hop self. Choices:
|
|
Disable the next hop calculation for this neighbor. |
|
Prevent next_hop_unchanged from being inherited from the parent. Choices:
|
|
Do not overwrite nexthop before advertising multipaths. Choices:
|
|
set next hop unchanged. Choices:
|
|
Configure optimal-route-reflection group. |
|
Specify ORF and inbound filtering criteria.’ |
|
Remove private AS number from outbound updates. |
|
remove only if all ASes in the path are private. Choices:
|
|
Remove private AS number from inbound updates. Choices:
|
|
Prevent remove-private-AS from being inherited from the parent. Choices:
|
|
set remove private As. Choices:
|
|
Apply route policy to neighbor. |
|
Apply route policy to inbound routes. |
|
Apply route policy to outbound routes. |
|
Configure a neighbor as Route Reflector client. |
|
Prevent route-reflector-client from being inherited from the parent. Choices:
|
|
set route-reflector-client. Choices:
|
|
Address Family modifier Choices:
|
|
Send community attribute to this external neighbor. |
|
Prevent send_community_ebgp from being inherited from the parent. Choices:
|
|
set send_community_ebgp. Choices:
|
|
Allow the g-shut community to be sent to this external neighbor. |
|
Prevent send_community_gshut_ebgp from being inherited from the parent. Choices:
|
|
set send_community_gshut_ebgp. Choices:
|
|
Send extended community attribute to this external neighbor. |
|
Prevent send_extended_community_ebgp from being inherited from the parent. Choices:
|
|
set send_extended_community_ebgp. Choices:
|
|
Site-of-Origin extended community associated with the neighbor. |
|
Per neighbor soft reconfiguration. |
|
inbound soft reconfiguration |
|
Allow inbound soft reconfiguration for this neighbor. Always use soft reconfig, even if route refresh is supported. Choices:
|
|
Prevent soft_reconfiguration from being inherited from the parent. Choices:
|
|
set inbound Choices:
|
|
Flowspec Validation for this neighbor. |
|
disable validation. Choices:
|
|
Flowspec Redirect nexthop Validation. Choices:
|
|
set validation. Choices:
|
|
Set default weight for routes from this neighbor. |
|
Neighbor router address. |
|
VRF name. |
|
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 |
|
The state the configuration should be left in. Choices:
|
Examples
# Using merged
# Before state:
# -------------
# RP/0/0/CPU0:iosxr-02#show running-config router bgp
# Sat Feb 20 03:49:43.618 UTC
# router bgp 65536
# bgp router-id 192.0.2.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# neighbor 192.0.2.3
# remote-as 65538
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
- name: Merge the provided configuration with the existing running configuration
cisco.iosxr.iosxr_bgp_neighbor_address_family:
state: merged
config:
as_number: 65536
neighbors:
- neighbor_address: 192.0.2.2
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
weight: 5
- neighbor_address: 192.0.2.3
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
weight: 4
vrfs:
- vrf: vrf1
neighbors:
- neighbor_address: 192.0.2.4
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
capability_orf_prefix: both
- vrf: vrf2
neighbors:
- neighbor_address: 192.0.2.5
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
capability_orf_prefix: both
# Task output
# -------------
# commands:
# - router bgp 65536
# - neighbor 192.0.2.2
# - address-family ipv4 unicast
# - default-originate
# - multipath
# - weight 5
# - neighbor 192.0.2.3
# - address-family ipv4 unicast
# - default-originate
# - multipath
# - weight 4
# - vrf vrf1
# - neighbor 192.0.2.4
# - address-family ipv4 unicast
# - capability orf prefix both
# - default-originate
# - multipath
# - vrf vrf2
# - neighbor 192.0.2.5
# - address-family ipv4 unicast
# - capability orf prefix both
# - default-originate
# - multipath
#
#
# after:
# as_number: 65536
# neighbors:
# - neighbor_address: 192.0.2.2
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 5
# - neighbor_address: 192.0.2.3
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 4
# vrfs:
# - vrf: vrf1
# neighbors:
# - neighbor_address: 192.0.2.4
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
# - vrf: vrf2
# neighbors:
# - neighbor_address: 192.0.2.5
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
#
#
# After state:
# -------------
# RP/0/0/CPU0:iosxr-02#show running-config router bgp
# Sat Feb 20 03:49:43.618 UTC
# router bgp 65536
# bgp router-id 192.0.1.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# neighbor 1.1.1.2
# remote-as 65538
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
#
#
# Using delete
# Before state:
# -------------
#
# RP/0/0/CPU0:iosxr-02#show running-config router bgp
# Sat Feb 20 03:49:43.618 UTC
# router bgp 65536
# bgp router-id 192.0.1.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# neighbor 192.0.2.3
# remote-as 65538
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
- name: Delete the provided configuration
cisco.iosxr.iosxr_bgp_neighbor_address_family:
state: deleted
config:
as_number: 65536
neighbors:
- neighbor_address: 192.0.2.2
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
weight: 5
# Task output
# -------------
#
# commands:
# - router bgp 65536
# - neighbor 192.0.2.2
# - no address-family ipv4 unicast
#
#
# after:
# as_number: 65536
# neighbors:
# - neighbor_address: 192.0.2.3
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 4
# vrfs:
# - vrf: vrf1
# neighbors:
# - neighbor_address: 192.0.2.4
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
# - neighbor_address: 192.0.2.5
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
#
#
# Using Replaced
# Before state:
# -------------
#
# RP/0/0/CPU0:iosxr-02#show running-config router bgp
# Sat Feb 20 03:49:43.618 UTC
# router bgp 65536
# bgp router-id 192.0.1.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# neighbor 192.0.2.3
# remote-as 65538
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
- name: Replace the provided configuration with the existing running configuration
cisco.iosxr.iosxr_bgp_neighbor_address_family:
state: replaced
config:
as_number: 65536
neighbors:
- neighbor_address: 192.0.2.2
address_family:
- afi: "ipv4"
safi: "unicast"
default_originate:
set: true
weight: 4
# Task output
# -------------
# commands:
# - router bgp 65536
# - neighbor 192.0.2.2
# - address-family ipv4 unicast
# - no multipath
# - weight 4
#
# after:
# as_number: 65536
# neighbors:
# - neighbor_address: 192.0.2.2
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 4
# - neighbor_address: 192.0.2.3
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 5
# vrfs:
# - vrf: vrf1
# neighbors:
# - neighbor_address: 192.0.2.4
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
# - neighbor_address: 192.0.2.5
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
#
# After state:
# -------------
# Nexus9000v# show running-config router bgp
# router bgp 65536
# bgp router-id 192.0.1.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# address-family ipv4 unicast
# multipath
# weight 4
# default-originate
# neighbor 192.0.2.3
# remote-as 65538
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
#
#
# Using overridden
# Before state:
# -------------
# RP/0/0/CPU0:iosxr-02#show running-config router bgp
# Sat Feb 20 03:49:43.618 UTC
# router bgp 65536
# bgp router-id 192.0.1.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# neighbor 192.0.2.3
# remote-as 65538
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
- name: override the provided configuration
cisco.iosxr.iosxr_bgp_neighbor_address_family:
state: overridden
config:
as_number: 65536
neighbors:
- neighbor_address: 192.0.2.2
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
weight: 5
# Task output
# -------------
#
# commands:
# - router bgp 65536
# - neighbor 192.0.2.3
# - no address-family ipv4 unicast
# - vrf vrf1
# - neighbor 192.0.2.4
# - no address-family ipv4 unicast
# - vrf vrf1
# - neighbor 192.0.2.5
# - no address-family ipv4 unicast
#
#
#
# after:
# as_number: 65536
# neighbors:
# - neighbor_address: 192.0.2.2
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 5
#
# After state:
# -------------
# RP/0/0/CPU0:iosxr-02#show running-config router bgp
# Sat Feb 20 03:49:43.618 UTC
# router bgp 65536
# bgp router-id 192.0.1.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
#
#
#
# Using rendered
# Before state:
# -------------
# RP/0/0/CPU0:iosxr-02#show running-config router bgp
# Sat Feb 20 03:49:43.618 UTC
# router bgp 65536
# bgp router-id 192.0.2.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# neighbor 192.0.2.3
# remote-as 65538
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
- name: Render platform specific configuration lines with state rendered (without connecting to the device)
cisco.iosxr.iosxr_bgp_neighbor_address_family:
state: rendered
config:
as_number: 65536
neighbors:
- neighbor_address: 192.0.2.2
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
weight: 5
- neighbor_address: 192.0.2.3
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
weight: 4
vrfs:
- vrf: vrf1
neighbors:
- neighbor_address: 192.0.2.4
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
capability_orf_prefix: both
- vrf: vrf2
neighbors:
- neighbor_address: 192.0.2.5
address_family:
- afi: "ipv4"
safi: "unicast"
multipath: true
default_originate:
set: true
capability_orf_prefix: both
# Task output
# -------------
# commands:
# - router bgp 65536
# - neighbor 192.0.2.2
# - address-family ipv4 unicast
# - default-originate
# - multipath
# - weight 5
# - neighbor 192.0.2.3
# - address-family ipv4 unicast
# - default-originate
# - multipath
# - weight 4
# - vrf vrf1
# - neighbor 192.0.2.4
# - address-family ipv4 unicast
# - capability orf prefix both
# - default-originate
# - multipath
# - vrf vrf2
# - neighbor 192.0.2.5
# - address-family ipv4 unicast
# - capability orf prefix both
# - default-originate
# - multipath
#
# Using parsed
#
#parsed.cfg
#------------
# router bgp 65536
# bgp router-id 192.0.1.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# neighbor 1.1.1.2
# remote-as 65538
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
- name: Parse externally provided BGP neighbor AF config
cisco.iosxr.iosxr_bgp_neighbor_address_family:
running_config: "{{ lookup('file', 'parsed.cfg') }}"
state: parsed
# Task output (redacted)
# -----------------------
# parsed:
# as_number: 65536
# neighbors:
# - neighbor_address: 192.0.2.2
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 5
# - neighbor_address: 192.0.2.3
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 4
# vrfs:
# - vrf: vrf1
# neighbors:
# - neighbor_address: 192.0.2.4
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
# - vrf: vrf2
# neighbors:
# - neighbor_address: 192.0.2.5
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
#
#
#Using Gathered
#-----------------
# Before state state:
# -------------
# RP/0/0/CPU0:iosxr-02#show running-config router bgp
# Sat Feb 20 03:49:43.618 UTC
# router bgp 65536
# bgp router-id 192.0.1.1
# address-family ipv4 unicast
# address-family vpnv4 unicast
# neighbor 192.0.2.2
# remote-as 65537
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# neighbor 1.1.1.2
# remote-as 65538
# address-family ipv4 unicast
# multipath
# weight 5
# default-originate
# vrf vrf1
# rd auto
# neighbor 192.0.2.4
# remote-as 65539
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
# vrf vrf2
# rd auto
# neighbor 192.0.2.5
# remote-as 65540
# address-family ipv4 unicast
# multipath
# capability orf prefix both
# default-originate
#
#
#
- name: Gathered the provided configuration with the existing running configuration
cisco.iosxr.iosxr_bgp_neighbor_address_family:
config:
state: gathered
# Task output
# -----------------------
# gathered:
# as_number: 65536
# neighbors:
# - neighbor_address: 192.0.2.2
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 5
# - neighbor_address: 192.0.2.3
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# weight: 4
# vrfs:
# - vrf: vrf1
# neighbors:
# - neighbor_address: 192.0.2.4
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
# - vrf: vrf2
# neighbors:
# - neighbor_address: 192.0.2.5
# address_family:
# - afi: "ipv4"
# safi: "unicast"
# multipath: true
# default_originate:
# set: true
# capability_orf_prefix: both
#
Authors
Ashwini Mhatre (@amhatre)