]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/northbound_grpc.cpp
Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed
[mirror_frr.git] / lib / northbound_grpc.cpp
index 1d6317b005511419d3fe43048513a5217b421c62..089899368d59bc8d72f860537cb1b5f774cdb334 100644 (file)
@@ -18,6 +18,8 @@
 //
 
 #include <zebra.h>
+#include <grpcpp/grpcpp.h>
+#include "grpc/frr-northbound.grpc.pb.h"
 
 #include "log.h"
 #include "libfrr.h"
@@ -32,9 +34,6 @@
 #include <memory>
 #include <string>
 
-#include <grpcpp/grpcpp.h>
-#include "grpc/frr-northbound.grpc.pb.h"
-
 #define GRPC_DEFAULT_PORT 50051
 
 /*
@@ -617,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);
                }
        }