Skip to content

Commit

Permalink
lib: remove incorrect comment from northbound
Browse files Browse the repository at this point in the history
This was true when we had only a CLI for configuration. Now mgmtd has a
public frontend interface that can be used by external applications, and
they can send invalid requests that lead to errors.

This is still true for CLI though, so the same comment still stays in
`nb_cli_apply_changes_internal`.

Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov committed Oct 21, 2023
1 parent 6278888 commit a041d31
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/northbound.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,11 +906,6 @@ void nb_candidate_edit_config_changes(
if (error && *error) {
char buf[BUFSIZ];

/*
* Failure to edit the candidate configuration should never
* happen in practice, unless there's a bug in the code. When
* that happens, log the error but otherwise ignore it.
*/
snprintf(err_buf, err_bufsize,
"%% Failed to edit configuration.\n\n%s",
yang_print_errors(ly_native_ctx, buf, sizeof(buf)));
Expand Down

0 comments on commit a041d31

Please sign in to comment.