# Looping over l2\_interfaces only show the interface name

**URL:** <https://forum.ansible.com/t/looping-over-l2-interfaces-only-show-the-interface-name/36229>\
**Category:** Ansible Project\
**Created:** [January 20, 2022, 8:53pm UTC](https://forum.ansible.com/t/looping-over-l2-interfaces-only-show-the-interface-name/36229 "2022-01-20T20:53:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![L\_Jankok](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@L\_Jankok](https://forum.ansible.com/u/L_Jankok)\
**Post date:** [January 20, 2022, 8:53pm UTC](https://forum.ansible.com/t/looping-over-l2-interfaces-only-show-the-interface-name/36229/1 "2022-01-20T20:53:00Z")

</div>

Hi,

In the past when I have used ansible\_network\_resources.l2\_interfaces it provided me with a dictionary. But now I am getting a class type list variable instead of a dictionary (which is odd). Therefore I am missing all those values like item.access, item.trunk etc.

I know I am missing something here. Your help is much appreciated.

Below is the simple playbook I am using for a proof of concept.
