Browse Source

static routes not work on vyos api - bug module routes static #27 - not solved

Roberto Berto 5 years ago
parent
commit
f6a45bd746
1 changed files with 40 additions and 0 deletions
  1. 40 0
      vycenter/static/templates/static/static.html

+ 40 - 0
vycenter/static/templates/static/static.html

@@ -0,0 +1,40 @@
+{% extends "base.html" %}
+
+{% block header_title %}Static Routes{% endblock %}
+{% block section_title %}Static Routes{% endblock %}
+
+{% block debug %}
+{{ static_list }}
+{% endblock %}
+
+{% block content %}
+
+{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
+
+
+<h2>Create new static route</h2>
+
+<form action="{% url 'static:static' %}" method="post">
+    {% csrf_token %}
+    
+    <p>
+        <label for="alias">subnet</label><br>
+        <input type="text" name="subnet" id="subnet" value="{{ subnet }}" size="30">
+    </p>
+
+    <p>
+        <label for="alias">next-hop</label><br>
+        <input type="text" name="nexthop" id="nexthop" value="{{ nexthop }}" size="30">
+    </p>    
+    
+    
+    
+    <input type="submit" value="Add Route">
+    </form>
+
+    
+
+
+
+{% endblock %}
+