<div dir="ltr">Hi,<div><br></div><div>Is there any plan to add name-value pair when configuring options in kea.conf?</div><div>I will give you an example of the way this could look like and what will imply.</div><div>At the moment declaring a new option looks like this:</div><div><div>            {</div><div>                "name": "option-name",</div><div>                "code": XX,</div><div>                "type": "record",</div><div>                "array": false,</div><div>                "record-types": "uint8, uint16, uint32",</div><div>                "space": "option-space",</div><div>                "encapsulate": ""</div><div>            },</div></div><div>and the definition looks like this:</div><div><div>            {</div><div>                "name": "option=name",</div><div>                "code": XX,</div><div>                "space": "option-space",</div><div>                "csv-format": true,</div><div>                "data": "1,16456, 655367"</div><div>            },</div></div><div><div><br></div><div>The new declaration could look like this:</div><div><div>            {</div><div>                "name": "option-name",</div><div>                "code": XX,</div><div>                "type": "record",</div><div>                "array": false,</div><div>                "record-types": "uint8, uint16, uint32",</div><div>                "record-names": "param1, param2, param3",</div><div>                "space": "option-space",</div><div>                "encapsulate": ""</div><div>            },</div></div><div>and the definition could look like:</div><div><div>            {</div><div>                "name": "option=name",</div><div>                "code": XX,</div><div>                "space": "option-space",</div><div>                "csv-format": true,</div><div>                "data-type": "name-data"</div><div>                "data": "param1=1, param2=16456, param3=655367"</div><div>            },</div></div><div><br></div><div>This will imply:</div><div> - adding a new 'record-names' configuration option in 'option-def':</div><div>record-names: enumeration of record parameter names</div><div> - adding a new 'data-type' configuration type in 'option-data' which can have 2 values:</div><div>"data" or "name-data" which will determine the way the values are enumerated:</div><div>data: just as before</div><div>name-data: enumeration of name=value (only if the record-names parameter is configured)</div><div> - the json configuration parser will check that all name-value pairs are present (regardless of the order they are enumerated)</div><div><br></div><div>This will be useful for the user to configure the record parameters in any order and to visualize the configured data more easily.</div><div><br></div><div>Regards,</div><div>Razvan</div><div><br></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><table style="font-family:"Times New Roman";margin:0px;padding:0px;border:0px;color:rgb(51,51,51)"><tbody><tr><td><img src="https://www.qualitance.com/Q48x48.gif" style="width: 48px; padding-right: 5px; vertical-align: middle;"></td><td style="font-stretch:normal;font-size:11px;font-family:Verdana;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:5px"><strong>Razvan Becheriu</strong>  <span style="color:rgb(190,190,190)">|</span>  senior software engineer  <span style="color:rgb(190,190,190)">|</span>  QUALITANCE™<br><strong>RO:</strong> +00 (000) 000 000  <span style="color:rgb(190,190,190)">|</span>  <strong>office:</strong> +40 (372) 944 741<br><a href="https://www.google.ro/maps/place/QUALITANCE/@44.433653,26.079464,17z/data=!4m6!1m3!3m2!1s0x40b1ff173c5bc0b9:0x7226343f810c7ede!2sQUALITANCE!3m1!1s0x40b1ff173c5bc0b9:0x7226343f810c7ede?hl=ro" style="text-decoration:none;color:rgb(51,51,51)" target="_blank">Opera Center bldg. 2, fl. 7-8, 2 Dr. Nicolae D. Staicovici, Bucharest 050556</a><br><a href="mailto:razvan.becheriu@qualitance.com" style="text-decoration:none;color:rgb(51,51,51)" target="_blank">razvan.becheriu@qualitance.com</a>  <span style="color:rgb(190,190,190)">|</span>  <a href="https://www.qualitance.com/" style="text-decoration:none;color:rgb(51,51,51)" target="_blank">www.qualitance.com</a></td></tr></tbody></table><table style="font-family:"Times New Roman";margin:0px;padding:0px;border:0px;color:rgb(51,51,51)"><tbody><tr><td style="font-stretch:normal;font-size:9px;font-family:Verdana;color:rgb(153,153,153)">--<br>The information contained in this email is confidential. It is intended only for the stated addressee and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in another way use or reply to the information contained in this email. Such unauthorised use may be unlawful. If you have received this email in error, please notify the sender immediately and delete all copies from your computer and network.</td></tr></tbody></table></div></div>
</div></div>