summaryrefslogtreecommitdiff
path: root/lib/northbound_grpc.cpp
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-10-17 10:07:05 -0400
committerGitHub <noreply@github.com>2019-10-17 10:07:05 -0400
commit9cd06d69ad593dece680da49e3da6cfbb0af376e (patch)
tree42c91151ca75a429c42ca5226e2212ac6593d996 /lib/northbound_grpc.cpp
parente75bbefa0e41995051d625aad3bfb5273ff3dc20 (diff)
parent07705c8b8a8650c499c74a2b365caf6bd0c7db2e (diff)
Merge pull request #5175 from opensourcerouting/debug-nb-yang
lib, vtysh: add new libyang option to the "debug northbound" command
Diffstat (limited to 'lib/northbound_grpc.cpp')
-rw-r--r--lib/northbound_grpc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/northbound_grpc.cpp b/lib/northbound_grpc.cpp
index 218cae4e74..089899368d 100644
--- a/lib/northbound_grpc.cpp
+++ b/lib/northbound_grpc.cpp
@@ -616,6 +616,11 @@ class NorthboundImpl final : public frr::Northbound::Service
return LYD_JSON;
case frr::XML:
return LYD_XML;
+ default:
+ flog_err(EC_LIB_DEVELOPMENT,
+ "%s: unknown data encoding format (%u)",
+ __func__, encoding);
+ exit(1);
}
}