- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-06-2019 03:34 PM
Hi,
We are Seeing below error while using panos_static_route module. Can you please help to resolve it.
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'ConnectionHelper' object has no attribute 'apply_state'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1572933157.85-280592588763105/AnsiballZ_panos_static_route.py\", line 114, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1572933157.85-280592588763105/AnsiballZ_panos_static_route.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1572933157.85-280592588763105/AnsiballZ_panos_static_route.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_panos_static_route_payload_mG2gGW/__main__.py\", line 214, in <module>\n File \"/tmp/ansible_panos_static_route_payload_mG2gGW/__main__.py\", line 208, in main\nAttributeError: 'ConnectionHelper' object has no attribute 'apply_state'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
I have used ansible module as below:
panos_static_route:
provider: '{{ panos_provider }}'
name: 'Test-One'
destination: '10.x.x.x/28'
nexthop: '10.x.x.x'
template: "{{panos_template}}"
virtual_router: "{{panos_vr_name}}"
state: 'present'
--Thanks,
Dinesh.
12-10-2019 02:12 PM
Just so others are aware, this was resolved by upgrading his role code to the latest version:
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!