{% extends 'generic/object.html' %} {% load buttons %} {% load custom_links %} {% load helpers %} {% load i18n %} {% load plugins %} {% block content %}
{% trans "NAT Pool Members" %}
{% if perms.netbox_nsm.add_natpoolmember %} {% trans "Create NAT Pool Member" %} {% endif %}
{% htmx_table 'plugins:netbox_nsm:natpoolmember_list' address_range_id=object.pk %}
{% trans "NAT Rules" %}
{% htmx_table 'plugins:netbox_nsm:natrule_list' ip_range_id=object.pk %}
{% trans "Addresses" %}
{% if perms.netbox_nsm.add_address %} {% trans "Create Address" %} {% endif %}
{% htmx_table 'plugins:netbox_nsm:address_list' ip_range_id=object.pk %}
{% trans "Security Zones" %}
{% if perms.netbox_nsm.add_securityzone %} {% trans "Create Security Zone" %} {% endif %}
{% htmx_table 'plugins:netbox_nsm:securityzone_list' ip_range_id=object.pk %}
{% trans "Security Policy Context" %}
{% if policy_context.policy_paths %} {% for row in policy_context.policy_paths %} {% endfor %}
{% trans "Address/Set" %} {% trans "Security Policy" %} {% trans "Policy Actions" %} {% trans "Direction" %} {% trans "Security Zones" %}
{% if row.context_object %} {{ row.context_object|linkify }} {% elif row.address_list %} {{ row.address_list|linkify }} {% else %} - {% endif %} {{ row.policy|linkify }} {% for action in row.policy_actions %} {{ action }} {% endfor %} {{ row.direction }} {{ row.source_zone|linkify }} → {{ row.destination_zone|linkify }}
{% elif policy_context.address_set_hierarchy_rows %} {% trans "No policy context found yet; showing Address Set hierarchy." %} {% elif policy_context.address_objects or policy_context.inherited_address_objects %} {% trans "No policy context found yet; showing Addresses." %} {% else %} {% trans "No policy context found for this object." %} {% endif %} {% if policy_context.address_set_hierarchy_rows %}

{% trans "Address Set Hierarchy" %}

    {% for row in policy_context.address_set_hierarchy_rows %}
  • {% for address_set in row.path %} {% if not forloop.first %} → {% endif %} {{ address_set|linkify }} {% endfor %} {% if row.address %} {% if row.path %} → {% endif %}[{{ row.address|linkify }}] {% endif %}
  • {% endfor %}
{% elif policy_context.address_objects %}

{% trans "Direct Addresses" %}

    {% for address in policy_context.address_objects %}
  • {{ address|linkify }}
  • {% endfor %}
{% endif %} {% if policy_context.inherited_address_objects %}

{% trans "Inherited Addresses" %}

    {% for address in policy_context.inherited_address_objects %}
  • {{ address|linkify }}
  • {% endfor %}
{% endif %}
{% endblock %}