[python]Exception handling with pan-python

pan.xapi has its own error handling, so on previous post i updated the code with exception handling. I actually tested with wrong credential, I could see the http 403 forbidden error raised. Which is good, as I would know what went wrong... This is how it looked like:

[python]Working with Palo Alto firewall API with pan-python module

This is another demonstration on the use of pan-python module. The usage documentation can be found in github. This is a simple demonstration on using the pan.xapi module from pan-python. Only changes the device configuration time settings. The demo uses the module to set the time zone and ntp primary and secondary addresses. To reduce … Continue reading [python]Working with Palo Alto firewall API with pan-python module

[python]working with pan-python module. Module that calls Palo Alto API

I found the example of usage in here. The code will not work on python3. In fact i am not sure why the print(credentials) in the code is necessary, there is no arg passed into the PanXapi which puzzles me why the code will work. To pass dictionary of arguments into the PanXapi method you … Continue reading [python]working with pan-python module. Module that calls Palo Alto API