I was accidentally overwriting the dchp_hosts_file variable

This commit is contained in:
Andy Teijelo Pérez 2015-11-06 01:30:33 -05:00
parent 111c8f9db6
commit 3bbd1e3168

View file

@ -20,7 +20,7 @@ app.secret_key = "6ab77f3c45447429c2ae163c260a626029519a66450e474c"
users_file = "/etc/freeradius/users.dpto2"
dhcp_hosts_file = "/etc/dnsmasq.d/dpto2/dhcp-hosts"
dhcp_hosts_file = "/etc/dnsmasq.d/dpto2/dhcp-opts"
dhcp_opts_file = "/etc/dnsmasq.d/dpto2/dhcp-opts"
def reload_freeradius():
call("./reload_freeradius")
@ -206,7 +206,7 @@ def ips():
r = parse_dchp_host(line)
ip = int(r.ip.split(".")[-1])
ipmap[ip] = Ip(meta.get("reserved-by",""), False)
print(ipmap)
meta = {}
return render_template("ips.html", ipmap=ipmap)
@app.route("/ip/<int:addr>")