]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1652] Addressed last comments
authorFrancis Dupont <fdupont@isc.org>
Fri, 23 Apr 2021 12:44:56 +0000 (14:44 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 23 Apr 2021 15:17:50 +0000 (17:17 +0200)
ChangeLog
doc/sphinx/arm/ctrl-channel.rst
src/lib/cc/tests/json_feed_unittests.cc

index 9f73cc07bfd704f07e34952fa024c658ebdf0168..3db8689ae3e672d728bd8135549c481e15ac17b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1889.  [func]          fdupont
+       Added support of comments (shell '#', C++ '//' and C
+       '/*...*/') in JSON commands sent via the control channel or
+       the Control Agent.
+       (Gitlab #1652)
+
 1888.  [func]          tmark
        Added a new operational mode, HA+MT, to the HA hook library.
        HA+MT provides direct, multi-threaded HTTP communication
index 646e00687524e1f989e3a9dcdc4bed6b091df4b5..fbad15b3fbc38ce4f3f69c592fb173f41aaf7888 100644 (file)
@@ -179,7 +179,24 @@ that depends on the specific command.
 .. note::
 
    Since Kea 1.9.7 it is possible to put comments in the commands as
-   in the configuration file.
+   in the configuration file, for instance:
+
+::
+
+       POST / HTTP/1.1\r\n
+       Content-Type: application/json\r\n
+       Content-Length: 147\r\n\r\n
+       {
+           "command": "foo",
+           // service is a list
+           "service": [ "dhcp4" ]
+           # command arguments are here.
+           "arguments": {
+               "param1": "value1"/*,
+               "param2": "value2",
+               ...*/
+           }
+       }
 
 .. _ctrl-channel-client:
 
index d30ca7ca4a9229e092e1e1ffeddedc3d000763ad..84739f7f43592c10ab92aba21b3ff221b27f54cd 100644 (file)
@@ -153,7 +153,8 @@ public:
 
 };
 
-// This test verifies that toElement should not be called too soon.
+// This test verifies that toElement should not be called before
+// the feed detects the end of the data stream.
 TEST_F(JSONFeedTest, toElementTooSoon) {
     JSONFeed feed;
     ASSERT_NO_THROW(feed.initModel());