Open barryCrunch opened 2 years ago
:tada: Thanks for opening your first issue here! Welcome to the community!
This is not something pan-os-python can really do something about. If PAN-OS decides to accept an API call, then reboot the management plane (or the whole appliance) before returning a response to the XML API client, pan-os-python can not make it behave properly. This is something that used to behave properly, so I recommend opening up a TAC issue against PAN-OS and tell them that the API is not returning a response to you before rebooting.
Describe the bug
When using the activate_feature_using_authorization_code method, nothing is returned. After the license is applied the FW goes for a reboot and the client disconnects with an
http.client.RemoteDisconnected: Remote end closed connection without response
exception.Expected behavior
Return anything, so we know if the license application was successful. It looks like the method checks for a status from the
op
call, so maybe return that status.Return the status if it was successful
Current behavior
Nothing is returned, and the client times out with an http.client error.
Possible solution
Return result as mentioned above.
Steps to reproduce
Context
We are trying to apply an auth code programmatically through a pipeline.
Your Environment
panos - 10.1.4 python - 3.8.2 os - ubuntu 20.04 pan-os-python: 1.6.0