Seeing . error while using panos_static_route module.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Seeing . error while using panos_static_route module.

L0 Member

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.

1 REPLY 1

L5 Sessionator

Just so others are aware, this was resolved by upgrading his role code to the latest version:

 

https://github.com/PaloAltoNetworks/ansible-pan/issues/439

  • 2456 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!