cisco.mso.ndo_l3out_node_routing_policy module – Manage L3Out Node Routing Policies 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_node_routing_policy.
Synopsis
- Manage L3Out Node Routing Policies 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 BGP Best Path Control of the L3Out Node Routing Policy. Providing an empty string will remove the  Choices: 
 | |
| The BFD MultiHop Settings configuration of the L3Out Node Routing Policy. | |
| The administrative state of the BFD MultiHop Settings. Defaults to enabled when unset during creation. Choices: 
 | |
| The detection multiplier of the BFD MultiHop Settings. Defaults to 3 when unset during creation. The value must be between 1 and 50. | |
| The minimum receive interval of the BFD MultiHop Settings. Defaults to 250 when unset during creation. The value must be between 250 and 999 microseconds. | |
| The minimum transmit interval of the BFD MultiHop Settings. Defaults to 250 when unset during creation. The value must be between 250 and 999 microseconds. | |
| Use  Use  Choices: 
 | |
| The BGP Node Settings configuration of the L3Out Node Routing Policy. | |
| The graceful restart helper of the BGP Node Settings. Defaults to enabled when unset during creation. Choices: 
 | |
| The hold interval of the BGP Node Settings. Defaults to 180 when unset during creation. The value must be 0 or between 3 and 3600 seconds. | |
| The keep alive interval of the BGP Node Settings. Defaults to 60 when unset during creation. The value must be between 0 and 3600 seconds. | |
| The max as limit of the BGP Node Settings. Defaults to 0 when unset during creation. The value must be between 0 and 2000. | |
| The stale interval of the BGP Node Settings. Defaults to 300 when unset during creation. The value must be between 1 and 3600 seconds. | |
| Use  Use  Choices: 
 | |
| The description of the L3Out Node Routing Policy. | |
| 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 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 L3Out Node Routing 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  | |
| 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  | |
| Use  Use  Use  Choices: 
 | |
| The name of the template. The template must be a Tenant Policy Template. | |
| 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  | |
| The UUID of the L3Out Node Routing Policy. This parameter is required when the  | |
| If  This should only set to  If the value is not specified in the task, the value of environment variable  The default is  Choices: 
 | 
Notes
Note
- The - templatemust exist before using this module in your playbook. Use cisco.mso.ndo_template to create the Tenant Policy Template.
- 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). 
Examples
- name: Create a new L3Out Node Routing Policy with empty bgp_node and bfd_multi_hop settings
  cisco.mso.ndo_l3out_node_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    name: nrp_1
    bfd_multi_hop_settings:
      state: enabled
    bgp_node_settings:
      state: enabled
    as_path_multipath_relax: disabled
    state: present
- name: Create a new L3Out Node Routing Policy with full config of bgp_node and bfd_multi_hop settings
  cisco.mso.ndo_l3out_node_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    name: nrp_2
    bfd_multi_hop_settings:
      admin_state: enabled
      detection_multiplier: 10
      min_receive_interval: 450
      min_transmit_interval: 550
    bgp_node_settings:
      graceful_restart_helper: enabled
      keep_alive_interval: 15
      hold_interval: 115
      stale_interval: 215
      max_as_limit: 25
    as_path_multipath_relax: disabled
    state: present
  register: nrp_2
- name: Update L3Out Node Routing Policy name and bgp_node_settings attributes
  cisco.mso.ndo_l3out_node_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    uuid: "{{ nrp_2.current.uuid }}"
    name: nrp_2_updated
    bgp_node_settings:
      graceful_restart_helper: disabled
      keep_alive_interval: 20
    state: present
- name: Query a L3Out Node Routing Policies with name
  cisco.mso.ndo_l3out_node_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    name: nrp_1
    state: query
  register: query_with_name
- name: Query a L3Out Node Routing Policies with UUID
  cisco.mso.ndo_l3out_node_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    uuid: "{{ query_with_name.current.uuid }}"
    state: query
  register: query_with_uuid
- name: Query all L3Out Node Routing Policies
  cisco.mso.ndo_l3out_node_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    state: query
  register: query_all
- name: Delete a L3Out Node Routing Policy
  cisco.mso.ndo_l3out_node_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    name: nrp_1
    state: absent
- name: Delete a L3Out Node Routing Policy using UUID
  cisco.mso.ndo_l3out_node_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    uuid: "{{ query_with_name.current.uuid }}"
    state: absent
