aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnmi/log.cpp
diff options
context:
space:
mode:
authorYohanPipereau <ypiperea@cisco.com>2019-06-17 14:55:16 +0200
committerYohanPipereau <ypiperea@cisco.com>2019-06-17 15:27:32 +0200
commitb7b52e85c1b05a456119c11b9cf8e79d660194cc (patch)
tree3c218784e367bfdb43363fd2b04a4254d48c13a9 /src/gnmi/log.cpp
parentec995e056d985f9ef54f92adbcbe626967912592 (diff)
[gnmi] Remove gNMI from sweetcomb
Reasons for removing it: -This gNMI server has been upgraded to a more stable form. -It should live in a separate project because gNMI server is only dependant of sysrepo not of VPP or sweetcomb. -There were strange dependencies to this implementation like an XML parser library. -Capabilities RPC was answering wrong version number (1001 instead of 0.7.0) and encodings (ASCII vs JSON). -Error codes were not return to client in case of problem of configuration. Typically for element not found. -This server uses sysrepo C API though bindings for C++ can be obtained. -Documentation was missing. -Set RPC could not identify a key in a YANG list because a YANG library must be used for this not just a JSON parser. -It would be difficult to adapt this server to support more encodings than JSON. The new gNMI server offers an easier way to add encodings. -Log control level has been implemented in the new gNMI server. -Subscribe RPC has been added to the new server. Link to the new gNMI server: https://github.com/YohanPipereau/sysrepo_gnxi Change-Id: If57ab23c776430552d9d70fea6681db1b56af525 Signed-off-by: YohanPipereau <ypiperea@cisco.com>
Diffstat (limited to 'src/gnmi/log.cpp')
-rw-r--r--src/gnmi/log.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gnmi/log.cpp b/src/gnmi/log.cpp
deleted file mode 100644
index 86d26b5..0000000
--- a/src/gnmi/log.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2019 PANTHEON.tech.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "log.h"
-
-void init_log(int option)
-{
- openlog(NULL, option, LOG_DAEMON);
-}
-
-void close_log()
-{
- closelog();
-}
-