CiscoDevNet / python-viptela

Cisco Viptela vManage Python CLI/SDK
GNU General Public License v3.0
96 stars 64 forks source link

viptela operations ok for vedge but nok for cedge #174

Open badr-bzh opened 1 year ago

badr-bzh commented 1 year ago

hello, I used some attach detach register decomission operations from: https://github.com/CiscoDevNet/python-viptela/blob/master/vmanage/api/device_templates.py

it worked for vedges but i have some errors for cedge, is it supposed to work for cedge without substanital changes ? Or I need to do some adaptations to make it work for cedge ?

Example of erros i have :

(venv) ****@****:/home/****# robot example_cedge_viptela.robot
==============================================================================
Example Cedge Viptela :: example : attach, detach templates, add a vedgeclo...
==============================================================================
Detach Template                                                       | FAIL |
Dictionary '${vedge_device_detail}' has no key 'deviceIP'.
------------------------------------------------------------------------------
Decommission vEdge                                                    | PASS |
------------------------------------------------------------------------------
Register vEdge                                                        | PASS |
------------------------------------------------------------------------------
Attach Template                                                       | FAIL |
Dictionary '${vedge_device_detail}' has no key 'system-ip'.
------------------------------------------------------------------------------
Example Cedge Viptela :: example : attach, detach templates, add a... | FAIL |
4 tests, 2 passed, 2 failed
==============================================================================
Output:  /home/****/output.xml
Log:     /home/****/log.html
Report:  /home/****/report.html