cisco.mso.ndo_l3out_bgp_peer module – Manage L3Out BGP Peer on Cisco Nexus Dashboard Orchestrator (NDO).
Note
This module is part of the cisco.mso collection (version 2.11.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.mso
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cisco.mso.ndo_l3out_bgp_peer
.
New in cisco.mso 2.11.0
Synopsis
Manage L3Out BGP Peer on Cisco Nexus Dashboard Orchestrator (NDO).
This module is only supported on ND v3.1 (NDO v4.3) and later.
Requirements
The below requirements are needed on the host that executes this module.
Multi Site Orchestrator v2.1 or newer
Parameters
Parameter |
Comments |
---|---|
The address family controls for the BGP peer. |
|
The multicast address flag of the address family. Choices:
|
|
Use Use Choices:
|
|
The unicast address flag of the address family. Choices:
|
|
The administrative state of the L3Out BGP Peer. Defaults to Choices:
|
|
The allowed self-AS count of the L3Out BGP Peer. Defaults to 3 when unset during creation. The value must be between 1 and 10. |
|
The authentication password of the L3Out BGP Peer. |
|
The BGP control settings for the peer. |
|
The allow self AS flag of the BGP control. Choices:
|
|
The disable peer AS check flag of the BGP control. Choices:
|
|
The set next hop to self flag of the BGP control. Choices:
|
|
The override AS flag of the BGP control. Choices:
|
|
The send community flag of the BGP control. Choices:
|
|
The send domain path flag of the BGP control. Choices:
|
|
The send extended community flag of the BGP control. Choices:
|
|
Use Use Choices:
|
|
The TTL for eBGP multi-hop of the L3Out BGP Peer. Defaults to 1 when unset during creation. The value must be between 1 and 255. |
|
The name of the export route map. Providing an empty dictionary will remove the This parameter can be used instead of |
|
The name of the export route map. |
|
The template associated with the export route map. This parameter or |
|
The template ID associated with the the export route map. This parameter or |
|
The UUID of the export route map. Providing an empty string will remove the This parameter can be used instead of |
|
IP Address or hostname of the ACI Multi Site Orchestrator host. If the value is not specified in the task, the value of environment variable |
|
The name of the import route map. Providing an empty dictionary will remove the This parameter can be used instead of |
|
The name of the import route map. |
|
The template associated with the import route map. This parameter or |
|
The template ID associated with the the import route map. This parameter or |
|
The UUID of the import route map. Providing an empty string will remove the This parameter can be used instead of |
|
The IPv4 address of the L3Out BGP Peer. Providing an empty string will remove the |
|
The IPv6 address of the L3Out BGP Peer. Providing an empty string will remove the |
|
The name of the L3Out. This parameter or |
|
The UUID of the L3Out. This parameter or |
|
The local autonomous system number (ASN) of the L3Out BGP Peer. The value must be between 1 and 4294967295. Providing an empty string will remove the |
|
The configuration for local ASN of the L3Out BGP Peer. Choices:
|
|
The login domain name to use for authentication. The default value is Local. If the value is not specified in the task, the value of environment variable When using a HTTPAPI connection plugin the inventory variable |
|
The name of the Node Group Policy. |
|
Influence the output of this MSO module.
If the value is not specified in the task, the value of environment variable Choices:
|
|
The password to use for authentication. If the value is not specified in the task, the value of environment variables |
|
The Peer control settings for the BGP peer. |
|
The Enable Bidirectional Forwarding Detection (BFD) flag of the Peer control. Choices:
|
|
The disable peer connected check flag of the Peer control. Choices:
|
|
Use Use Choices:
|
|
The name of the peer prefix. Providing an empty dictionary will remove the This parameter can be used instead of |
|
The name of the peer prefix. |
|
The template associated with the peer prefix. This parameter or |
|
The template ID associated with the the peer prefix. This parameter or |
|
The UUID of the peer prefix. Providing an empty string will remove the This parameter can be used instead of |
|
Port number to be used for the REST connection. The default value depends on parameter `use_ssl`. If the value is not specified in the task, the value of environment variable |
|
The private AS control settings for the BGP peer. |
|
The remove all flag of the private AS numbers. Choices:
|
|
The replace private AS with local AS flag of the private AS control. Choices:
|
|
Use Use Choices:
|
|
The remote autonomous system number (ASN) of the L3Out BGP Peer. The value must be between 1 and 4294967295. Providing an empty string will remove the |
|
The site of origin for the L3Out BGP Peer. The value must adhere to the pattern “extended:as2-nn2:1000:65534”. |
|
Use Use Use Choices:
|
|
The name of the L3Out template. This parameter or |
|
The ID of the L3Out template. This parameter or |
|
The socket level timeout in seconds. The default value is 30 seconds. If the value is not specified in the task, the value of environment variable |
|
If If the value is not specified in the task, the value of environment variable The default is Choices:
|
|
If If the value is not specified in the task, the value of environment variable When using a HTTPAPI connection plugin the inventory variable The default is Choices:
|
|
The username to use for authentication. If the value is not specified in the task, the value of environment variables |
|
If This should only set to If the value is not specified in the task, the value of environment variable The default is Choices:
|
|
The weight of the L3Out BGP Peer. The value must be between 1 and 65535. Providing an empty string will remove the |
Notes
Note
The
template
must exist before using this module in your playbook. Use cisco.mso.ndo_template to create the L3Out template.The
l3out
must exist before using this module in your playbook. Use cisco.mso.ndo_l3out_template to create the L3Out.The
node_group
must exist before using this module in your playbook. Use cisco.mso.ndo_l3out_node_group_policy to create the L3Out Node Group Policy.The
peer_prefix
must exist before using it with this module in your playbook. Use cisco.mso.ndo_tenant_bgp_peer_prefix_policy to create the BGP Peer Prefix Policy.This module was written to support Multi Site Orchestrator v2.1 or newer. Some or all functionality may not work on earlier versions.
See Also
See also
- cisco.mso.ndo_template
Manage Templates on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_template
Manage L3Outs on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_node_group_policy
Manage L3Out Node Group Policy on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_tenant_bgp_peer_prefix_policy
Manage BGP Peer Prefix Policies in Tenant Policy Templates on Cisco Nexus Dashboard Orchestrator (NDO).
Examples
- name: Create an L3Out BGP Peer with minimum configuration
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
ipv4_address: "1.1.1.1"
ipv6_address: "1::8/16"
auth_password: 123
state: present
- name: Update an L3Out BGP Peer with full configuration
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
ipv4_address: "1.1.1.1"
ipv6_address: "1::8/16"
remote_asn: 2
admin_state: enabled
import_route_map:
name: ans_route_map
template: ansible_test_policy
export_route_map:
name: ans_route_map_2
template: ansible_test_policy
peer_prefix:
name: ansible_test_bgp_peer_prefix_policy
template: ansible_test_policy
ebgp_multi_hop_ttl: 1
auth_password: 123
weight: 2
site_of_origin: "extended:as2-nn2:1000:65534"
allowed_self_as_count: 3
local_asn_config: replace_as
local_asn: 1
bgp_controls:
allow_self_as: true
override_as: true
disabled_peer_as_check: true
next_hop_self: true
send_community: true
send_extended_community: true
send_domain_path: true
peer_controls:
bfd: true
disable_peer_connected_check: true
address_families:
multicast: true
unicast: true
private_as_controls:
remove_all: true
replace_with_local_as: true
state: present
- name: Query an L3Out BGP Peer with IPv4 and IPv6 addresses
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
ipv4_address: "1.1.1.1"
ipv6_address: "1::8/16"
state: query
register: query_with_ipv4_and_ipv6
- name: Query an L3Out BGP Peer with IPv4
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
ipv4_address: "1.1.1.1"
state: query
register: query_with_ipv4
- name: Query an L3Out BGP Peer with IPv6
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
ipv6_address: "1::8/16"
state: query
register: query_with_ipv6
- name: Query all L3Out BGP Peer
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
state: query
register: query_all
- name: Remove an L3Out BGP Peer with IPv4 and IPv6 addresses
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
ipv4_address: "1.1.1.1"
ipv6_address: "1::8/16"
state: absent
- name: Remove an L3Out BGP Peer with IPv4
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
ipv4_address: "1.1.1.1"
state: absent
- name: Remove an L3Out BGP Peer with IPv6
cisco.mso.ndo_l3out_bgp_peer:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_group: node_group_policy_1
ipv6_address: "1::8/16"
state: absent