Commit and push in Panorama 8.0.3

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.

Commit and push in Panorama 8.0.3

L1 Bithead

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
 
1 accepted solution

Accepted Solutions

L4 Transporter

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...

View solution in original post

1 REPLY 1

L4 Transporter

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...

  • 1 accepted solution
  • 7835 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!