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

add_devices_to_inventory does not create task to add device to container. #217

Open
devrobo opened this issue Oct 4, 2022 · 1 comment

Comments

@devrobo
Copy link
Contributor

devrobo commented Oct 4, 2022

CVP Version: cvp2020.1.2

The add_devices_to_inventory method adds the devices to the parent container but does not create the task to complete the addition to the parent container. It would be useful if the method could create the task[s] and return the task_iid[s] so I can execute the tasks and complete the operation. The image below shows the state after the add_devices_to_inventory() call successfully completed.

image

Maybe I am missing something. Is there an easy way to deterministically queue up the task programmatically?

[device_list](https://github.com/aristanetworks/cvprac/blob/develop/cvprac/cvp_api.py#L628:~:text=def-,add_devices_to_inventory,-(self%2C)

[call to move_device_to_container()](https://github.com/aristanetworks/cvprac/blob/develop/cvprac/cvp_api.py#L715:~:text=%27add_device_to_inventory%20API-,v2,-%27%2C)

Could set the create task flag to True on the call to move_device_to_container().

@devrobo
Copy link
Contributor Author

devrobo commented Oct 4, 2022

Workaround is to specify the Undefined container for the devices to be placed in. Since they come in in ZTP mode there is no move to a container and therefore no proposed change wrt placement within the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant