Skip to content
  • Robert Ricci's avatar
    New script: dhcpd_makeconf · fbb56b98
    Robert Ricci authored
    Usage: dhcpd_makeconf [-h] [-v] <templatefile>
    templatefile should be a skeleton dhcp.conf file, without entires for each node.
    The string '%%nodetype=<type>' will be expanded to entries for all nodes of type
    <type> in the following form:
    host $ip {
    	hardware ethernet $mac;
    	option host-name '$node_id';
    	fixed_address $ip;
    }
    
    The generated dhcp conf file is printed on stdout.
    
    The -v option causes dhcpd_makeconf to use virtual names, rather than
    physical ones, for hostnames.
    fbb56b98