- Timestamp:
- Apr 7, 2012, 10:22:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10367 r10368 297 297 """ Generate configuration file '/usr/local/etc/dnsmasq.conf' """ 298 298 output = generate_header() 299 output += """\299 output += Template("""\ 300 300 # DHCP server options 301 301 dhcp-authoritative 302 302 dhcp-fqdn 303 domain=dhcp. %(autogen_nodename_lower)s.%(autogen_domain)s303 domain=dhcp.{{ autogen_fqdn }}.{{ autogen_domain }} 304 304 domain-needed 305 305 expand-hosts … … 308 308 # Low memory footprint 309 309 cache-size=10000 310 \n""" % datadump 310 311 \n""").render(datadump) 311 312 312 313 for iface_key in datadump['autogen_iface_keys']: … … 520 521 521 522 datadump['autogen_domain'] = datadump['domain'] if datadump.has_key('domain') else 'wleiden.net' 522 datadump['autogen_nodename_lower'] = datadump['nodename'].lower()523 523 return datadump 524 524
Note:
See TracChangeset
for help on using the changeset viewer.