Changeset 10368 in genesis for tools


Ignore:
Timestamp:
Apr 7, 2012, 10:22:52 AM (13 years ago)
Author:
rick
Message:

Make sure to use FQDN as fullname for DHCP to avoid problems with equally named
devices (like proxyFoo en nodeFoo).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10367 r10368  
    297297  """ Generate configuration file '/usr/local/etc/dnsmasq.conf' """
    298298  output = generate_header()
    299   output += """\
     299  output += Template("""\
    300300# DHCP server options
    301301dhcp-authoritative
    302302dhcp-fqdn
    303 domain=dhcp.%(autogen_nodename_lower)s.%(autogen_domain)s
     303domain=dhcp.{{ autogen_fqdn }}.{{ autogen_domain }}
    304304domain-needed
    305305expand-hosts
     
    308308# Low memory footprint
    309309cache-size=10000
    310   \n""" % datadump
     310
     311\n""").render(datadump)
    311312
    312313  for iface_key in datadump['autogen_iface_keys']:
     
    520521
    521522  datadump['autogen_domain'] = datadump['domain'] if datadump.has_key('domain') else 'wleiden.net'
    522   datadump['autogen_nodename_lower'] = datadump['nodename'].lower()
    523523  return datadump
    524524
Note: See TracChangeset for help on using the changeset viewer.