- Timestamp:
- Jan 21, 2017, 11:43:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r13735 r13761 500 500 def generate_dhcpd_conf(datadump): 501 501 """ Generate config file '/usr/local/etc/dhcpd.conf """ 502 # Redundency support, in cause local DNS server is not running/responding. 503 datadump['autogen_domain_name_servers'] = [datadump['masterip']] + [x[1] for x in get_neighbours(datadump)] 502 504 output = generate_header(datadump) 503 505 output += Template("""\ 504 506 # option definitions common to all supported networks... 505 507 option domain-name "dhcp.{{ autogen_fqdn }}"; 508 509 option domain-name-servers {{ autogen_domain_name_servers|join(", ") }}; 506 510 507 511 default-lease-time 600; … … 576 580 range %(autogen_dhcp_start)s %(autogen_dhcp_stop)s; 577 581 option routers %(autogen_addr)s; 578 option domain-name-servers %(autogen_addr)s;579 582 } 580 583 """ % datadump[iface_key]))
Note:
See TracChangeset
for help on using the changeset viewer.