Commit and push in Panorama 8.0.3

Reply
L1 Bithead

Commit and push in Panorama 8.0.3

Is there an API command to do a commit and push in Panorama in 8.0.3? I can only find a commit to panorama or a commit to template. The issue is that in Panorama 8.0 by default the running configuration is pushed out as opposed to the candidate configuration. So it's necessary to commit any changes to Panorama first before pushing it out to a template or device group. I was looking for a one shot way to do this with the API

Spoiler
 
Highlighted
L4 Transporter

Re: Commit and push in Panorama 8.0.3

Hello,

 

When using the API to commit on any Panorama version, you must commit to Panorama first, then push to devices.  You can't do it in one shot via API.  The commit to Panorama is a regular commit.  The push to devices is reffered to as a 'commit all' when using the API.

 

Documentation on both types of commits is available here:

https://www.paloaltonetworks.com/documentation/80/pan-os/xml-api/pan-os-xml-api-request-types/commit...

 

If you're using python, you can also leverage our Device Framework to trigger and manage the commit and commit all operations:

 

Commit:

http://pandevice.readthedocs.io/en/latest/module-base.html#pandevice.base.PanDevice.commit

 

Commit All:

http://pandevice.readthedocs.io/en/latest/module-panorama.html#pandevice.panorama.Panorama.commit_al...

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!