The dhcp template generation is broken when there is no
dns-name for interfaces set. The attached patch fixes this problem and does
some cleanup to the code. Also the entries are now named with the system record
name and interface instead of generic<idx>. This makes debugging the
template easier.
Peter