Skip to content

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

@devrobo

Description

@devrobo

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions