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:
@@ -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 ],
|
||||
|
@@ -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,
|
||||
|
@@ -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);
|
||||
|
@@ -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": [
|
||||
|
@@ -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": [
|
||||
|
@@ -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"
|
||||
|
@@ -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 ],",
|
||||
|
Reference in New Issue
Block a user