Then I delete the configuration and try to show or get and get an error (which I should get, so this part works)
xapi.delete(xpath=xpath)
print(xapi.status)
success
xapi.commit(cmd="", sync=True, interval=1, timeout=0)
print(xapi.show(xpath=xpath))
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.7/site-packages/pan/xapi.py", line 721, in show
self.type_config('show', query, extra_qs)
File "/usr/lib/python3.7/site-packages/pan/xapi.py", line 805, in type_config
raise PanXapiError(self.status_detail)
pan.xapi.PanXapiError: No such node
There is some if that return None all the time even if the element has been configured. I have verified the configuration using panxapi.py right after commiting the changes:
I have used the script as follows, using the Python interpreter:
There is some if that return None all the time even if the element has been configured. I have verified the configuration using panxapi.py right after commiting the changes: