-
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
added aci_interface_policy_leaf_policy_group module #34968
added aci_interface_policy_leaf_policy_group module #34968
Conversation
|
||
|
||
def main(): | ||
argument_spec = aci_argument_spec |
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.
aci_argument_spec
has been updated to be a function. This line should be updated as:
argument_spec = aci_argument_spec()
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.
alrighty ! 👍
|
Yes, the new rules were activated today after testing. The errors indicate inconsistencies between the The bot should likely also be updating this PR with a comment soon in regards to those errors. |
@sivel hey what do you suggest to fix the protocol documentation error ? what are the possible options for protocol, strange that adding |
@dagwieers is |
…w optional description
3e895cf
to
f310252
Compare
@sivel Yes, it's replaced with |
attached_entity_profile: | ||
description: | ||
- Choice of attached_entity_profile (AEP) to be used as part of the leaf policy group to be created. | ||
aliases: [ attached_entity_profile_name, AEP, AEP_name ] |
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.
We use aep
as the default parameter in other modules and we never used AEP
, AEP_name
or attached_entity_profile
. So please use the same parameter name as the aci_aep module !
link_aggregation_type: | ||
description: | ||
- Selector for the type of leaf policy group we want to create. | ||
aliases: [ link_aggregation_type_name ] |
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 wonder if this wouldn't be better named lag_type
either as the default name, or an alias. As LAG seems to be a common term (at least I know this term).
cc @rsmeyers @jmcgill298
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.
agreed, was just wondering if we should make it same as GUI or not 👍
- Bruno Calogero (@brunocalogero) | ||
version_added: '2.5' | ||
notes: | ||
- When using the module please select the appropriate link_aggregation_type. 'link'(PC)/'node'(VPC), 'leaf'(Leaf Access Port Policy Group) |
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.
You should be doing: C(link) for PC, C(node) for VPC and C(leaf) for Leaf Access Port Policy Group
.
Maybe also use the full name for PC and VPC as well ?
argument_spec = aci_argument_spec() | ||
argument_spec.update({ | ||
'policy_group': dict(type='str', aliases=['name', 'policy_group_name']), | ||
'description': dict(type='str', aliases=['descr', 'description']), |
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 `description' from the aliases.
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.
LGTM
@sivel can you approve changes ? |
I've approved the changes I asked for. I'll leave this in @dagwieers' hands, as I have no expertise in this specific area (aci). |
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 |
I made one more commit to it, but lost track waiting for it to be validated. |
PS Please don't forget to add the integration test in due time. |
SUMMARY
Adding aci_interface_policy_leaf_policy_group module, creates the following ACI objects: infra:AccPortGrp and infra:AccBndlGrp
ISSUE TYPE
COMPONENT NAME
aci_interface_policy_leaf_policy_group
ANSIBLE VERSION