{% load helpers %} {% load i18n %}

{% trans "Cisco ACI Context" %}

{% if aci_node %}

{% trans "ACI Node" %}: {{ aci_node }} {% if aci_fabric %} · {% trans "Fabric" %}: {{ aci_fabric }} {% endif %} {% if aci_pod %} · {% trans "Pod" %}: {{ aci_pod }} {% endif %}

{% else %}

{% trans "Not linked to an ACI Node." %}

{% endif %}

{{ epg_count }} {% trans "EPGs" %}, {{ bd_count }} {% trans "BDs" %}, {{ vrf_count }} {% trans "VRFs" %} {% trans "across" %} {{ binding_count }} {% trans "static port bindings" %}.

{% if static_port_bindings %} {% for b in static_port_bindings %} {% endfor %}
{% trans "Interface" %} {% trans "EPG" %} {% trans "BD" %} {% trans "VRF" %} {% trans "Encap" %} {% trans "Mode" %}
{{ b.dcim_interface }} {{ b.aci_endpoint_group.name }} {% if b.aci_endpoint_group.aci_bridge_domain %} {{ b.aci_endpoint_group.aci_bridge_domain.name }} {% else %}—{% endif %} {% if b.aci_endpoint_group.aci_bridge_domain and b.aci_endpoint_group.aci_bridge_domain.aci_vrf %} {{ b.aci_endpoint_group.aci_bridge_domain.aci_vrf.name }} {% else %}—{% endif %} {{ b.encap_vlan }} {{ b.get_mode_display }}
{% endif %} {% if logical_node_static_routes %}
{% trans "L3Out Logical Nodes" %}
{% for ln, node_routes in logical_node_static_routes %}

{{ ln.name }} {% trans "on" %} {{ ln.aci_logical_node_profile.aci_l3out.name }} {% if ln.router_id %}({% trans "router ID" %} {{ ln.router_id }}){% endif %}

{% if node_routes %} {% for route in node_routes %} {% endfor %}
{% trans "Prefix" %} {% trans "Preference" %}
{{ route.prefix }} {{ route.preference }}
{% endif %} {% endfor %}
{% elif logical_nodes %}
{% trans "L3Out Logical Nodes" %}
{% endif %}