{% extends 'generic/object.html' %} {% load buttons %} {% load static %} {% load custom_links %} {% load helpers %} {% load plugins %} {% load render_table from django_tables2 %} {% block content %}
NAT Rule
Rule Set {{ object.rule_set.name }}
Name {{ object.name }}
Device {% if object.rule_set.assigned_object %} {{ object.rule_set.assigned_object }} {% else %} None {% endif %}
Outbound Interface/Pool {% if object.assigned_object %} {{ object.assigned_object }} {% elif object.pool %} {{ object.pool }} {% elif object.custom_interface %} {{ object.custom_interface }} {% else %} None {% endif %}
Status {{ object.get_status_display }}
Description {{ object.description|placeholder }}
Source Address NAT Type {{ object.source_type|placeholder }}
Destination Address NAT Type {{ object.destination_type|placeholder }}
Source Ports {{ object.source_ports|placeholder }}
Destination Ports {{ object.destination_ports|placeholder }}
Source/Destination Pools
Source Pool {% if object.source_pool %} {{ object.source_pool }} {% else %} None {% endif %}
Destination Pool {% if object.destination_pool %} {{ object.destination_pool }} {% else %} None {% endif %}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %}
Source Addresses - Address Type: {{ object.source_type|placeholder }}
{% render_table source_addresses_table 'inc/table.html' %}
Destination Addresses - Address Type: {{ object.destination_type|placeholder }}
{% render_table destination_addresses_table 'inc/table.html' %}
Source Prefixes
{% render_table source_prefixes_table 'inc/table.html' %}
Destination Prefixes
{% render_table destination_prefixes_table 'inc/table.html' %}
Source IP Ranges
{% render_table source_ranges_table 'inc/table.html' %}
Destination IP Ranges
{% render_table destination_ranges_table 'inc/table.html' %}
{% endblock content %}