From the API, when I run the command "show interfaces ethernet", I don't see the provisioned description in the output:
root@pc:~# curl -ks --location --request POST 'https://172.31.255.6:1443/show' --form data='{"op": "show", "path": ["interfaces", "ethernet", "eth0", "brief"]}' --form key='api-key' | jq { "success": true, "data": "Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down\nInterface IP Address S/L Description\n--------- ---------- --- -----------\neth0 192.168.254.90/24 u/u \n", "error": null }
I expect the output to be the same as from the CLI:
vyos@vyos:~$ show interfaces ethernet Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- eth0 192.168.254.90/24 u/u Internet Access eth1 172.31.255.6/24 u/u Local Access
You can see in the API return values, the Description field is missing (although the header is there in the output). I would like to use the description field in the API results in a script, but cannot since the value is not returned via the API.