Unable to bring fex ports up.!

Skip to first unread message

Anirudh Pangri

Aug 25, 2020, 12:21:21 PM8/25/20
to Ansible Development
I am trying this task: 

- name: Turn the fex ports up
  loop: "{{ new_fex }}" 
    - 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. 

Nilashish Chakraborty

Sep 13, 2021, 2:57:39 AMSep 13
to Anirudh Pangri, Ansible Development
Hey Anirudh,

Related to: 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.


Nilashish Chakraborty
Senior Software Engineer, Ansible
Red Hat

You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/fa6ac159-cfea-4db2-8930-e5f5f1e48d5cn%40googlegroups.com.
Reply all
Reply to author
0 new messages