<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Francis </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks again for the reply . But i am slightly confused . In one of your previous reply you mentioned </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
"<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">=> I thought use a sheat of paper to compute the wanted value of the</span>
<pre><span style="background-color: rgb(255, 255, 0);"><b>vendor option with </b></span><span style="background-color: rgb(255, 255, 0); color: rgb(237, 92, 87);"><b>multiple vendors</b></span><span style="background-color: rgb(255, 255, 0);"><b> and insert the hexadecimal result
in the configuration</b></span>. Now you can do it using a hook and some code
merging (v4) or pushing (v6) multiple vendor options with one vendor
per option from the configuration..."
</pre>
<pre><br></pre>
<pre>this reply made me believe that its possible to do it through config file. and i got the same reply from other source at kea too.</pre>
<pre>do you know when #1518 will be available in the build ? </pre>
<pre><br></pre>
<pre><br></pre>
<pre><br></pre>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Francis Dupont <fdupont@isc.org><br>
<b>Sent:</b> Saturday, April 2, 2022 5:01 AM<br>
<b>To:</b> sathish k <sat98@hotmail.com><br>
<b>Cc:</b> Francis Dupont <fdupont@isc.org>; kea-dev@lists.isc.org <kea-dev@lists.isc.org>; kea-users <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [kea-dev] Vendor Specific Options (Code 17)</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">sathish k writes:<br>
> Can you provide Sample config file that supports multiple vendors scena=<br>
> rio below . Thanks<br>
<br>
=> I can't because it is not currently supported.<br>
<br>
> "option-data": [<br>
> {<br>
> "space": "dhcp6",<br>
> "name": "vendor-opts",<br>
> "code": 17,<br>
> "data": "0x270f"<br>
> },<br>
> {<br>
> "space": "dhcp6",<br>
> "name": "vendor-opts",<br>
> "code": 17,<br>
> "data": "0x6774"<br>
> },<br>
<br>
=> note if it is allowed to specify more than once an option data of course<br>
only one will be applied.<br>
<br>
> The Relay -Reply that I got shows only one vendor (Cisco ) even though opti=<br>
> on-data has Cisco and xyz(9999)<br>
<br>
=> yes and it will be the result until #1518 is fully implemented.<br>
I am afraid you have to write some code to do this.<br>
<br>
Regards<br>
<br>
Francis Dupont <fdupont@isc.org><br>
<br>
PS: the OptionCollection is a multimap so if you add multiple options<br>
sharing the same code point they will be added to the packet. Now<br>
there is no way to add more than one option 16 or 17 in the collection<br>
without writing a hook doing this. The config can help by building<br>
each option you want so the hook can just add the missing options.<br>
<br>
PPS: the flex_option hook does not help here: it does not handle<br>
multiple vendor options more than other code. Now it is planned to<br>
add multiple vendor supports including for the flex_option in #1518<br>
but the exact milestone is not yet scheduled...<br>
</div>
</span></font></div>
</body>
</html>