CiscoDevNet / ansible-aci

Cisco ACI Ansible Collection
https://galaxy.ansible.com/cisco/aci
GNU General Public License v3.0
143 stars 97 forks source link

cisco.aci.aci_l3out_interface need EncapScope parameter added to set scope to VRF or "ctx" #536

Closed JuanBH255 closed 11 months ago

JuanBH255 commented 1 year ago

Community Note

Description

I am trying to configure an interface with the Encap Scope set to VRF or "ctx" but I do not see a parameter on Ansible docs to change this. It is always setting itself to Local. There's also no parameter to add Descriptions to interfaces.

Possible additional labels: new_module/new_plugin/documentation/feature ---> Encap Scope

New or Affected Module(s):

APIC version and APIC Platform

Collection versions

References

JuanBH255 commented 1 year ago

987f8583-c5fd-4b55-a851-eda67b74eaf6

JuanBH255 commented 1 year ago

At the moment I have to resort to using the ACI rest module.

  cisco.aci.aci_rest:
    host: "{{ ansible_host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    validate_certs: no
    path: "api/node/mo/uni/tn-{{ tenant['tenant_name']  }}/out-{{ l3_out['l3out_name'] }}/lnodep-{{ logic['logic_n_name'] }}/lifp-{{ lintf['logical_intf_name'] }}/rspathL3OutAtt-[topology/pod-1/protpaths-{{ ep['ep_node_id'] }}/pathep-[{{ ep['path_ep'] }}]].json"
    method: post
    content:
      l3extRsPathL3OutAtt:
        attributes:
          encap: "vlan-{{ ep['encap'] }}"
          ipv6Dad: "enabled"
          encapScope: "ctx"
          ifInstT: "ext-svi"
          mode: "{{ ep['mode'] }}"
          descr: ""
          mtu: "{{ ep['intf_mtu'] | default('inherit')}}"
          isMultiPodDirect: "no"
          autostate: "enabled"
          annotation: "orchestrator:ansible"