cisco.mso.ndo_l3out_interface_routing_policy module – Manage L3Out Interface 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_interface_routing_policy.
Synopsis
- Manage L3Out Interface 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 Bidirectional Forwarding Detection (BFD) multi-hop configuration of the L3Out Interface Routing Policy. | |
| The administrative state of the BFD MultiHop Settings. Defaults to  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 BFD Settings of the L3Out Interface Routing Policy. | |
| The administrative state of the BFD Settings. Defaults to  Choices: 
 | |
| The detection multiplier of the BFD Settings. Defaults to 3 when unset during creation. The value must be between 1 and 50. | |
| The echo administrative state of the BFD Settings. Defaults to  Choices: 
 | |
| The echo receive interval in microseconds of the BFD Settings Defaults to 50 when unset during creation. The value must be between 50 and 999. | |
| The interface control of the BFD Settings. Defaults to  Choices: 
 | |
| The minimum receive interval in microseconds of the BFD Settings. Defaults to 50 when unset during creation. The value must be between 50 and 999. | |
| The minimum transmit interval in microseconds of the BFD Settings. Defaults to 50 when unset during creation. The value must be between 50 and 999. | |
| Use  Use  Choices: 
 | |
| The description of the L3Out Interface 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 Interface Routing Policy. | |
| The Open Shortest Path First (OSPF) Interface Settings of the L3Out Interface Routing Policy. | |
| The advertise subnet of the OSPF Interface Settings. Defaults to  Choices: 
 | |
| Enables or disables BFD in the OSPF Interface Settings. Defaults to  Choices: 
 | |
| The cost of the OSPF Interface Settings. Defaults to 0 when unset during creation. The value must be between 0 and 65535. | |
| The dead interval in seconds of the OSPF Interface Settings. Defaults to 40 when unset during creation. The value must be between 1 and 65535. | |
| The hello interval in seconds of the OSPF Interface Settings. Defaults to 10 when unset during creation. The value must be between 1 and 65535. | |
| Enables or disables ignoring the Maximum Transmission Unit (MTU) in the OSPF Interface Settings. Defaults to  Choices: 
 | |
| The network type of the OSPF Interface Settings. Defaults to  Choices: 
 | |
| Enables or disables passive participation in the OSPF Interface Settings. Defaults to  Choices: 
 | |
| The priority of the OSPF Interface Settings. Defaults to 1 when unset during creation. The value must be between 0 and 255. | |
| The retransmit interval in seconds of the OSPF Interface Settings. Defaults to 5 when unset during creation. The value must be between 1 and 65535. | |
| Use  Use  Choices: 
 | |
| The transmit delay in seconds of the OSPF Interface Settings. Defaults to 1 when unset during creation. The value must be between 1 and 450. | |
| 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 Interface 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 Interface Routing Policy with default values
  cisco.mso.ndo_l3out_interface_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    name: irp_1
    bfd_settings:
      state: enabled
    bfd_multi_hop_settings:
      state: enabled
    state: present
  register: irp_1_present
- name: Update an existing L3Out Interface Routing Policy with UUID
  cisco.mso.ndo_l3out_interface_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    uuid: "{{ irp_1_present.current.uuid }}"
    name: irp_1_updated
    bfd_multi_hop_settings:
      admin_state: disabled
      detection_multiplier: 10
      min_receive_interval: 255
      min_transmit_interval: 255
    bfd_settings:
      admin_state: disabled
      detection_multiplier: 10
      min_receive_interval: 266
      min_transmit_interval: 266
      echo_receive_interval: 60
      echo_admin_state: disabled
      interface_control: enabled
    ospf_interface_settings:
      network_type: point_to_point
      priority: 10
      cost_of_interface: 100
      advertise_subnet: enabled
      bfd: enabled
      mtu_ignore: enabled
      passive_participation: enabled
      hello_interval: 20
      dead_interval: 30
      retransmit_interval: 20
      transmit_delay: 10
    state: present
  register: irp_1_present
- name: Clear an existing L3Out Interface Routing Policy BFD and OSPF interface settings
  cisco.mso.ndo_l3out_interface_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    uuid: "{{ irp_1_present.current.uuid }}"
    bfd_settings:
      state: disabled
    ospf_interface_settings:
      state: disabled
    state: present
- name: Query an L3Out Interface Routing Policy with name
  cisco.mso.ndo_l3out_interface_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    name: irp_1_updated
    state: query
  register: query_with_name
- name: Query an L3Out Interface Routing Policy with UUID
  cisco.mso.ndo_l3out_interface_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    uuid: "{{ irp_1_present.current.uuid }}"
    state: query
  register: query_with_uuid
- name: Query all L3Out Interface Routing Policies
  cisco.mso.ndo_l3out_interface_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    state: query
  register: query_all
- name: Delete an L3Out Interface Routing Policy
  cisco.mso.ndo_l3out_interface_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    name: irp_1_updated
    state: absent
- name: Delete an L3Out Interface Routing Policy using UUID
  cisco.mso.ndo_l3out_interface_routing_policy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    template: ansible_tenant_template
    uuid: "{{ irp_1_present.current.uuid }}"
    state: absent
