Ansible Module for Device serial number swap in Panorama

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Ansible Module for Device serial number swap in Panorama

L2 Linker

Hi,

Need help in creating a ansible playbook for " Device Serail Number Swap in Panorama".

CLI command: > replace device old <old SN#> new <new SN#>
XML API:
<replace><device><old>*old device serial number*</old><new>*new device serial number*</new></device></replace>

1 REPLY 1

L5 Sessionator

This looks like an OP command, so you just use panos_op to do this:

 

- name: Perform Swap
  panos_op:
    provider: '{{ provider }}'
    cmd: '<replace><device><old>*old device serial number*</old><new>*new device serial number*</new></device></replace>'
    cmd_is_xml: true
  • 2750 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!