<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0cm;
font-size:10.5pt;
font-family:Menlo;
color:black;}
p.p2, li.p2, div.p2
{mso-style-name:p2;
margin:0cm;
font-size:10.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:none;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="en-CH" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">HI Stork team,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Looks like the Stork server GUI (version 1.10 and 1.11, at least; not checked on prior versions, agent version 1.10 and 1.11 too showing the same behavior; KEA 2.2) is not displaying properly the utilization of IPv4 subnets.
The Kea Control Agent is showing its receiving and responding to the API call properly (log entries trimmed to relevant stuff only):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">DEBUG [kea-ctrl-agent.http/594970.140579578214272] HTTP_CLIENT_REQUEST_RECEIVED_DETAILS detailed information about well-formed request</span><span class="apple-converted-space"> </span></p>
<p class="p1"><span class="s1">received from</span></p>
<p class="p1"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="p2"><span class="s1">{"command":"stat-lease4-get","service":["dhcp4"]}</span></p>
<p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="p1"><span class="s1">DEBUG [kea-ctrl-agent.http/594970.140579578214272] HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about response sent to</span></p>
<p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="p1"><span class="s1">[ { "arguments": { "result-set": { "columns": [ "subnet-id", "total-addresses", "cumulative-assigned-addresses", "assigned-addresses", "declined-addresses" ],</span><span class="apple-converted-space"> </span></p>
<p class="p1"><span class="s1">"rows": [ [ 200, 6, 5, 0, 0 ], [ 201, 15, 0, 0, 0 ] ], "timestamp": "2023-06-13 07:36:46.830289" } }, "result": 0, "text": "stat-lease4-get[all subnets]: 2 row</span></p>
<p class="p1"><span class="s1">s found" } ]</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But the Stork GUI shows:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-ligatures:none"><img width="708" height="99" style="width:7.375in;height:1.0312in" id="Picture_x0020_1" src="cid:image001.png@01D99DDC.1E0DFF20" alt="A screenshot of a calculator
Description automatically generated with medium confidence"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It is showing the subnets (200 and 201), with the right number of total addresses, but it is not displaying the cumulative-assigned-addresses (should be 5 for the top subnet, and 83% utilization).
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">On Ipv6 subnets, I get something similar:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">{"command":"stat-lease6-get","service":["dhcp6"]}<o:p></o:p></span></p>
<p class="p1"><span class="s1">2023-06-13 08:34:55.149 INFO</span><span class="apple-converted-space">
</span><span class="s1">[kea-ctrl-agent.auth/594970.140579578214272] HTTP_CLIENT_REQUEST_AUTHORIZED received HTTP request authorized for 'stork-agent'</span><o:p></o:p></p>
<p class="p1"><span class="s1">2023-06-13 08:34:55.149 INFO</span><span class="apple-converted-space">
</span><span class="s1">[kea-ctrl-agent.commands/594970.140579578214272] COMMAND_RECEIVED Received command 'stat-lease6-get'</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="p1"><span class="s1">2023-06-13 08:34:55.241 DEBUG [kea-ctrl-agent.http/594970.140579578214272] HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about response sent</span><o:p></o:p></p>
<p class="p1"><span class="s1"><span lang="FR-CH">…<o:p></o:p></span></span></p>
<p class="p1"><span class="s1">[ { "arguments": { "result-set": { "columns": [ "subnet-id", "total-nas", "cumulative-assigned-nas", "assigned-nas", "declined-nas", "total-pds", "cumulative-a</span><o:p></o:p></p>
<p class="p1"><span class="s1">ssigned-pds", "assigned-pds" ], "rows": [ [ 200, 281474976710656, 0, 0, 0, 256, 0, 0 ], [ 201, 281474976710656, 55, 0, 0, 0, 0, 0 ], [ 202, 281474976710656, 0,</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">0, 0, 0, 0, 0 ], [ 999901, 281474976710656, 0, 0, 0, 0, 0, 0 ] ], "timestamp": "2023-06-13 08:34:55.240818" } }, "result": 0, "text": "stat-lease6-get[all sub</span><o:p></o:p></p>
<p class="p1"><span class="s1">nets]: 4 rows found" } ]<o:p></o:p></span></p>
<p class="p1"><span class="s1"><o:p> </o:p></span></p>
<p class="p1"><span class="s1"><span lang="FR-CH">And Stork GUI shows :<o:p></o:p></span></span></p>
<p class="p1"><span lang="FR-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="mso-ligatures:none"><img width="998" height="124" style="width:10.3958in;height:1.2916in" id="Picture_x0020_2" src="cid:image002.png@01D99DE4.A2929500" alt="A screenshot of a calculator
Description automatically generated with medium confidence"></span><span lang="FR-CH"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It should show the 55 addresses assigned in the bottom subnet. It can show the 256 PD prefixes available in the top one, so clearly, it is receiving the API response and doing something with it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><b><span lang="EN-US" style="color:#2F5597;mso-ligatures:none">Bertrand Buclin<o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="color:black;mso-ligatures:none">AT&T</span></p>
</div>
</body>
</html>