{% extends "index.html" %} {% block style %} {% endblock %} {% block tables %} {#
#} {#
Access Policies: {{ access_policy | tojson(indent=2) }}
#} {#
#}

{% for rule in rules %} {% endfor %}
Action Name Source Zones Destination Zones Source Networks Destination Networks Source Ports Destination Ports Dynamic Attribute Applications URLs Comments
{{ rule.get('action') }} {{ rule.get('name') }} {% for object in rule.get('sourceZones', {'objects': [{'name': 'Any'}]}).get('objects', [{'name': 'Any'}]) %} {{ object.get('name') }}
{% endfor %}
{% for object in rule.get('destinationZones', {'objects': [{'name': 'Any'}]}).get('objects', [{'name': 'Any'}]) %} {{ object.get('name') }}
{% endfor %}
{% for object in rule.get('sourceNetworks', {'objects': [{'name': 'Any'}]}).get('objects', [{'type': 'Any', 'name': 'Any'}]) %} {% if object.get('type') == 'NetworkGroup' %} {{ object.get('name') }}
{% for network_group in network_group_list %} {{ network_group.get('objects') }} {% endfor %}
{% else %} {{ object.get('name') }}
{% endif %} {% endfor %}
{% for object in rule.get('destinationNetworks', {'objects': [{'name': 'Any'}]}).get('objects', [{'type': 'Any', 'name': 'Any'}]) %} {% if object.get('type') == 'NetworkGroup' %} {{ object.get('name') }}
{% for network_group in network_group_list %} {{ network_group.get('objects') }} {% endfor %}
{% else %} {{ object.get('name') }}
{% endif %} {% endfor %}
{% for object in rule.get('sourcePorts', {'objects': [{'name': 'Any'}]}).get('objects', [{'name': 'Any'}]) %} {{ object.get('name') }}
{% endfor %}
{% for object in rule.get('destinationPorts', {'objects': [{'name': 'Any'}]}).get('objects', [{'name': 'Any'}]) %} {{ object.get('name') }}
{% endfor %}
{% for object in rule.get('sourceSecurityGroupTags', {'objects': [{'name': 'Any'}]}).get('objects', [{'name': 'Any'}]) %} {{ object.get('name') }}
{% endfor %}
{% for object in rule.get('applications', {'applications': [{'name': 'Any'}]}).get('applications', [{'name': 'Any'}]) %} {{ object.get('name') }}
{% endfor %}
{% for object in rule.get('urls', {'urlCategoriesWithReputation': [{'category': {'name': 'Any'}}]}).get('category', [{'name': 'Any'}]) %} {{ object.get('name') }}
{% endfor %} {##} {# {% for object in rule.get('urls', {'urls': [{'category': '-'}]}).get('urlCategoriesWithReputation') %}#} {# {{ object.get('name') }}
#} {# {% endfor %}#}
{% for object in rule.get('commentHistoryList', {'comment': '-'}) %} {% if object is not string %} {{ object.get('comment') }}
{% else %} - {% endif %} {% endfor %} {# {{ rule.get('commentHistoryList', "-") }}#} {# {% for object in rule.get('comments', {'urlCategoriesWithReputation': [{'category': {'name': '-'}}]}).get('category', [{'name': '-'}]) %}#} {# {{ object.get('name') }}
#} {# {% endfor %}#}
{#
#} {#
#} {#
{{ rules | tojson(indent=2) }}
#} {#
#} {% endblock %}