bundles/dhcpd: adjust indentation in dhcpd.conf
This commit is contained in:
parent
f6dafbc78e
commit
cdef8cdb13
1 changed files with 12 additions and 11 deletions
|
@ -7,7 +7,8 @@ ddns-update-style none;
|
|||
|
||||
authoritative;
|
||||
|
||||
% for identfier, subnet in dhcp_config.get('subnets', {}).items():
|
||||
% for identifier, subnet in dhcp_config.get('subnets', {}).items():
|
||||
# subnet '${identifier}'
|
||||
subnet ${subnet['subnet']} netmask ${subnet['netmask']} {
|
||||
% if subnet.get('range_lower', None) and subnet.get('range_higher', None):
|
||||
range ${subnet['range_lower']} ${subnet['range_higher']};
|
||||
|
@ -16,11 +17,11 @@ subnet ${subnet['subnet']} netmask ${subnet['netmask']} {
|
|||
default-lease-time ${subnet.get('default-lease-time', 600)};
|
||||
max-lease-time ${subnet.get('max-lease-time', 3600)};
|
||||
% for option, value in sorted(subnet.get('options', {}).items()):
|
||||
% if re.match('([^0-9\.,\ ])', value):
|
||||
% if re.match('([^0-9\.,\ ])', value):
|
||||
option ${option} "${value}";
|
||||
% else:
|
||||
% else:
|
||||
option ${option} ${value};
|
||||
% endif
|
||||
% endif
|
||||
% endfor
|
||||
}
|
||||
% endfor
|
||||
|
|
Loading…
Reference in a new issue