-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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: New aci_firmware_policy module #48356
Conversation
Hi @sgerhart, thank you for submitting this pull-request! |
@sgerhart, just so you are aware we have a dedicated Working Group for network. |
@brunocalogero @jmcgill298 @rost-d @schunduri @smnmtzgr 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 |
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.
The module looks mostly fine, except for indentation and spacious documentation and code. This will not get past CI validation, you can't add double empty lines except where it is required :-) Also, there's no need to add so many empty lines, things could be a lot more concise.
Also, we would definitely need integration tests so future changes are tested against a full range checks.
--- | ||
module: aci_firmware_policy | ||
|
||
short_description: This creates a firmware policy |
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.
In the module index it doesn't look good if it starts with 'This creates'.
Simply use Manage firmware policies
.
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.
The DOCUMENTATION string is very indented, I would prefer we use the same format as the other ACI modules. Only indent when necessary (2 spaces).
version: | ||
description: | ||
- The version of the firmware assoicated with this policy. This value is very import as well as constructing | ||
- it correctly. The syntax for this field is n9000-xx.x. If you look at the firmware repository using the UI |
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.
This will not render correctly. If you use multiple dashes for the same sentence, they will end up being different paragraphs in the description. You don't need those subsequent dashes.
- each version will have a "Full Version" column, this is the value you need to use. So, if the Full Version | ||
- is 13.1(1i), the value for this field would be n9000-13.1(1i) | ||
required: true | ||
ignoreCompat: |
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 like parameters to be snake case, not mixed case, for a more uniform look and feel.
https://en.wikipedia.org/wiki/Letter_case
description: | ||
- This module creates a firmware policy for firmware groups. The firmware policy is create first and then | ||
- referenced by the firmware group. You will assign the firmware and specify if you want to ignore the compatibility | ||
- 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.
All descriptions (also parameter descriptions) must end with a trailing dot, except the short_description.
required: true | ||
ignoreCompat: | ||
description: | ||
- Check if compatibility checks should be ignored |
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.
Makes this Whether compatibility checks should be ignored.
If you like, I will make the required modifications to your branch ? |
cc @rsmeyers |
rebuild_merge |
rebuild_merge |
SUMMARY
This module creates an ACI firmware policy to be used with the firmware group
ISSUE TYPE
COMPONENT NAME
aci_firmware_policy
ANSIBLE VERSION
ADDITIONAL INFORMATION