]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4492] Addressed some initial comments
authorThomas Markwalder <tmark@isc.org>
Thu, 7 May 2026 16:53:27 +0000 (12:53 -0400)
committerThomas Markwalder <tmark@isc.org>
Tue, 12 May 2026 17:17:33 +0000 (17:17 +0000)
Mostly typos and  minor fixes

modified:   doc/sphinx/arm/dhcp4-srv.rst
modified:   doc/sphinx/arm/dhcp6-srv.rst
modified:   doc/sphinx/arm/hooks-lease-cmds.rst
modified:   src/hooks/dhcp/lease_cmds/lease_cmds_messages.cc
modified:   src/hooks/dhcp/lease_cmds/libloadtests/sflq_cmds_unittests.cc
modified:   src/hooks/dhcp/lease_cmds/sflq_cmds.cc
modified:   src/hooks/dhcp/lease_cmds/sflq_cmds.h
modified:   src/lib/dhcp/tests/iface_mgr_unittest.cc
modified:   src/lib/dhcpsrv/testutils/sflqtest_lease_mgr.h
modified:   src/share/api/sflq-pool4-create.json
modified:   src/share/api/sflq-pool4-del.json
modified:   src/share/api/sflq-pool4-get-all.json
modified:   src/share/api/sflq-pool4-get-by-range.json
modified:   src/share/api/sflq-pool4-get-by-subnet.json
modified:   src/share/api/sflq-pool6-create.json
modified:   src/share/api/sflq-pool6-del.json
modified:   src/share/api/sflq-pool6-get-all.json
modified:   src/share/api/sflq-pool6-get-by-range.json
modified:   src/share/api/sflq-pool6-get-by-subnet.json

19 files changed:
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst
doc/sphinx/arm/hooks-lease-cmds.rst
src/hooks/dhcp/lease_cmds/lease_cmds_messages.cc
src/hooks/dhcp/lease_cmds/libloadtests/sflq_cmds_unittests.cc
src/hooks/dhcp/lease_cmds/sflq_cmds.cc
src/hooks/dhcp/lease_cmds/sflq_cmds.h
src/lib/dhcp/tests/iface_mgr_unittest.cc
src/lib/dhcpsrv/testutils/sflqtest_lease_mgr.h
src/share/api/sflq-pool4-create.json
src/share/api/sflq-pool4-del.json
src/share/api/sflq-pool4-get-all.json
src/share/api/sflq-pool4-get-by-range.json
src/share/api/sflq-pool4-get-by-subnet.json
src/share/api/sflq-pool6-create.json
src/share/api/sflq-pool6-del.json
src/share/api/sflq-pool6-get-all.json
src/share/api/sflq-pool6-get-by-range.json
src/share/api/sflq-pool6-get-by-subnet.json

index b5a3099f80f594c59e42aca35a6e7c80497e2407..3f8d4cd7142a3d534b29f7d96533029b15e311a1 100644 (file)
@@ -9126,7 +9126,7 @@ Shared Free Lease Queue Allocator
 
 .. warning::
 
-    Added in Kea 3.2.0, Shared Free Lease Queue Allocator is considered
+    Added in Kea 3.1.9, Shared Free Lease Queue Allocator is considered
     experimental and is not supported for production use.
 
 The Shared Free Lease Queue (SFLQ) Allocator is intended for use sites with
index c965ab2636fbd4c2c859734461dfe48787368bf0..93d7db9d2d9073b4af9b8984c1d4eac0a538763b 100644 (file)
@@ -8951,7 +8951,7 @@ Shared Free Lease Queue Allocator
 
 .. warning::
 
-    Added in Kea 3.2.0, Shared Free Lease Queue Allocator is considered
+    Added in Kea 3.1.9, Shared Free Lease Queue Allocator is considered
     experimental and is not supported for production use.
 
 .. note::
index a3e878f72f90e9fbed514bbf7fbdc1d4e28bdf5b..342c04288c4c493ba4c1418c386bc77c5dfb38c0 100644 (file)
@@ -113,30 +113,30 @@ This library provides the following commands:
 
 -  :isccmd:`lease6-write` - writes the IPv6 memfile lease database into a file.
 
--  :isccmd::`sflq-pool4-create` - creates an IPv4 SFLQ pool in the lease back end.
+-  :iscmd:`sflq-pool4-create` - creates an IPv4 SFLQ pool in the lease back end.
 
--  :isccmd::`sflq-pool6-create` - creates an IPv6 SFLQ pool in the lease back end.
+-  :iscmd:`sflq-pool6-create` - creates an IPv6 SFLQ pool in the lease back end.
 
--  :isccmd::`sflq-pool4-get-all` - fetches all IPv4 SFLQ pools from the lease back end.
+-  :iscmd:`sflq-pool4-get-all` - fetches all IPv4 SFLQ pools from the lease back end.
 
--  :isccmd::`sflq-pool6-get-all` - fetches all IPv6 SFLQ pools from the lease back end.
+-  :iscmd:`sflq-pool6-get-all` - fetches all IPv6 SFLQ pools from the lease back end.
 
--  :isccmd::`sflq-pool4-get-by-subnet` - fetches all IPv4 SFLQ pools that belong to
+-  :iscmd:`sflq-pool4-get-by-subnet` - fetches all IPv4 SFLQ pools that belong to
    a subnet from the lease back end.
 
--  :isccmd::`sflq-pool6-get-by-subnet` - fetches all IPv6 SFLQ pools that belong to
+-  :iscmd:`sflq-pool6-get-by-subnet` - fetches all IPv6 SFLQ pools that belong to
    a subnet from the lease back end.
 
--  :isccmd::`sflq-pool4-get-by-range` - fetches all IPv4 SFLQ pools that overlap an
+-  :iscmd:`sflq-pool4-get-by-range` - fetches all IPv4 SFLQ pools that overlap an
    address range from the lease back end.
 
--  :isccmd::`sflq-pool6-get-by-range` - fetches all IPv6 SFLQ pools that overlap an
+-  :iscmd:`sflq-pool6-get-by-range` - fetches all IPv6 SFLQ pools that overlap an
    address range from the lease back end.
 
--  :isccmd::`sflq-pool4-del` - deletes an IPv4 SFLQ pool that matches an address
+-  :iscmd:`sflq-pool4-del` - deletes an IPv4 SFLQ pool that matches an address
    range from the lease back end.
 
--  :isccmd::`sflq-pool6-del` - deletes an IPv6 SFLQ pool that matches an address
+-  :iscmd:`sflq-pool6-del` - deletes an IPv6 SFLQ pool that matches an address
    range from the lease back end.
 
 All commands use JSON syntax and can be issued either using the control
@@ -1285,7 +1285,7 @@ recreating an IPv6 SFLQ pool for a prefix delegation pool is shown below:
     For large pools (e.g. >= 1 million address/prefixes), this command can take
     twenty seconds or more. During this time the server will not process
     client queries. Make sure the tool with which you send the commands
-    is confgured for long time outs. Once submitted to the lease back
+    is configured for long time outs. Once submitted to the lease back
     end the query will continue to run, even if the API client disconnects.
 
 The command returns a status that indicates either success (result 0)
index d1aaf38ba628025e3f79e8c41f3e239a9fdc3de6..db97467eebb43509197968ea9873a7763d2a1256 100644 (file)
@@ -106,7 +106,7 @@ const char* values[] = {
     "SFLQ_POOL4_CREATE_FAILED", "sflq-pool4-create command failed, (parameters: %1, reason: %2)",
     "SFLQ_POOL4_DEL", "sflq-pool4-del command succeeded, (parameters: %1) pools deleted: %2",
     "SFLQ_POOL4_DEL_FAILED", "sflq-pool4-del command failed, (parameters: %1, reason: %2)",
-    "SFLQ_POOL4_GET_ALL", "sflq-pool4-get-all command succeeded, (parameters: %1) pools found: %2",
+    "SFLQ_POOL4_GET_ALL", "sflq-pool4-get-all command succeeded, pools found: %1",
     "SFLQ_POOL4_GET_ALL_FAILED", "sflq-pool4-get-all command failed, (parameters: %1, reason: %2)",
     "SFLQ_POOL4_GET_BY_RANGE", "sflq-pool4-get-by-range command succeeded, (parameters: %1) pools found: %2",
     "SFLQ_POOL4_GET_BY_RANGE_FAILED", "sflq-pool4-get-by-range command failed, (parameters: %1, reason: %2)",
@@ -116,7 +116,7 @@ const char* values[] = {
     "SFLQ_POOL6_CREATE_FAILED", "sflq-pool6-create command failed, (parameters: %1, reason: %2)",
     "SFLQ_POOL6_DEL", "sflq-pool4-del command succeeded, (parameters: %1) pools deleted: %2",
     "SFLQ_POOL6_DEL_FAILED", "sflq-pool4-del command failed, (parameters: %1, reason: %2)",
-    "SFLQ_POOL6_GET_ALL", "sflq-pool6-get-all command succeeded, (parameters: %1) pools found: %2",
+    "SFLQ_POOL6_GET_ALL", "sflq-pool6-get-all command succeeded, pools found: %1",
     "SFLQ_POOL6_GET_ALL_FAILED", "sflq-pool6-get-all command failed, (parameters: %1, reason: %2)",
     "SFLQ_POOL6_GET_BY_RANGE", "sflq-pool6-get-by-range command succeeded, (parameters: %1) pools found: %2",
     "SFLQ_POOL6_GET_BY_RANGE_FAILED", "sflq-pool6-get-by-range command failed, (parameters: %1, reason: %2)",
index a4e1e2c66cb1310ca2d7a84124f63e9a9bf824d8..0dab1d542026254e90a467481be61a0a3dfb2975 100644 (file)
@@ -133,7 +133,7 @@ public:
     /// equal to their rhs counterparts.  Asserts if they are not "equal".
     ///
     /// @param lhs left-side instance to compare
-    /// @param rhs reft-side instance to compare
+    /// @param rhs left-side instance to compare
     /// @param lineno source line of invocation (pass in __LINE__)
     void checkPoolInfos(const SflqPoolInfo& lhs, const SflqPoolInfo& rhs, int lineno) {
         ASSERT_TRUE(lhs.lease_type_ == rhs.lease_type_ &&
@@ -172,7 +172,7 @@ public:
 
         auto family = isc::dhcp::CfgMgr::instance().getFamily();
         SflqPoolInfoCollectionPtr pool_infos(new SflqPoolInfoCollection());
-        for (int i = 0; i < pools_elem->size(); ++i) {
+        for (size_t i = 0; i < pools_elem->size(); ++i) {
             auto pool_elem = pools_elem->get(i);
             SflqPoolInfoPtr pi(new SflqPoolInfo());
             pi->start_address_ = SimpleParser::getAddress(pool_elem, "start-address");
@@ -189,7 +189,7 @@ public:
         return (pool_infos);
     }
 
-    /// @brief Extracts the value of "lease-type" from commnd parameters
+    /// @brief Extracts the value of "lease-type" from command parameters
     ///
     /// This function is used both for command parameters and unparsing
     /// JSON pool infos.
@@ -364,7 +364,7 @@ void SflqCmds4Test::sflqPool4CreateBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool4-create", "arguments": {)"
@@ -386,7 +386,7 @@ void SflqCmds4Test::sflqPool4GetAllBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool4-get-all", "arguments": {)"
@@ -422,7 +422,7 @@ void SflqCmds4Test::sflqPool4GetBySubnetBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool4-get-by-subnet", "arguments": {)"
@@ -477,7 +477,7 @@ void SflqCmds4Test::sflqPool4GetByRangeBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool4-get-by-range", "arguments": {)"
@@ -541,7 +541,7 @@ void SflqCmds4Test::sflqPool4DelBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool4-del", "arguments": {)"
@@ -621,7 +621,7 @@ SflqCmds4Test::testSflqCommands() {
     auto pool_infos = extractPools(cmd_rsp);
 
     // Should get them back in order they were created. Dummy back end doesn't sort.
-    for (int i = 0; i < test_pools.size(); ++i) {
+    for (size_t i = 0; i < test_pools.size(); ++i) {
         checkPoolInfos(*(*pool_infos)[i], *test_pools[i], __LINE__);
     }
 
@@ -944,7 +944,7 @@ void SflqCmds6Test::sflqPool6CreateBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool6-create", "arguments": {)"
@@ -966,7 +966,7 @@ void SflqCmds6Test::sflqPool6GetAllBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool6-get-all", "arguments": {)"
@@ -1002,7 +1002,7 @@ void SflqCmds6Test::sflqPool6GetBySubnetBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool6-get-by-subnet", "arguments": {)"
@@ -1057,7 +1057,7 @@ void SflqCmds6Test::sflqPool6GetByRangeBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool6-get-by-range", "arguments": {)"
@@ -1122,7 +1122,7 @@ void SflqCmds6Test::sflqPool6DelBadParams() {
 
     for ( auto const& scenario : scenarios) {
         std::ostringstream oss;
-        oss << "Scenerio at line: " << scenario.line_;
+        oss << "Scenario at line: " << scenario.line_;
         SCOPED_TRACE(oss.str());
         std::ostringstream command;
         command << R"({ "command": "sflq-pool6-del", "arguments": {)"
@@ -1208,7 +1208,7 @@ SflqCmds6Test::testSflqCommands(Lease::Type lease_type) {
     pool_infos = extractPools(cmd_rsp);
 
     // Should get them back in order they were created. Dummy back end doesn't sort.
-    for (int i = 0; i < test_pools.size(); ++i) {
+    for (size_t i = 0; i < test_pools.size(); ++i) {
         checkPoolInfos(*(*pool_infos)[i], *test_pools[i], __LINE__);
     }
 
index 77dbad12b5636eb32b0a917a811540914915a09a..3141f51538f8945f91bc7bfcdc4522068520e32a 100644 (file)
@@ -483,7 +483,7 @@ SflqCmdsImpl::extractDelegatedLen(ConstElementPtr& params,
                   << ", it must be >= 1 and =< 128");
     }
 
-    if (lease_type == Lease::TYPE_NA) {
+    if (lease_type == Lease::TYPE_NA && val != 128) {
         isc_throw(BadValue, "'delegated-len' must only be 128 for IA_NA pools");
     }
 
index 46cc28094e706153d08bbb3f4b7a74b9b83f993a..e967792b7feaa5e577743f3fde73089932e98f28 100644 (file)
@@ -25,7 +25,7 @@ namespace lease_cmds {
 /// SFLQ pools and data.
 class SflqCmdsImpl : private config::CmdsImpl {
 public:
-    /// @brief Consstructor.
+    /// @brief Constructor.
     SflqCmdsImpl() {};
 
     /// @brief Destructor.
@@ -329,12 +329,12 @@ public:
 
     /// @brief Extracts an ip address range from given parameters map
     ///
-    /// Expects the map to contain valid addressess of the the given
+    /// Expects the map to contain valid addresses of the the given
     /// family (AF_INET or AF_INET6), specified as 'start-address' and
     /// 'end-address' and where the former is less than or equal to the
     /// latter.
     ///
-    /// @param params Element map containging the command arguments.
+    /// @param params Element map containing the command arguments.
     /// @param family protocol family (AF_INET or AF_INET6).
     /// @param[out] start_address IOAddress reference which receives the
     /// extracted start-address value
@@ -353,7 +353,7 @@ public:
     /// value. If the parameter is not found in the map, the function will
     /// the function will return the default value.
     ///
-    /// @param params Element map containging the command arguments.
+    /// @param params Element map containing the command arguments.
     /// @param name name of the desired parameter.
     /// @param default_value value to return if the parameter is optional and
     /// not specified.
@@ -369,7 +369,7 @@ public:
     /// if it is present and is >= 1 and <= 128. If it is not present
     /// it returns a value of 128.
     ///
-    /// @param params Element map containging the command arguments.
+    /// @param params Element map containing the command arguments.
     /// @param lease_type Lease::Type supplied with the arguments (IA_NA
     /// or IA_PD)
     ///
@@ -384,7 +384,7 @@ public:
     /// For v4 it can be either "V4" or "3", for V6 it can be "IA_NA"
     /// "0", "IA_PD", or "2".
     ///
-    /// @param params Element map containging the command arguments.
+    /// @param params Element map containing the command arguments.
     /// @param family protocol family (AF_INET or AF_INET6).
     ///
     /// @throw BadValue if the parameter is not valid for the protocol
@@ -395,7 +395,7 @@ public:
 
 /// @brief Wrapper class around SFLQ pool commands.
 ///
-/// This provides the interfacew through which callouts
+/// This provides the interface through which callouts
 /// execute the commands.
 class SflqCmds {
 public:
index f50e6a950b03818c076da914368f180bb196b984..f61c7fee1f7b4bc57af88b3e236fd744532cdb98 100644 (file)
@@ -1870,7 +1870,7 @@ TEST_F(IfaceMgrTest, getIfaceByIndex) {
     ASSERT_TRUE(iface);
     EXPECT_EQ("lo", iface->getName());
 
-    // Attemt to get an undefined interface.
+    // Attempt to get an undefined interface.
     iface = ifacemgr.getIface(3);
     EXPECT_FALSE(iface);
 
index c41cebeb998d1c19bcf9b5db467f14cfdffeab5f..64182ed1769ee0e34524b7148047e4c47eda431e 100644 (file)
@@ -59,7 +59,7 @@ struct SflqPool {
 
     /// @brief Creates an SflqPoolInfo instance from this pool.
     ///
-    /// SflqPoolInfo is the pool representaion returned by SFLQ API
+    /// SflqPoolInfo is the pool representation returned by SFLQ API
     /// "get" functions. The SflqPoolInfo timestamp members are set
     /// to the current time.
     ///
index e16bfa340baf6c4667070e416b3493250c91b6bf..22ccdd43526b63a2fc1df716e33442aedaadd878 100644 (file)
@@ -1,6 +1,6 @@
 {
     "access": "write",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command instructs the lease back end to create a v4 SFLQ pool and its free lease data."
     ],
@@ -8,11 +8,10 @@
         "{",
         "    \"command\": \"sflq-pool4-create\",",
         "    \"arguments\": {",
-        "       \"start-address\": \"1.2.3.4\",",  
-        "       \"end-address\": \"1.2.3.4\",",  
-        "       \"subnet-id\": 123",
+        "       \"start-address\": \"1.2.3.4\",",
+        "       \"end-address\": \"1.2.3.4\",",
+        "       \"subnet-id\": 123,",
         "       \"recreate\" : false",
-        "        } ]",
         "    }",
         "}"
     ],
index 9e01fd35620ab8203849c5a9d1db1aed045199c1..41f181750896c19c5a89e67a16f35f62fdf58eae 100644 (file)
@@ -1,15 +1,15 @@
 {
     "access": "write",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command deletes a pool that exactly matches an address range from the lease back end."
     ],
     "cmd-syntax": [
         "{",
-        "   \"command\": \"sflq-pool4-del\"",
+        "   \"command\": \"sflq-pool4-del\",",
         "   \"arguments\": {",
-        "       \"end-address\": \"192.0.2.255\",",
         "       \"start-address\": \"192.0.2.0\",",
+        "       \"end-address\": \"192.0.2.255\",",
         "       \"force\": true",
         "   }",
         "}"
index 98d97d0b82a88164aa3695c1f451925049155a0d..d67c4159455aa0c3d8921631962f1c888f35c607 100644 (file)
@@ -1,6 +1,6 @@
 {
     "access": "read",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command fetches a list of all v4 SFLQ pools from the lease back end."
     ],
@@ -26,7 +26,8 @@
         "            \"start-address\": \"192.0.2.0\",",
         "            \"subnet-id\": 6",
         "       }",
-        "]]",
+        "   ]",
+        "},",
         "\"result\": 0,",
         "\"text\": \"1 pool(s) found.\"",
         "}"
index 03cb64e54a1523e9ca5afdf4c229f735a4d4ba73..e975cbbd91cb94e2c0be3dbde0aad7130b54953c 100644 (file)
@@ -1,15 +1,15 @@
 {
     "access": "read",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command fetches a list of all v4 SFLQ pools that overlap an address range from the lease back end."
     ],
     "cmd-syntax": [
         "{",
-        "   \"command\": \"sflq-pool4-get-get-by-range\"",
+        "   \"command\": \"sflq-pool4-get-by-range\",",
         "   \"arguments\": {",
-        "       \"end-address\": \"192.0.2.255\",",
-        "       \"start-address\": \"192.0.2.0\"",
+        "       \"start-address\": \"192.0.2.0\",",
+        "       \"end-address\": \"192.0.2.255\"",
         "   }",
         "}"
     ],
@@ -30,7 +30,8 @@
         "            \"start-address\": \"192.0.2.0\",",
         "            \"subnet-id\": 123",
         "       }",
-        "]]",
+        "   ]",
+        "},",
         "\"result\": 0,",
         "\"text\": \"1 pool(s) found.\"",
         "}"
index 9c9054277fcb8b94a778e47114d61f05ac956fd7..22e16a1d74a8c10e0e4db6a852c6d75d2ce4647b 100644 (file)
@@ -1,12 +1,12 @@
 {
     "access": "read",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command fetches a list of all v4 SFLQ pools that belong to a subnet from the lease back end."
     ],
     "cmd-syntax": [
         "{",
-        "   \"command\": \"sflq-pool4-get-get-by-subnet\"",
+        "   \"command\": \"sflq-pool4-get-by-subnet\",",
         "   \"arguments\": {",
         "       \"subnet-id\": 123",
         "   }",
@@ -29,7 +29,8 @@
         "            \"start-address\": \"192.0.2.0\",",
         "            \"subnet-id\": 123",
         "       }",
-        "]]",
+        "   ]",
+        "},",
         "\"result\": 0,",
         "\"text\": \"1 pool(s) found.\"",
         "}"
index 3371415253e411a7f0831daf787223398258eadc..d6e9809400639ccbd5c0ae7dc56ed53ac5c56ea4 100644 (file)
@@ -1,6 +1,6 @@
 {
     "access": "write",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command instructs the lease back end to create a v6 SFLQ pool and its free lease data."
     ],
@@ -8,12 +8,11 @@
         "{",
         "    \"command\": \"sflq-pool6-create\",",
         "    \"arguments\": {",
-        "       \"start-address\": \"2001:db8:1::\",",  
-        "       \"end-address\": \"2001:db8:1::FFFF\",",  
+        "       \"start-address\": \"2001:db8:1::\",",
+        "       \"end-address\": \"2001:db8:1::ffff\",",
         "       \"lease-type\": \"IA_PD\"," ,
         "       \"delegated-len\": 120,",
         "       \"recreate\" : false",
-        "        } ]",
         "    }",
         "}"
     ],
index c329aee496df66d5b893d1dc6d2cabe9477f277e..87f95444b9dfd59d9600d89e4a7bcdedd21e2961 100644 (file)
@@ -1,15 +1,15 @@
 {
     "access": "write",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command deletes a pool that exactly matches an address range from the lease back end."
     ],
     "cmd-syntax": [
         "{",
-        "   \"command\": \"sflq-pool6-get-get-by-range\"",
+        "   \"command\": \"sflq-pool6-del\",",
         "   \"arguments\": {",
+        "       \"start-address\": \"3001::ffff\",",
         "       \"end-address\": \"3001::10\",",
-        "       \"start-address\": \"3001::FFFF\",",
         "       \"force\": true",
         "   }",
         "}"
index 5a4d7c5dc906d3230864eadf12d5963b37333deb..17a48bb0c3f6f5fd0e9ad5fba062ca4d9f7271d6 100644 (file)
@@ -1,6 +1,6 @@
 {
     "access": "read",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command fetches a list of all v6 SFLQ pools from the lease back end."
     ],
index f950fde046a117ffae6ebd792fe8c55d434a1a60..7affb7bfa4b1f6aa5cf74d68c289f8e645805239 100644 (file)
@@ -1,15 +1,15 @@
 {
     "access": "read",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command fetches a list of all v6 SFLQ pools that overlap an address range from the lease back end."
     ],
     "cmd-syntax": [
         "{",
-        "   \"command\": \"sflq-pool6-get-get-by-range\"",
+        "   \"command\": \"sflq-pool6-get-by-range\",",
         "   \"arguments\": {",
-        "       \"end-address\": \"3001::FFFF\",",
-               "       \"start-address\": \"3001::10\"",
+        "       \"start-address\": \"3001::10\",",
+        "       \"end-address\": \"3001::ffff\"",
         "   }",
         "}"
     ],
index af57ad0a3b93a22db8fb29fd07530a0987dc233f..54b7a17af99040ecb27ce0c6141c34a57f96b2a0 100644 (file)
@@ -1,12 +1,12 @@
 {
     "access": "read",
-    "avail": "3.2.0",
+    "avail": "3.1.9",
     "brief": [
         "This command fetches a list of all v6 SFLQ pools that belong to a subnet from the lease back end."
     ],
     "cmd-syntax": [
         "{",
-        "   \"command\": \"sflq-pool6-get-get-by-subnet\"",
+        "   \"command\": \"sflq-pool6-get-by-subnet\",",
         "   \"arguments\": {",
         "       \"subnet-id\": 100",
         "   }",