<html><body><div style="font-family: Andale Mono; font-size: 10pt; color: #000000"><div>Anyone have any idea on accessing DHCPv6 options in the "on release {}" block?</div><div style="font-family: Andale Mono; font-size: 10pt; color: #000000"><br><br><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Darren Ankney" <perl-list@network1.net><br><b>To: </b>dhcp-users@lists.isc.org<br><b>Sent: </b>Tuesday, November 22, 2016 10:07:39 AM<br><b>Subject: </b>on release {} and DHCPv6<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div style="font-family: Andale Mono; font-size: 10pt; color: #000000"><div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;">Folks,</div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;"><br></div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;">I am testing what custom logs can be created with DHCPv6.  I have this in my config file:</div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;"><br></div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;"><hr></div><div>on release {</div><div>        log(info,"THIS IS A RELEASE!");</div><div>        if exists dhcp6.ia-na {</div><div>                log(info,</div><div>                        concat( "RELEASED,",</div><div>                                "IP,",binary-to-ascii(16, 16, ":", substring(option dhcp6.ia-na,16,16))</div><div>                        )</div><div>                );</div><div>        }</div><div>        if exists dhcp6.client-id {</div><div>                log(info,</div><div>                        concat( "RELEASED,",</div><div>                                "DUID,",binary-to-ascii(16, 8, ":", option dhcp6.client-id)</div><div>                        )</div><div>                );</div><div>        }</div><div>}</div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;"><hr></div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;"><br></div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;">According to a packet capture, both ia-na (option 3) and client-id (option 1) are present.  These options appear to have exactly the same content as they do during a Request.  </div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;"><br></div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;">However, in the log, all that is printed is "THIS IS A RELEASE!".</div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;"><br></div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;">These same sorts of log messages work fine in on commit {}  </div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;"><br></div><div style="color: #000000; font-family: 'Andale Mono'; font-size: 10pt;">Anyone have any idea why these options aren't available during a release?  Is there some secret sauce that I am missing here to decode these options during a release? </div></div></div><br>_______________________________________________<br>dhcp-users mailing list<br>dhcp-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/dhcp-users</blockquote></div></div><div><br></div></div></body></html>