diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2020-08-19 20:14:05 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-19 20:14:05 -0300 |
| commit | 0d206e9d85846b4a95e252b4233af494cc673449 (patch) | |
| tree | 7553e90d0a9bce17491c5c750bad0cbe772c95a6 /lib/northbound.c | |
| parent | 54c1ad98026bbf16e79f8390664885001d7f6b2d (diff) | |
| parent | 5bfb669b377ab5980dd2cb137e1bb28849a8efe1 (diff) | |
Merge pull request #6945 from qlyoung/nb-more-messages
More gRPC logging + errmsg for no changes
Diffstat (limited to 'lib/northbound.c')
| -rw-r--r-- | lib/northbound.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/northbound.c b/lib/northbound.c index 7a1a35593d..29e843a84e 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -680,8 +680,12 @@ int nb_candidate_commit_prepare(struct nb_context *context, RB_INIT(nb_config_cbs, &changes); nb_config_diff(running_config, candidate, &changes); - if (RB_EMPTY(nb_config_cbs, &changes)) + if (RB_EMPTY(nb_config_cbs, &changes)) { + snprintf( + errmsg, errmsg_len, + "No changes to apply were found during preparation phase"); return NB_ERR_NO_CHANGES; + } if (nb_candidate_validate_code(context, candidate, &changes, errmsg, errmsg_len) |
