]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3907] fixed some UTs
authorRazvan Becheriu <razvan@isc.org>
Fri, 20 Jun 2025 10:32:03 +0000 (13:32 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 20 Jun 2025 13:29:10 +0000 (13:29 +0000)
src/lib/yang/tests/translator_control_socket_unittests.cc
src/lib/yang/translator_control_socket.h
src/share/yang/modules/hashes/kea-types@2025-06-25.hash
src/share/yang/modules/kea-types@2025-06-25.yang

index f9174db4a4e764683e57dc62c9b473124affe4ec..526bfbf896a8ae87f7259d87edc5ad6fa9a68d0f 100644 (file)
@@ -109,7 +109,7 @@ TEST_F(TranslatorControlSocketTestv6, get) {
 TEST_F(TranslatorControlSocketTestCtrlAgent, set) {
     // Set a value.
     const string& xpath =
-        "/kea-ctrl-agent:config/control-sockets/socket[server-type='dhcp4']/control-socket";
+        "/kea-ctrl-agent:config/control-sockets/control-sockets[server-type='dhcp4']/control-socket";
     ElementPtr sock = Element::createMap();
     sock->set("socket-name", Element::create("/tmp/kea.sock"));
     sock->set("socket-type", Element::create("unix"));
index c1f58645b162557577785cb2e28a443f579b4925..4ee8b17ec451cbb4bcc2a50f3508edd432c4bf76 100644 (file)
@@ -45,16 +45,16 @@ namespace yang {
 ///  /kea-ctrl-agent:config (container)
 ///  /kea-ctrl-agent:config/control-sockets (container)
 ///  /kea-ctrl-agent:config/control-sockets/
-///     socket[server-type='dhcp4'] (list instance)
-///  /kea-ctrl-agent:config/control-sockets/socket[server-type='dhcp4']/
+///     control-sockets[server-type='dhcp4'] (list instance)
+///  /kea-ctrl-agent:config/control-sockets/control-sockets[server-type='dhcp4']/
 ///     server-type = dhcp4
-///  /kea-ctrl-agent:config/control-sockets/socket[server-type='dhcp4']/
+///  /kea-ctrl-agent:config/control-sockets/control-sockets[server-type='dhcp4']/
 ///     control-socket (container)
-///  /kea-ctrl-agent:config/control-sockets/socket[server-type='dhcp4']/
+///  /kea-ctrl-agent:config/control-sockets/control-sockets[server-type='dhcp4']/
 ///     control-socket/socket-name = kea.sock
-///  /kea-ctrl-agent:config/control-sockets/socket[server-type='dhcp4']/
+///  /kea-ctrl-agent:config/control-sockets/control-sockets[server-type='dhcp4']/
 ///     control-socket/socket-type = unix
-///  /kea-ctrl-agent:config/control-sockets/socket[server-type='dhcp4']/
+///  /kea-ctrl-agent:config/control-sockets/control-sockets[server-type='dhcp4']/
 ///     control-socket/user-context = { \"foo\": 1 }
 /// @endcode
 
index cec6f2a91ffe1f4fc0a826c6fad5d3bea867a422..d9aa537f5027dbee255791e3acda82f5c7f3b158 100644 (file)
@@ -1 +1 @@
-2d1041f570386a4b4c81f42c72c3e93ef27729de8224e3522ddf6e98b148e9ca
+68739faa231a48c837adb3b306858b5656a1439b39b675f601d21515278d8747
index b4e319362284e51be7a4b9ba25bf20c0aff4b9bd..ccfff985e9e1b9c231e27195548c6187c15dd793 100644 (file)
@@ -109,6 +109,10 @@ module kea-types {
     uses control-socket-tls;
     uses http-headers;
     uses authentication;
+    leaf user-context {
+      type user-context;
+      description "Control socket user context.";
+    }
   }
 
   grouping http-headers {