Skip to content

Commit

Permalink
examppple added for un-tag and tag a image (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
madhansansel authored Dec 20, 2024
2 parents db9df21 + af66bfb commit 166390f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions plugins/modules/swim_workflow_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@
Behavior:
- If 'device_role' is a single string (e.g., `"ACCESS"`), only that role is tagged as golden.
- If 'device_role' contains multiple roles (e.g., `"ACCESS,CORE"`), all specified roles are tagged as golden.
To replace an existing golden tag for a specific role:
- **Unassign** the tag from the current role (e.g., `ACCESS`).
- **Assign** the tag to the new role (e.g., `CORE`).
Examples:
- device_role: "ACCESS" tags only the `ACCESS` role as golden.
- device_role: "ACCESS,CORE" tags both `ACCESS` and `CORE` roles as golden.
Expand Down Expand Up @@ -343,6 +346,8 @@
- Added the parameter 'dnac_api_task_timeout', 'dnac_task_poll_interval' options in v6.13.2.
"""

EXAMPLES = r"""
Expand Down Expand Up @@ -462,6 +467,30 @@
site_name: Global/USA/San Francisco/BGL_18
tagging: True
# Remove the golden tag from the specified image for the given device role and assign it to another device role.
- name: Update golden tag assignment for image based on device role
cisco.dnac.swim_workflow_manager:
dnac_host: "{{dnac_host}}"
dnac_username: "{{dnac_username}}"
dnac_password: "{{dnac_password}}"
dnac_verify: "{{dnac_verify}}"
dnac_port: "{{dnac_port}}"
dnac_version: "{{dnac_version}}"
dnac_debug: "{{dnac_debug}}"
dnac_log_level: "{{dnac_log_level}}"
dnac_log: true
config:
- tagging_details:
image_name: cat9k_iosxe.17.12.01.SPA.bin
device_role: CORE
device_image_family_name: Cisco Catalyst 9300 Switch
tagging: false
- tagging_details:
image_name: cat9k_iosxe.17.12.01.SPA.bin
device_role: ACCESS
device_image_family_name: Cisco Catalyst 9300 Switch
tagging: true
- name: Tag the specified image as golden for multiple device roles and load it into the device
cisco.dnac.swim_workflow_manager:
dnac_host: "{{dnac_host}}"
Expand Down

0 comments on commit 166390f

Please sign in to comment.