]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[65-libyang-control-socket] New fixes
authorFrancis Dupont <fdupont@isc.org>
Sat, 22 Sep 2018 14:47:31 +0000 (16:47 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 22 Sep 2018 14:47:31 +0000 (16:47 +0200)
src/lib/yang/translator_control_socket.cc
src/lib/yang/translator_control_socket.h

index ad5d0866c78354ad701a4bc60601af00bece6526..84f4bfb7b7e32e7fec1807a0af3686000646c3da 100644 (file)
@@ -55,8 +55,7 @@ TranslatorControlSocket::getControlSocketKea(const string& xpath) {
         }
         return (result);
     }
-    isc_throw(Unexpected, "getControlSocketKea rquires name and type: "
-              << xpath);
+    return (ElementPtr());
 }
 
 void
index 2ae6bb266f5a5dccdc35a47a75b4bf429d0f9356..efd79760c461ace7818a49eefba7e3eb1f2b1cc8 100644 (file)
@@ -53,7 +53,7 @@ public:
     /// @brief Get and translate a control socket from YANG to JSON.
     ///
     /// @param xpath The xpath of the control socket.
-    /// @return JSON representation of the control socket.
+    /// @return JSON representation of the control socket or null.
     /// @throw SysrepoError when sysrepo raises an error.
     isc::data::ConstElementPtr getControlSocket(const std::string& xpath);