-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
aci_tenant: New module to manage tenants on ACI fabric #26836
Conversation
@schunduri this PR contains the following merge commits: Please rebase your branch to remove these commits. |
@schunduri this PR contains the following merge commits: Please rebase your branch to remove these commits. |
The test
|
The test
|
As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
--- | ||
|
||
module: aci_tenant | ||
short_description: Direct access to the APIC API |
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.
Can you please add "cisco" and "ACI" into the short_description
, it will make it easier for people to find.
Direct access to the Cisco ACI APIC API
Feel free to change the wording to match how you market this.
hostname=dict(type='str', required=True, aliases=['host']), | ||
username=dict(type='str', default='admin', aliases=['user']), | ||
password=dict(type='str', required=True, no_log=True), | ||
protocol=dict(type='str'), # Deprecated in v2.8 |
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.
Please change to:
protocol=dict(type='str', removed_in_version='2.6'), # Deprecated in v2.6
So this matches #27070
|
||
import json | ||
|
||
# from ansible.module_utils.aci import aci_argument_spec, aci_login, aci_response |
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.
please remove commented out code
username = module.params['username'] | ||
password = module.params['password'] | ||
|
||
# FIXME: This should not be needed |
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.
?
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.
@gundalow I will make the required changes. Thank you
@dagwieers Did you want to review this? |
Please reopen when the git branch issues are resolved. Having so many changed files in a pr is causing some problems with repo info tools (like https://ansible.sivel.net/byfile.html) so closing for now. |
per @dagwieers on irc, this is about to get some rebasing and the submitter would like it reopened. |
The test
The test
|
The test
The test
The test
The test
The test
|
Review points made have been resolved
if state == 'query': | ||
aci.request(path) | ||
elif module.check_mode: | ||
# TODO: Implement proper check-mode (presence check) |
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.
Hi @calfonso shouldn't we want a real check mode if the module says it supports it? This blindly returns changed=True in check mode all the time.
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.
@jedelman8 you're right. @schunduri ^
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.
Yes, so we plan to fix this and @jedelman8 and @jmcgill298 are involved in some new code that may help with this. However if this does not hit the tree before the freeze I will make sure this module is pulled from the tree.
It is unfortunate this PR was merged, but granted the PR should have been indicated with a WIP-tag to have prevented this.
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 have submitted a couple of modules with the new approach that takes care of check-mode. I am waiting to hear back from @schunduri that this approach is acceptable before continuing to enhance other modules being developed.
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.
@jedelman8, we can change the module to check mode not supported for now
SUMMARY
Cisco ACI Module
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
ADDITIONAL INFORMATION