There is no direct GUI call to clone a device in device42, but RESTful APIs provide an easy way to clone a device. We have added a script under D42_Misc_Python_Scripts repository to do the same.
The script is briefly discussed below.
Script to clone a device
Python script clone_device.py will take a device name as input and you can create new devices based on an existing device.
You just need to change those lines to match your environment.
ORIGINAL_DEVICE_NAME is the device to be cloned.
NEW_DEVICE_NAMES is the list of names of new devices to be created as clone of original device.
By default type and service level are cloned. You can choose to clone hardware, OS and CPU/Memory properties.
Once you modify lines 22-30, you can excecute the script to created the cloned devices.
Article is closed for comments.