CiscoDevNet / ansible-dcnm

Apache License 2.0
47 stars 37 forks source link

Dcnm image upgrade v2 #315

Closed allenrobel closed 3 months ago

allenrobel commented 3 months ago

Summary

This PR aligns dcnm_image_upgrade with the v2 support libraries.

branch

dcnm_image_upgrade_v2 created off of branch dcnm_image_policy_v2.

Changes

  1. dcnm_image_upgrade.py
    • Refactored into classes Common(), Merged(), Deleted(), Query()
  2. ImagePolicyAction(): replaced with:
    • ImagePolicyAttach()
    • ImagePolicyDetach()
      1. Following are updated to align with v2 support classes
        • ImageStage()
        • ImageValidate()
        • ImageUpgrade()
        • InstallOptions()
        • SwitchIssuDetails() and its subclasses
      2. WaitForControllerDone() new class. Wait for actions to complete on the controller.
      3. UT: All unit tests rewritten and renumbered.
      4. IT: Tests modularized for shorter run times.