on release {} and DHCPv6

perl-list perl-list at network1.net
Wed Nov 23 13:44:04 UTC 2016


Anyone have any idea on accessing DHCPv6 options in the "on release {}" block? 

> From: "Darren Ankney" <perl-list at network1.net>
> To: dhcp-users at lists.isc.org
> Sent: Tuesday, November 22, 2016 10:07:39 AM
> Subject: on release {} and DHCPv6

> Folks,

> I am testing what custom logs can be created with DHCPv6. I have this in my
> config file:

> on release {
> log(info,"THIS IS A RELEASE!");
> if exists dhcp6.ia-na {
> log(info,
> concat( "RELEASED,",
> "IP,",binary-to-ascii(16, 16, ":", substring(option dhcp6.ia-na,16,16))
> )
> );
> }
> if exists dhcp6.client-id {
> log(info,
> concat( "RELEASED,",
> "DUID,",binary-to-ascii(16, 8, ":", option dhcp6.client-id)
> )
> );
> }
> }

> 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.

> However, in the log, all that is printed is "THIS IS A RELEASE!".

> These same sorts of log messages work fine in on commit {}

> 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?

> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20161123/4c7690b3/attachment.html>


More information about the dhcp-users mailing list