libnetconf2 icon indicating copy to clipboard operation
libnetconf2 copied to clipboard

nc_accept_callhome return value

Open rohitkathuria102 opened this issue 3 years ago • 1 comments

Hi @michalvasko, as we have currently :::

nt nc_accept_callhome (int timeout, struct ly_ctx * ctx, struct nc_session ** session )

returns 1 on success, 0 on timeout, -1 on error.

is there a way that if callhome fails we can know the reason for it failing (for example; incorrect password,or incorrect ssh public key etc. ) ?

rohitkathuria102 avatar Nov 08 '21 06:11 rohitkathuria102

There are lots of reasons why it may fail and the reason is always printed. You can set a logging callback to get the exact message.

michalvasko avatar Nov 08 '21 07:11 michalvasko