I am using the Napalm module with Ansible and using its get_facts module to obtain some basic information from the device. The relevant output is below,
Thanks I had tried that but it does not work. See below.
PLAY [Device Pre testing] ********************************************************************************************************************************************************************************************************************
TASK [get facts from device] *****************************************************************************************************************************************************************************************************************
fatal: [172.16.1.127]: FAILED! => {“failed”: true, “msg”: "template error while templating string: expected name or number. String: {{ result.ansible_facts.napalm_environment.cpu[0].%usage }} "}
to retry, use: --limit @/Users/marcosgeorgopoulos/Documents/Ansible/napalm/test.retry
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************