{% extends "base_admin.html" %} {% block pagehead %}

Add Admin Rule

{% endblock %} {% block scripts %} {% endblock %} {% block content %}
{% for msg in error_msg %}

{{msg}}

{% endfor %} {{form.non_field_errors}}
{% csrf_token %} Experiment:



VLAN(s) already allocated:

{% if allocated_vlans %} {% for vlan in allocated_vlans %} {% if forloop.first %}
{% else %} {% if vlan_list_length != 0 and forloop.counter|divisibleby:vlan_list_length %}
{# Same as before #}

Field[From Value,To Value]
{{form.mac_from_s}} - {{form.mac_from_e}}
{{form.mac_to_s}} - {{form.mac_to_e}}
{{form.eth_type_s}} - {{form.eth_type_e}}
{{form.vlan_id_s}} - {{form.vlan_id_e}}
{{form.ip_from_s}} - {{form.ip_from_e}}
{{form.ip_to_s}} - {{form.ip_to_e}}
{{form.ip_proto_s}} - {{form.ip_proto_e}}
{{form.tp_from_s}} - {{form.tp_from_e}}
{{form.tp_to_s}} - {{form.tp_to_e}}




Upload Rules from a File: (download sample file)

{% csrf_token %} {{upload_form.as_table}}

{% endblock content %}