# Unable to bring fex ports up.!

**URL:** <https://forum.ansible.com/t/unable-to-bring-fex-ports-up/33672>\
**Category:** Ansible Developer\
**Created:** [August 25, 2020, 4:21pm UTC](https://forum.ansible.com/t/unable-to-bring-fex-ports-up/33672 "2020-08-25T16:21:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anirudh\_Pangri](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@Anirudh\_Pangri](https://forum.ansible.com/u/Anirudh_Pangri)\
**Post date:** [August 25, 2020, 4:21pm UTC](https://forum.ansible.com/t/unable-to-bring-fex-ports-up/33672/1 "2020-08-25T16:21:20Z")

</div>

I am trying this task:

- name: Turn the fex ports up  
loop: “{{ new\_fex }}”  
nxos\_interfaces:  
config:
- name: “{{ item }}”
- enabled: true  
state: replaced

Getting the following error:

failed: [target] (item=Eth148/1/2) =\> {“ansible\_loop\_var”: “item”, “changed”: false, “item”: “Eth148/1/2”, “msg”: “Unsupported parameters for (nxos\_interfaces) module: provider Supported parameters include: config, state”}

Any known quick fix to this one?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Nilashish\_Chakrabort](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Nilashish\_Chakrabort](https://forum.ansible.com/u/Nilashish_Chakrabort)\
**Post date:** [September 13, 2021, 6:57am UTC](https://forum.ansible.com/t/unable-to-bring-fex-ports-up/33672/2 "2021-09-13T06:57:24Z")

</div>

Hey Anirudh,

Related to: [https://github.com/ansible-collections/cisco.nxos/issues/236](https://github.com/ansible-collections/cisco.nxos/issues/236)

This might be because either (a) `ansible_network_os: cisco.nxos.nxos` or (b) `ansible_connection: ansible.netcommon.network_cli` is not set.

Also, it seems the task you shared isn’t leveraging the module correctly. The `config` key in the `nxos_interfaces` resource module accepts a list of dictionaries, hence, it is not required to loop through items (which is slower). Please have a look at the examples in the module documentation for more details.

Thanks!
