Skip to content
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

feat[dcnm_policy]: adding the functions to handle use_desc_as_key #285

Merged
merged 10 commits into from
Jun 18, 2024
Prev Previous commit
Next Next commit
fix pep8 errors
  • Loading branch information
Shangxin Du committed Apr 19, 2024
commit 7858625258f2cee870251e613089bc25a3a31fe8
6 changes: 4 additions & 2 deletions plugins/modules/dcnm_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,12 @@

# Use the description as key

# NOTE: As the description of the policy in NDFC/DCNM is not unique, the user must make sure no policies with the same description are created on NDFC out of the playbook.
# NOTE: As the description of the policy in NDFC/DCNM is not unique,
# the user must make sure no policies with the same description are created on NDFC out of the playbook.
# If the description is not unique, the module will raise an error.

## Below task will policies with description "radius_policy" on swtich1, switch2 and switch3, and only create policy "feature bfd" and "feature bash-shell" on the switch1 only
## Below task will policies with description "radius_policy" on swtich1, switch2 and switch3,
## and only create policy "feature bfd" and "feature bash-shell" on the switch1 only

- name: Create policies
cisco.dcnm.dcnm_policy:
Expand Down
Loading