Comment 2 for bug 1556358

Revision history for this message
Mike Pontillo (mpontillo) wrote :

Still inconclusive, but I checked "man 5 dhcp-eval" and found this; it doesn't specify whether or not the ASCII values are zero-filled.

       binary-to-ascii (numeric-expr1, numeric-expr2, data-expr1, data-expr2)
         Converts the result of evaluating data-expr2 into a text string containing one
         number for each element of the result of evaluating data-expr2. Each number
         is separated from the other by the result of evaluating data-expr1. The
         result of evaluating numeric-expr1 specifies the base (2 through 16) into
         which the numbers should be converted. The result of evaluating numeric-expr2
         specifies the width in bits of each number, which may be either 8, 16 or 32.

         As an example of the preceding three types of expressions, to produce the name
         of a PTR record for the IP address being assigned to a client, one could write
         the following expression:

               concat (binary-to-ascii (10, 8, ".",
                                        reverse (1, leased-address)),
                       ".in-addr.arpa.");

We use this in etc/maas/templates/dhcp/dhcpd.conf.template now to call the notifier.

I wonder -- if this fails, will DHCP crash?