Changeset 2109


Ignore:
Timestamp:
10/03/17 23:13:43 (6 years ago)
Author:
nanardon
Message:

Fix: dhcp zone output making fixed-address being repeat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Buildnet.pm

    r2102 r2109  
    705705                    my $fmac = $mac; 
    706706                    $fmac =~ s/://g; 
    707                     $output .= sprintf("host %s-%s$label {\n", $nethost, lc($fmac)); 
     707                    $output .= sprintf("host %s-%s%s {\n", $nethost, lc($fmac), $label); 
    708708                    $output .= sprintf("    hardware ethernet %s;\n", $mac); 
    709                     $output .= sprintf("    fixed-address$fixedparam %s;\n", $retainip) 
     709                    $output .= sprintf("    $fixedparam %s;\n", $retainip) 
    710710                    if ($retainip); 
    711711                    $output .= "}\n\n"; 
Note: See TracChangeset for help on using the changeset viewer.