2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#2883] changed declined-nas to declined-addresses

This commit is contained in:
Razvan Becheriu
2023-06-14 20:23:35 +03:00
parent c6c2ead8a2
commit df21029e5b
7 changed files with 15 additions and 15 deletions

View 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 ],

View 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,

View 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);

View 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": [

View 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": [

View 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"

View 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 ],",