New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fortinet FortiManager Connection Plugin RC, plus associated utilities #50336
Fortinet FortiManager Connection Plugin RC, plus associated utilities #50336
Conversation
Adding additional comments
@gundalow Hi John, we have rewritten our code to adhere to your new requested standards of using plugins. Please let us know how this looks and how we can move forward with moving this code through. |
Hi @gdpak - We've rewritten our modules to work with the new plugin standards. Please review our changes and let us know what you think. We need to have this reviewed and pushed through the PR so that we can go back and change all of our existing FortiManager modules to use this new code. Thanks! |
Hi @gundalow May you please help us with this PR? This PR is critical for us to continue pushing new modules for our Fortinet products. Please let us know the next steps, even if it is simply assigning a reviewer to this PR. Thank you for your time and help! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too familiar with how FortiMnager works presently, so I've tried to review the HttpApi plugin based on how things have been done with other such plugins. Feel free to let me know if I've overlooked something or failed to explain something adequately.
…our stuff) caused a failure on the last test.
@Qalthos We’ve updated the code to address your comments. Please provide feedback at your earliest convienence so we can finish this month long PR. It is holding up the rest of our module submissions. We’d like to resolve this as soon as possible. Thanks. |
…into the plugin for portability, and to left the original in the mod_utils/fortimanager.py as deprecated code for pre-2.7 customers still running on pyFMG and not the plugin. Tested all playbooks and all modules, and all appears well.
Looks like we've passed all tests and resolved raised concerns. When can we expect this to get merged? As soon as that happens we can start updating modules, submitting more content, etc. This is still a bottleneck for us. Please let us know when this plugin can be merged. Thank you! |
SUMMARY
A while back, we were asked by @gdpak to re-write our modules to use the new httpapi plugin method. We have done so. This is our first PR/RC for the FortiManager Ansible Connection Plugin.
Please find the plugin file, as well as changes to module_utils/fortimanager.py, and the addition of module_utils/common.py.
Modules to run this on, are available on request. We have already converted all existing modules to these new plugins and tools, so we're ready to go.
Please note that backwards compatibility with module_utils/fortimanager.py is maintained for older modules, or older versions of Ansible, or for customers who don't want to upgrade to the new plugin.
ISSUE TYPE
COMPONENT NAME
module_utils/network/fortimanager/common.py -- A lib of common procedures and static methods.
module_utils/network/fortimanager/fortimanager.py -- Updated to provide tools to work with the new connection plugin, as well as static code used throughout modules.
plugins/httpapi/fortimanager.py -- NEW Plugin for FortiManager.
ADDITIONAL INFORMATION