]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2883] changed declined-nas to declined-addresses
authorRazvan Becheriu <razvan@isc.org>
Wed, 14 Jun 2023 17:23:35 +0000 (20:23 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 21 Jun 2023 08:54:26 +0000 (11:54 +0300)
doc/sphinx/arm/hooks-stat-cmds.rst
src/bin/dhcp6/dhcp6_srv.cc
src/hooks/dhcp/stat_cmds/stat_cmds.cc
src/hooks/dhcp/stat_cmds/stat_cmds.dox
src/hooks/dhcp/stat_cmds/stat_cmds.h
src/hooks/dhcp/stat_cmds/tests/stat_cmds_unittest.cc
src/share/api/stat-lease6-get.json

index a5d5d79699f90afdd4f01d465017fe81af775539..475caf06ada397593ac54fc2f750fd2df53905ae 100644 (file)
@@ -188,7 +188,7 @@ The response to either command will contain three elements:
       -  ``assigned-nas`` - the number of NA addresses in the subnet that
          are currently assigned to a client.
 
-      -  ``declined-nas`` - the number of NA addresses that are currently
+      -  ``declined-addresses`` - the number of NA addresses that are currently
          declined and are thus unavailable for assignment.
 
       -  ``total-pds`` - the total number of PD prefixes available of DHCPv6
@@ -239,7 +239,7 @@ PD pools:
        "text": "stat-lease6-get: 2 rows found",
        "arguments": {
          "result-set": {
-           "columns": [ "subnet-id", "total-nas", "cumulative-assigned-nas", "assigned-nas", "declined-nas", "total-pds", "cumulative-assigned-pds", "assigned-pds" ],
+           "columns": [ "subnet-id", "total-nas", "cumulative-assigned-nas", "assigned-nas", "declined-addresses", "total-pds", "cumulative-assigned-pds", "assigned-pds" ],
            "rows": [
              [ 10, 4096, 5000, 2400, 3, 0, 0, 0],
              [ 20, 0, 0, 0, 0, 1048, 300, 233 ],
index d334b12aa0954b2bb38578b23533776f563a38fe..c47e17c0cb6b273f6765435c33b7d07754547a3c 100644 (file)
@@ -3990,7 +3990,7 @@ Dhcpv6Srv::declineLease(const Pkt6Ptr& decline, const Lease6Ptr lease,
     // We do not want to decrease the assigned-nas at this time. While
     // technically a declined address is no longer allocated, the
     // primary usage of the assigned-nas statistic is to monitor pool
-    // utilization. Most people would forget to include declined-nas
+    // utilization. Most people would forget to include declined-addresses
     // in the calculation, and simply do assigned-nas/total-nas. This
     // would have a bias towards under-representing pool utilization,
     // if we decreased allocated immediately after receiving DHCPDECLINE,
index 4697611419596ca59362be0012685f8a7ca9f8ff..e09047f470152e915ddffb8596a50638076ad680 100644 (file)
@@ -592,7 +592,7 @@ LeaseStatCmdsImpl::makeResultSet6(const ElementPtr& result_wrapper,
     std::vector<std::string>column_labels = { "subnet-id", "total-nas",
                                               "cumulative-assigned-nas",
                                               "assigned-nas",
-                                              "declined-nas", "total-pds",
+                                              "declined-addresses", "total-pds",
                                               "cumulative-assigned-pds",
                                               "assigned-pds" };
     ElementPtr value_rows = createResultSet(result_wrapper, column_labels);
index f27edd6f4205efc6e6d9cfd1b6f69b578fd49664..213604654413b4110e0e39de63bda6fc0c2f8d84 100644 (file)
@@ -187,7 +187,7 @@ and DHCPv6 response might look like this:
         "result-set": {
            "columns": [
                 "subnet-id", "total-nas", "cumulative-assigned-nas",
-                "assigned-nas", "declined-nas", "total-pds",
+                "assigned-nas", "declined-addresses", "total-pds",
                 "cumulative-assigned-pds", "assigned-pds"
            ],
            "rows": [
index 97d51637636af4cb28c9cf147fc89f6844568e71..22052555748c6add1f56053bc48b1808936934cd 100644 (file)
@@ -99,7 +99,7 @@ public:
     ///             "timestamp": "2018-03-22 09:43:30.815371",
     ///             "columns": ["subnet_id", "total-nas",
     ///                         "cumulative-assigned-nas",
-    ///                         "assigned-nas", "declined-nas",
+    ///                         "assigned-nas", "declined-addresses",
     ///                         "total-pds", "cumulative-assigned-pds",
     ///                         "assigned-pds"],
     ///             "rows": [
index 3d0d7d089a389771d73de8e85b39ba9cae7044e6..397479a41242d0825ec239c00d2aa5cc83351adb 100644 (file)
@@ -1253,7 +1253,7 @@ TEST_F(StatCmdsTest, statLease6GetValid) {
         "   \"columns\": [\n"
         "        \"subnet-id\", \"total-nas\",\n"
         "        \"cumulative-assigned-nas\", \"assigned-nas\",\n"
-        "        \"declined-nas\", \"total-pds\",\n"
+        "        \"declined-addresses\", \"total-pds\",\n"
         "        \"cumulative-assigned-pds\", \"assigned-pds\"\n"
         "   ],\n"
         "   \"rows\": [\n"
@@ -1277,7 +1277,7 @@ TEST_F(StatCmdsTest, statLease6GetValid) {
         "   \"columns\": [\n"
         "        \"subnet-id\", \"total-nas\",\n"
         "        \"cumulative-assigned-nas\", \"assigned-nas\",\n"
-        "        \"declined-nas\", \"total-pds\",\n"
+        "        \"declined-addresses\", \"total-pds\",\n"
         "        \"cumulative-assigned-pds\", \"assigned-pds\"\n"
         "   ],\n"
         "   \"rows\": [\n"
@@ -1304,7 +1304,7 @@ TEST_F(StatCmdsTest, statLease6GetValid) {
         "   \"columns\": [\n"
         "        \"subnet-id\", \"total-nas\",\n"
         "        \"cumulative-assigned-nas\", \"assigned-nas\",\n"
-        "        \"declined-nas\", \"total-pds\",\n"
+        "        \"declined-addresses\", \"total-pds\",\n"
         "        \"cumulative-assigned-pds\", \"assigned-pds\"\n"
         "   ],\n"
         "   \"rows\": [\n"
@@ -1330,7 +1330,7 @@ TEST_F(StatCmdsTest, statLease6GetValid) {
         "   \"columns\": [\n"
         "        \"subnet-id\", \"total-nas\",\n"
         "        \"cumulative-assigned-nas\", \"assigned-nas\",\n"
-        "        \"declined-nas\", \"total-pds\",\n"
+        "        \"declined-addresses\", \"total-pds\",\n"
         "        \"cumulative-assigned-pds\", \"assigned-pds\"\n"
         "   ],\n"
         "   \"rows\": [\n"
@@ -1358,7 +1358,7 @@ TEST_F(StatCmdsTest, statLease6GetValid) {
         "   \"columns\": [\n"
         "        \"subnet-id\", \"total-nas\",\n"
         "        \"cumulative-assigned-nas\", \"assigned-nas\",\n"
-        "        \"declined-nas\", \"total-pds\",\n"
+        "        \"declined-addresses\", \"total-pds\",\n"
         "        \"cumulative-assigned-pds\", \"assigned-pds\"\n"
         "   ],\n"
         "   \"rows\": [\n"
@@ -1386,7 +1386,7 @@ TEST_F(StatCmdsTest, statLease6GetValid) {
         "   \"columns\": [\n"
         "        \"subnet-id\", \"total-nas\",\n"
         "        \"cumulative-assigned-nas\", \"assigned-nas\",\n"
-        "        \"declined-nas\", \"total-pds\",\n"
+        "        \"declined-addresses\", \"total-pds\",\n"
         "        \"cumulative-assigned-pds\", \"assigned-pds\"\n"
         "   ],\n"
         "   \"rows\": [\n"
@@ -1414,7 +1414,7 @@ TEST_F(StatCmdsTest, statLease6GetValid) {
         "   \"columns\": [\n"
         "        \"subnet-id\", \"total-nas\",\n"
         "        \"cumulative-assigned-nas\", \"assigned-nas\",\n"
-        "        \"declined-nas\", \"total-pds\",\n"
+        "        \"declined-addresses\", \"total-pds\",\n"
         "        \"cumulative-assigned-pds\", \"assigned-pds\"\n"
         "   ],\n"
         "   \"rows\": [\n"
@@ -1581,7 +1581,7 @@ TEST_F(StatCmdsTest, statLease6OrphanedStats) {
         "   \"columns\": [\n"
         "        \"subnet-id\", \"total-nas\",\n"
         "        \"cumulative-assigned-nas\", \"assigned-nas\",\n"
-        "        \"declined-nas\", \"total-pds\",\n"
+        "        \"declined-addresses\", \"total-pds\",\n"
         "        \"cumulative-assigned-pds\", \"assigned-pds\"\n"
         "   ],\n"
         "   \"rows\": [\n"
index 76e026a530235347da56d4df336618982aeac483..389ec83b8bfed3706251303f854a47d11ebdb769 100644 (file)
@@ -21,7 +21,7 @@
         "    \"text\": \"stat-lease6-get: 2 rows found\",",
         "    \"arguments\": {",
         "      \"result-set\": {",
-        "        \"columns\": [ \"subnet-id\", \"total-nas\", \"cumulative-assigned-nas\", \"assigned-nas\", \"declined-nas\", \"total-pds\", \"cumulative-assigned-pds\", \"assigned-pds\" ],",
+        "        \"columns\": [ \"subnet-id\", \"total-nas\", \"cumulative-assigned-nas\", \"assigned-nas\", \"declined-addresses\", \"total-pds\", \"cumulative-assigned-pds\", \"assigned-pds\" ],",
         "        \"rows\": [",
         "          [ 10, 4096, 3000, 2400, 3, 0, 0],",
         "          [ 20, 0, 0, 0, 1048, 500, 233 ],",