Ansible Module for Device serial number swap in Panorama

Reply
L1 Bithead

Ansible Module for Device serial number swap in Panorama

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>

L4 Transporter

Re: Ansible Module for Device serial number swap in Panorama

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
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 Live Community as a whole!

The Live Community thanks you for your participation!