diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2020-10-07 11:50:52 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-07 11:50:52 -0300 |
| commit | 9cfb2747adc875a7aaa7f99a45a65f65234a2004 (patch) | |
| tree | 2f1528432631a32fb22d98826a2ebb5ffd23246d /lib/northbound_grpc.cpp | |
| parent | 0ed866fd217079d7d7739b6f78fb01f3fd6533fd (diff) | |
| parent | 9bee02322f69e34c54510f8dff245e52794fdfc8 (diff) | |
Merge pull request #7241 from chiragshah6/evpn_dev1
lib: add errmsg to nb rpc
Diffstat (limited to 'lib/northbound_grpc.cpp')
| -rw-r--r-- | lib/northbound_grpc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/northbound_grpc.cpp b/lib/northbound_grpc.cpp index f35b4bb31b..abdae993b1 100644 --- a/lib/northbound_grpc.cpp +++ b/lib/northbound_grpc.cpp @@ -962,6 +962,7 @@ class NorthboundImpl struct listnode *node; struct yang_data *data; const char *xpath; + char errmsg[BUFSIZ] = {0}; switch (tag->state) { case CREATE: @@ -1012,7 +1013,7 @@ class NorthboundImpl // Execute callback registered for this XPath. if (nb_callback_rpc(nb_node, xpath, input_list, - output_list) + output_list, errmsg, sizeof(errmsg)) != NB_OK) { flog_warn(EC_LIB_NB_CB_RPC, "%s: rpc callback failed: %s", |
