I am working on an ansible playbook that will do the following:
Set the interface description, create a Access Port Selector for the proper port and associate it with a Interface Policy Group and then deploy a static port with the proper untagged VLAN.
User input determines Leaf/Inteface/Description but what I am struggling with is being able to pull the the App and Epg while supplying the VLAN.
We use the cli command "show vlan-domain name DOMAIN_NAME vlan VLAN" to get this information as it output the Tenant/App/Epg, is there any module that can provide this information or even a rest call?
At this point if I statically define those values the playbook works but I would prefer that it be able to query for this information by simply providing the vlan while executing the playbook.
Thanks,
Joe