Hello Folks,
I am trying to send error text back to confd using ‘confd_delayed_reply_error’ API when fetching data error. This is how the data provider is implemented:
- Confd calls one of the registered API’s, get_next / get_elem etc.
- When we dont have the data with us, we return, ‘CONFD_DELAYED_RESPONSE’.
- If we encounter some error while fetching the data, I use ‘confd_trans_seterr’ to set the error message followed by ‘confd_delayed_reply_error’.
- please note, it is cli not netconf.
In the ‘confd_developer.log’, confd does receive the get_elem error response, but it continues to send the same get_elem request again. We hope confd stop here and close the transaction.
6-Dec-2018::23:09:48.828 E3-2-EPON confd[7074]: devel-c get_next request for callpoint cli_if_status_cp path /base:status/system/upgrade
6-Dec-2018::23:09:48.831 E3-2-EPON confd[7074]: devel-c get_next succeeded for callpoint cli_if_status_cp path /base:status/system/upgrade
6-Dec-2018::23:09:48.832 E3-2-EPON confd[7074]: devel-c get_next request for callpoint cli_if_status_cp path /base:status/system/upgrade
6-Dec-2018::23:09:48.835 E3-2-EPON confd[7074]: devel-c get_next succeeded for callpoint cli_if_status_cp path /base:status/system/upgrade
6-Dec-2018::23:09:48.838 E3-2-EPON confd[7074]: devel-c get_elem request for callpoint cli_if_status_cp path /base:status/system/upgrade{1/1}/summary/system-status
6-Dec-2018::23:09:48.875 E3-2-EPON confd[7074]: devel-c get_elem error {application, “Command Rejected. Upgrade summary is only for active card”} for callpoint cli_if_status_cp path /base:status/system/upgrade{1/1}/summary/system-status
6-Dec-2018::23:09:48.877 E3-2-EPON confd[7074]: devel-c get_elem request for callpoint cli_if_status_cp path /base:status/system/upgrade{1/1}/summary/system-status
6-Dec-2018::23:09:48.884 E3-2-EPON confd[7074]: devel-c get_elem succeeded for callpoint cli_if_status_cp path /base:status/system/upgrade{1/1}/summary/system-status
6-Dec-2018::23:09:48.886 E3-2-EPON confd[7074]: devel-c get_next request for callpoint cli_if_status_cp path /base:status/system/upgrade{1/1}/summary/card
6-Dec-2018::23:09:48.897 E3-2-EPON confd[7074]: devel-c get_next succeeded for callpoint cli_if_status_cp path /base:status/system/upgrade{1/1}/summary/card
Thanks all.