Skip to content

Commit

Permalink
Some minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Jul 31, 2023
1 parent a0a2540 commit c77d6a7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
BUNDLE_NAME: "Test_bundle"

CVP_DEVICES_BUNDLE_ATTACHED:
- fqdn: leaf1.atd.lab
- fqdn: leaf1
parentContainerName: ""
configlets:
- 'configlet1'
imageBundle: Test_bundle

CVP_DEVICES_BUNDLE_DETACHED:
- fqdn: leaf1.atd.lab
- fqdn: leaf1
parentContainerName: ""
configlets:
- 'configlet1'

CVP_DEVICES_DETACH_CONFIGLET:
- fqdn: leaf1.atd.lab
- fqdn: leaf1
parentContainerName: "pod1"

tasks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- 'configlet2'

CVP_DEVICES_DETACH_CONFIGLET:
- fqdn: leaf1.atd.lab
- fqdn: leaf1
parentContainerName: "pod1"

tasks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
parentContainerName: None

CVP_DEVICES_PROVISIONING_RESET:
- fqdn: leaf1.atd.lab
- fqdn: leaf1
parentContainerName: ""

tasks:
Expand Down Expand Up @@ -104,22 +104,22 @@
- name: "Deploy device on {{inventory_hostname}}"
vars:
CVP_DEVICES_DEPLOY:
- fqdn: leaf1.atd.lab # leaf1 must be in undefined container
- fqdn: leaf1 # leaf1 must be in undefined container
parentContainerName: "{{CV_FACTS_V3_RESULT.data.cvp_devices[0].parentContainerName}}"
arista.cvp.cv_device_v3:
devices: '{{CVP_DEVICES_DEPLOY}}'
state: present
register: CV_DEVICE_V3_RESULT

- name: "Check deploy_device"
assert:
that:
- CV_DEVICE_V3_RESULT.changed == true
- CV_DEVICE_V3_RESULT.devices_deployed.changed == true
- CV_DEVICE_V3_RESULT.devices_deployed.devices_deployed_count == 1
- CV_DEVICE_V3_RESULT.devices_deployed.devices_deployed_list == ["leaf1_deployed"]
- CV_DEVICE_V3_RESULT.devices_deployed.success == true
- CV_DEVICE_V3_RESULT.devices_deployed.taskIds != []
- name: "Check deploy_device"
assert:
that:
- CV_DEVICE_V3_RESULT.changed == true
- CV_DEVICE_V3_RESULT.devices_deployed.changed == true
- CV_DEVICE_V3_RESULT.devices_deployed.devices_deployed_count == 1
- CV_DEVICE_V3_RESULT.devices_deployed.devices_deployed_list == ["leaf1_deployed"]
- CV_DEVICE_V3_RESULT.devices_deployed.success == true
- CV_DEVICE_V3_RESULT.devices_deployed.taskIds != []

- name: Remove Container
arista.cvp.cv_container_v3:
Expand Down

0 comments on commit c77d6a7

Please sign in to comment.