Less noise on stdout
This commit is contained in:
parent
cf61ba3500
commit
628d5ae5c3
2 changed files with 2 additions and 10 deletions
|
@ -104,7 +104,7 @@ ff:ff:ff:ff:ff:fe,10.6.122.98
|
||||||
ff:ff:ff:ff:ff:fe,10.6.122.99
|
ff:ff:ff:ff:ff:fe,10.6.122.99
|
||||||
# {"color": "blue", "reserved-by": "Andy"}
|
# {"color": "blue", "reserved-by": "Andy"}
|
||||||
ff:ff:ff:ff:ff:fe,10.6.122.100
|
ff:ff:ff:ff:ff:fe,10.6.122.100
|
||||||
# {"reserved-by": "Andy"}
|
# {"color": "purple", "reserved-by": "Andy"}
|
||||||
12:24:42:23:24:45,10.6.122.101,set:client122442232445
|
12:24:42:23:24:45,10.6.122.101,set:client122442232445
|
||||||
ff:ff:ff:ff:ff:fe,10.6.122.102
|
ff:ff:ff:ff:ff:fe,10.6.122.102
|
||||||
ff:ff:ff:ff:ff:fe,10.6.122.103
|
ff:ff:ff:ff:ff:fe,10.6.122.103
|
||||||
|
|
10
main.py
10
main.py
|
@ -371,15 +371,7 @@ def write_dhcp_files(ipmap):
|
||||||
def ip(last_byte):
|
def ip(last_byte):
|
||||||
valid_colors = "black red gold green blue purple".split()
|
valid_colors = "black red gold green blue purple".split()
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
# ImmutableMultiDict([('reserved-by', 'Andy'),
|
#print(request.form)
|
||||||
# ('dhcp-client', 'mac'),
|
|
||||||
# ('reserved', 'on'),
|
|
||||||
# ('dhcp', 'on'),
|
|
||||||
# ('dhcp-client-mac', '00:23:54:8c:65:13'),
|
|
||||||
# ('dhcp-client-mac', '10.6.122.2')])
|
|
||||||
# ImmutableMultiDict([('dhcp-client', 'pool'), ('dhcp', 'on')])
|
|
||||||
# ImmutableMultiDict([('reserved', 'on'), ('reserved-by', 'Andy')])
|
|
||||||
print(request.form)
|
|
||||||
|
|
||||||
reserved_by = request.form.get('reserved-by', '')[:100]
|
reserved_by = request.form.get('reserved-by', '')[:100]
|
||||||
dhcp_pool = request.form.get('dhcp-client', '') == 'pool'
|
dhcp_pool = request.form.get('dhcp-client', '') == 'pool'
|
||||||
|
|
Loading…
Reference in a new issue