aristanetworks / ansible-cvp

Ansible modules for Arista CloudVision
http://cvp.avd.sh
Apache License 2.0
66 stars 61 forks source link

Get partial facts if a device is not accessible. #104

Closed AJNOURI closed 4 years ago

AJNOURI commented 4 years ago

Hey @titom73

Might be related to #95

Issue Type

Module Name

OS / Environment

Summary

We are testing the current modules on an IPFabric lab testbed, but one of the devices has authentication mode changed (through tacacs), so no more available with CVP username/login credentials; which makes the module facts fails with the device MAC.

Is it possible to still get the JSON output for all other devices and mention the ones failed? In case we want to exclude the failed machine from the deployment.

Thanks.

titom73 commented 4 years ago

Hello

Issue #95 is changing cv_facts behavior:

In the meantime, cv_facts extracts configuration from devices with a status set to "deviceStatus": "STREAMING" meaning offline devices and 3rd part devices are not collected.

If device is streaming and we can't connect to it to get configuration, we might think about a value like "CONFIG":"NOT AVAILABLE". Is that suitable for you ?

AJNOURI commented 4 years ago

Sorry for the late reply, Yes, "deviceStatus": "STREAMING" looks appropriate.

titom73 commented 4 years ago

If so, I will move forward and close this case.

For documentation related to facts and how to configure options, please refer to Project documentation or Wiki page