implement debug login;
add functions for add/remove/view peerings
This commit is contained in:
parent
c1663e42cc
commit
740b050fc4
5 changed files with 65 additions and 23 deletions
|
@ -24,7 +24,7 @@
|
|||
<td>{{config["nodes"][node]["country"]}}</td>
|
||||
<td>{{config["nodes"][node]["city"]}}</td>
|
||||
<td></td>
|
||||
<td><a href="peer?node={{node}}">peer</a></td>
|
||||
<td><a href="peerings/new?node={{node}}">peer</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
{% if config["debug-mode"] %}
|
||||
<form action="" method="post" class="flex">
|
||||
<label for="debug">Debug login, if you see this in Production contact {{config["MNT"]}}</label><br>
|
||||
<input type="text" name="mnt" id="mnt" placeholder="YOUR-MNT"><br>
|
||||
<input type="text" name="asn" id="asn" placeholder="AS4242420000"><br>
|
||||
<input type="text" name="allowed-v4" id="allowed-v4" placeholder="ipv4 subnet"><br>
|
||||
<input type="text" name="allowed-v6" id="allowed-v6" placeholder="ipv6 subnet"><br>
|
||||
<input type="number" name="theanswer" id="theanswer" placeholder="The answer for everything"><br>
|
||||
<input type="text" name="mnt" id="mnt" placeholder="YOUR-MNT" required><br>
|
||||
<input type="text" name="asn" id="asn" placeholder="AS4242420000" required><br>
|
||||
<input type="text" name="allowed4" id="allowed4" placeholder="ipv4 subnet (optional)"><br>
|
||||
<input type="text" name="allowed6" id="allowed6" placeholder="ipv6 subnet (optional)"><br>
|
||||
<input type="number" name="theanswer" id="theanswer" placeholder="The answer for everything" required><br>
|
||||
<input type="submit" value="login">
|
||||
</form>
|
||||
{% endif %}
|
||||
|
|
13
web/frontend/peerings.html
Normal file
13
web/frontend/peerings.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<form action="peer" method="post">
|
||||
<select name="node" id="node">
|
||||
{% for node in config["nodes"] %}
|
||||
<option value="{{node}}" {% if selected_node %}{% if selected_node == node %}selected{% endif %}{% endif %} >{{node}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue