mirror of https://github.com/Aidaho12/haproxy-wi
v1.8.1
parent
6dc28eb2c8
commit
eb0f59d6ca
|
@ -31,7 +31,7 @@ funct.chooseServer("diff.py#diff", "Compare HAproxy configs", "n")
|
||||||
if form.getvalue('serv') is not None and form.getvalue('open') is not None :
|
if form.getvalue('serv') is not None and form.getvalue('open') is not None :
|
||||||
|
|
||||||
print('<form action="diff.py#diff" method="get">')
|
print('<form action="diff.py#diff" method="get">')
|
||||||
print('<center><h3><span style="padding: 75px;">Choose left</span><span style="padding: 100px;">Choose right</span></h3>')
|
print('<center><h3><span style="padding: 20px;">Choose left</span><span style="padding: 110px;">Choose right</span></h3>')
|
||||||
|
|
||||||
print('<p><select autofocus required name="left" id="left">')
|
print('<p><select autofocus required name="left" id="left">')
|
||||||
print('<option disabled selected>Choose version</option>')
|
print('<option disabled selected>Choose version</option>')
|
||||||
|
@ -64,7 +64,7 @@ if form.getvalue('serv') is not None and form.getvalue('open') is not None :
|
||||||
print('</select>')
|
print('</select>')
|
||||||
print('<input type="hidden" value="%s" name="serv">' % serv)
|
print('<input type="hidden" value="%s" name="serv">' % serv)
|
||||||
print('<input type="hidden" value="open" name="open">')
|
print('<input type="hidden" value="open" name="open">')
|
||||||
print('<p><button type="submit" value="Compare" name="Compare">Compare</button></p></form></center>')
|
print('<button type="submit" value="Compare" name="Compare">Compare</button></p></form></center>')
|
||||||
|
|
||||||
if form.getvalue('serv') is not None and form.getvalue('right') is not None:
|
if form.getvalue('serv') is not None and form.getvalue('right') is not None:
|
||||||
commands = [ 'diff -ub %s%s %s%s' % (hap_configs_dir, left, hap_configs_dir, right) ]
|
commands = [ 'diff -ub %s%s %s%s' % (hap_configs_dir, left, hap_configs_dir, right) ]
|
||||||
|
|
|
@ -355,7 +355,7 @@ def chooseServer(formName, title, note):
|
||||||
print('<option value="%s" %s>%s</option>' % (listhap.listhap.get(i), selected, i))
|
print('<option value="%s" %s>%s</option>' % (listhap.listhap.get(i), selected, i))
|
||||||
|
|
||||||
print('</select>')
|
print('</select>')
|
||||||
print('<p><button type="submit" value="open" name="open">Open</button></p></form>')
|
print('<button type="submit" value="open" name="open">Open</button></p></form>')
|
||||||
if note == "y":
|
if note == "y":
|
||||||
print('<p><b>Note:</b> If you reconfigure First server, second will reconfigured automatically</p>')
|
print('<p><b>Note:</b> If you reconfigure First server, second will reconfigured automatically</p>')
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,6 @@ except IOError:
|
||||||
print("Can't load users DB")
|
print("Can't load users DB")
|
||||||
|
|
||||||
print('<h2>Quick Status </h2>'
|
print('<h2>Quick Status </h2>'
|
||||||
'<iframe src="http://172.28.5.106:3000/d-solo/000000002/haproxy?refresh=1m&orgId=1&panelId=1&theme=light" height="200" frameborder="0"></iframe>'
|
|
||||||
'<iframe src="http://172.28.5.106:3000/d-solo/000000002/haproxy?refresh=1m&orgId=1&panelId=2&theme=light" height="200" frameborder="0"></iframe>'
|
|
||||||
'<iframe src="http://172.28.5.106:3000/d-solo/000000002/haproxy?refresh=1m&orgId=1&panelId=3&theme=light" height="200" frameborder="0"></iframe>'
|
|
||||||
'<table class="overview">')
|
'<table class="overview">')
|
||||||
|
|
||||||
commands = [ "ps -Af |grep [h]aproxy |wc -l" ]
|
commands = [ "ps -Af |grep [h]aproxy |wc -l" ]
|
||||||
|
|
Loading…
Reference in New Issue