# Is the CISCO---  IOS\_STATIC\_ROUTE module working ok for you?

**URL:** <https://forum.ansible.com/t/is-the-cisco-ios-static-route-module-working-ok-for-you/25517>\
**Category:** Ansible Project\
**Created:** [September 19, 2017, 12:37am UTC](https://forum.ansible.com/t/is-the-cisco-ios-static-route-module-working-ok-for-you/25517 "2017-09-19T00:37:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeM](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@MikeM](https://forum.ansible.com/u/MikeM)\
**Post date:** [September 19, 2017, 12:37am UTC](https://forum.ansible.com/t/is-the-cisco-ios-static-route-module-working-ok-for-you/25517/1 "2017-09-19T00:37:38Z")

</div>

Hi All,

Having major problems with this module. Can’t get it to work + the Ansible Docs link appears incomplete on the main site.  
ie…things like…no reference to using it. ie. “Provider”

[http://docs.ansible.com/ansible/latest/ios\_static\_route\_module.html](http://docs.ansible.com/ansible/latest/ios_static_route_module.html)

##----ERRORS ----##

TASK [Configure Default Next Hop] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named ipaddress  
fatal: [10.99.4.118]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible\_KSy5yC/ansible\_module\_ios\_static\_route.py", line 105, in \n from ipaddress import ip\_network\nImportError: No module named ipaddress\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 0}

##-----PLAYBOOK USED-----##

---

<div class="post-metadata">

**Author:** ![ganeshrn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ganeshrn/32/1021_2.png) [@ganeshrn](https://forum.ansible.com/u/ganeshrn)\
**Post date:** [September 19, 2017, 5:05am UTC](https://forum.ansible.com/t/is-the-cisco-ios-static-route-module-working-ok-for-you/25517/2 "2017-09-19T05:05:28Z")

</div>

It seems Python `ipaddress` library required for `ios_static_module` is not installed in your environment.Can you please install it and retry.

Also, I think the error message should be properly handled in `ios_static_module` in case of prerequisite library is not

installed.

Can you please raise an issue here [https://github.com/ansible/ansible/issues](https://github.com/ansible/ansible/issues) with required details.

Regards,  
Ganesh
