# Register IOS ports based on port configurations

**URL:** <https://forum.ansible.com/t/register-ios-ports-based-on-port-configurations/34080>\
**Category:** Ansible Project\
**Created:** [October 21, 2020, 9:41pm UTC](https://forum.ansible.com/t/register-ios-ports-based-on-port-configurations/34080 "2020-10-21T21:41:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Lucht](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Post date:** [October 21, 2020, 9:41pm UTC](https://forum.ansible.com/t/register-ios-ports-based-on-port-configurations/34080/1 "2020-10-21T21:41:06Z")

</div>

I am working on a way to register interfaces to use as a variable based on the way the port is configured. For example I want all ports that are configured for a trunk or access vlan 10. I have not found a way to use the jinja2 script I have. The ansible script will go through and make a list of all the interfaces and show the configurations but that is where I am stuck. Any help would be appreciated.
