diff --git a/main.py b/main.py index abd4d78..9cb60cc 100755 --- a/main.py +++ b/main.py @@ -17,10 +17,10 @@ from subprocess import check_call, call #app = Flask("ISABEL-2 Verifier") # That app name breaks Ubuntu 14.04 :-o app = Flask("main") app.secret_key = "6ab77f3c45447429c2ae163c260a626029519a66450e474c" -debug = True users_file = "/etc/freeradius/users.dpto2" -dhcp_hosts_file = "/etc/dnsmasq.d/dpto2/dhcp_hosts" +dhcp_hosts_file = "/etc/dnsmasq.d/dpto2/dhcp-hosts" +dhcp_hosts_file = "/etc/dnsmasq.d/dpto2/dhcp-opts" def reload_freeradius(): call("./reload_freeradius") @@ -206,6 +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) return render_template("ips.html", ipmap=ipmap) @app.route("/ip/") @@ -222,5 +223,5 @@ if __name__ == '__main__': users_file = "users.dpto2" dhcp_hosts_file = "dhcp-hosts.dpto2" dhcp_opts_file = "dhcp-opts.dpto2" - app.debug = True + app.debug = True app.run(host="0.0.0.0")