This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added the panos_import_file module
Description
Added the panos_import_file module based on the panos_import module with added login via provider and a dictionary of extra arguments that may be required for specific imports.
A new module was created to avoid incompatibility with the previous module.
Motivation and Context
The original need was to import certificates and private keys into the firewall, in addition to standardizing the use of the provider at login.
issue #415 is resolved in this pull request
How Has This Been Tested?
The modifications were tested in a cloud instance.
Several files were imported into the firewall, always using the provider as login. Certificates were imported using all allowed variables as well as if the lack of any would return an error.
The creation of a new module allowed other areas of the code to remain unaffected
Screenshots (if appropriate)
Types of changes
Creates a new module named panos_import_file that allows importing a greater variety of categories available in XMLAPI
Checklist