# unsupported parameter for ios\_l2\_interfaces

**URL:** <https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918>\
**Category:** Ansible Project\
**Created:** [July 28, 2022, 5:29pm UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918 "2022-07-28T17:29:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hossein\_Malakooti](https://avatars.discourse-cdn.com/v4/letter/h/ee59a6/32.png) [@Hossein\_Malakooti](https://forum.ansible.com/u/Hossein_Malakooti)\
**Post date:** [July 28, 2022, 5:29pm UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/1 "2022-07-28T17:29:47Z")

</div>

Hello All  
I am getting unsupported parameter for ios\_l2\_interfaces error when I am trying to run a simple playbook to change VLAN on an interface . I’ve attached my playbook , inventory and anssible.cfg plus -vvv result . other gather fact playbooks would run fine but not this one .

it is much appreciate if anyone can help me fix this.

---

<div class="post-metadata">

**Author:** ![KB-perByte](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kb-perbyte/32/541_2.png) [@KB-perByte](https://forum.ansible.com/u/KB-perByte)\
**Post date:** [July 29, 2022, 6:04am UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/2 "2022-07-29T06:04:28Z")

</div>

Hi,

Can you please check the collection version that you are using?  
I tried reproducing the same on my end. And it works fine for me.

Regards,  
Sagar Paul

---

<div class="post-metadata">

**Author:** ![Hossein\_Malakooti](https://avatars.discourse-cdn.com/v4/letter/h/ee59a6/32.png) [@Hossein\_Malakooti](https://forum.ansible.com/u/Hossein_Malakooti)\
**Post date:** [July 29, 2022, 3:37pm UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/3 "2022-07-29T15:37:06Z")

</div>

Hi Sagar  
Thanks for your prompt reply , the test I have conducted was on Switch Cisco 2960X when I change the host to a Cisco 9200 switch it surprisingly works

and I am confused now , how would different switch types give me different results ?

---

<div class="post-metadata">

**Author:** ![KB-perByte](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kb-perbyte/32/541_2.png) [@KB-perByte](https://forum.ansible.com/u/KB-perByte)\
**Post date:** [July 30, 2022, 4:43am UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/4 "2022-07-30T04:43:01Z")

</div>

Hi Hossein,

Would you be able to help me with the collection version you are using and the cisco ios version that both the devices have? Note the currently supported version of the collection is 15.6.x we are planning to upgrade to 17.4.x soon.

Regards,  
Sagar Paul

---

<div class="post-metadata">

**Author:** ![Hossein\_Malakooti](https://avatars.discourse-cdn.com/v4/letter/h/ee59a6/32.png) [@Hossein\_Malakooti](https://forum.ansible.com/u/Hossein_Malakooti)\
**Post date:** [July 31, 2022, 2:02am UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/5 "2022-07-31T02:02:47Z")

</div>

Hi PAul

Sure , here is the 9200 version

Cisco IOS XE Software, Version 17.03.04b  
Cisco IOS Software [Amsterdam], Catalyst L3 Switch Software (CAT9K\_LITE\_IOSXE),

and here is the 2960X version  
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(7)E5

I’m abit new to ansible where can I find the Collector version ?

---

<div class="post-metadata">

**Author:** ![KB-perByte](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kb-perbyte/32/541_2.png) [@KB-perByte](https://forum.ansible.com/u/KB-perByte)\
**Post date:** [August 1, 2022, 6:31am UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/6 "2022-08-01T06:31:10Z")

</div>

Hi Hossein,

Thanks for sharing the details.  
You may use “ansible-galaxy collection list .” to figure out the collection version you are using.  
You may raise an issue [here](https://github.com/ansible-collections/cisco.ios/issues) for me to track it better.

Regards,  
Sagar Paul

---

<div class="post-metadata">

**Author:** ![Hossein\_Malakooti](https://avatars.discourse-cdn.com/v4/letter/h/ee59a6/32.png) [@Hossein\_Malakooti](https://forum.ansible.com/u/Hossein_Malakooti)\
**Post date:** [August 2, 2022, 1:30pm UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/7 "2022-08-02T13:30:09Z")

</div>

Hello

I’m using ansible 2.9 and this command does not work on this version

I think I need to upgrade it to 2.10

---

<div class="post-metadata">

**Author:** ![KB-perByte](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kb-perbyte/32/541_2.png) [@KB-perByte](https://forum.ansible.com/u/KB-perByte)\
**Post date:** [August 2, 2022, 1:46pm UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/8 "2022-08-02T13:46:31Z")

</div>

Hi Hossein,

So the issue you shared, doesn’t really have to do anything with the ansible-core version being used,  
would you be able to share the output of `ansible-galaxy collection list cisco.ios`  
That would help me triage your issue better.

Regards,  
Sagar Paul

---

<div class="post-metadata">

**Author:** ![Hossein\_Malakooti](https://avatars.discourse-cdn.com/v4/letter/h/ee59a6/32.png) [@Hossein\_Malakooti](https://forum.ansible.com/u/Hossein_Malakooti)\
**Post date:** [August 2, 2022, 1:58pm UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/9 "2022-08-02T13:58:27Z")

</div>

Hi Paul

I am using bellow python and ansible versions

python version = 2.7.5  
ansible 2.9.27

it looks like with the current setup ansible-galaxy collection command does not work for me please see below

[root@ansiblecontroller ~]# ansible-galaxy collection list cisco.ios  
usage: ansible-galaxy collection [-h] COLLECTION\_ACTION …  
ansible-galaxy collection: error: argument COLLECTION\_ACTION: invalid choice: u’list’ (choose from ‘init’, ‘build’, ‘publish’, ‘install’)

---

<div class="post-metadata">

**Author:** ![Jason](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jason/32/304_2.png) [@Jason](https://forum.ansible.com/u/Jason)\
**Post date:** [August 3, 2022, 2:07am UTC](https://forum.ansible.com/t/unsupported-parameter-for-ios-l2-interfaces/36918/10 "2022-08-03T02:07:05Z")

</div>

I have run into this issue before.

It has to do with how the module gets information from the show run

It is checking info by running:

Show running-configuration | section interface GigabitEthernet 2/0/25

My guess is if you run the command on the 2960 it will fail.
