# Problems with NXOS Modules in Ansible 2.2

**URL:** <https://forum.ansible.com/t/problems-with-nxos-modules-in-ansible-2-2/22571>\
**Category:** Ansible Project\
**Created:** [September 16, 2016, 4:38pm UTC](https://forum.ansible.com/t/problems-with-nxos-modules-in-ansible-2-2/22571 "2016-09-16T16:38:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Carter](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Post date:** [September 16, 2016, 4:38pm UTC](https://forum.ansible.com/t/problems-with-nxos-modules-in-ansible-2-2/22571/1 "2016-09-16T16:38:07Z")

</div>

When I run:

- name: Configure the port channels for the VPCs  
nxos\_portchannel:  
provider: “{{ cli }}”  
group: 99  
members: [‘Ethernet1/1/1’]  
mode: ‘active’  
state: present

I get:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: ‘NetworkModule’ object has no attribute ‘configure’  
fatal: [192.133.148.128]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible\_X4FZEp/ansible\_module\_nxos\_portchannel.py", line 733, in \n main()\n File "/tmp/ansible\_X4FZEp/ansible\_module\_nxos\_portchannel.py", line 714, in main\n output = execute\_config\_command(cmds, module)\n File "/tmp/ansible\_X4FZEp/ansible\_module\_nxos\_portchannel.py", line 328, in execute\_config\_command\n output = module.configure(commands)\nAttributeError: ‘NetworkModule’ object has no attribute ‘configure’\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”}

It seems like I have some dependency problems, but I cannot figure them out. Anyone have any ideas?

Thanks,

Steven.

---

<div class="post-metadata">

**Author:** ![psprygada](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@psprygada](https://forum.ansible.com/u/psprygada)\
**Post date:** [September 16, 2016, 6:42pm UTC](https://forum.ansible.com/t/problems-with-nxos-modules-in-ansible-2-2/22571/2 "2016-09-16T18:42:57Z")

</div>

That looks like a bug in the module… would you mind filing an issue at [http://github.com/ansible/ansible-modules/core](http://github.com/ansible/ansible-modules/core) with this information so we can track it?

---

<div class="post-metadata">

**Author:** ![Steven\_Carter](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Post date:** [September 17, 2016, 5:02pm UTC](https://forum.ansible.com/t/problems-with-nxos-modules-in-ansible-2-2/22571/3 "2016-09-17T17:02:42Z")

</div>

I submitted the error for nxos\_portchannel and a similar error for nxos\_command.

Thanks,

Steven.
