I am trying to read few statistics through MAAPI and write it to a file.
But there are few confd defined data types like confd_decimal64.
I am trying to fetch the data from confd in the following way.
struct confd_decimal64 d64; if (maapi_get_decimal64_elem(sock, th, &d64, "/interface/stat/average") == CONFD_OK)`
Is there a function to convert confd_decimal64 to double?
Also is there a way to convert the enum to string?
int32_t state; maapi_get_enum_value_elem(sock, th, &state, "/interface/stat/state");
When the above stats are polled through cli, I am able to see them giving processed output.
#show interface stat average 3572384792.74 stat state up
Is there a confd API which can be used for my case as well?