{% load util i18n static %} {% if permissions.can_write %} {% if data.ixf or data.ixf_dismissed %}

{% trans "Some exchanges suggest updates to your entries in their peering list." %}

{% if data.ixf %}

{% trans "Review suggestions" %}

{% endif %} {% if data.ixf_dismissed %}

{% trans "You have dismissed some suggestions that are still available." %} {% trans "Reset Suggestions" %}

{% endif %}
{% endif %}
{% if data.ixf %}

{% trans "Some exchanges suggest updates to your entries in their peering list." %}

{% trans "Expand each exchange below to review, apply or dismiss those suggestions" %}

{% endif %} {% for ixf_proposals in data.ixf %} {% with ix_id=ixf_proposals.ix.id %}
{% if ixf_proposals.add %}
{% trans "Add" %}
{% trans "Speed" %}
{% trans "Options" %}
{% for x in ixf_proposals.add %} {% if not x.dismissed %}
{% if x.net.ipv4_support %} {% else %} {% endif %}
{% if x.net.ipv6_support %} {% else %} {% endif %}
{% trans "Operational" %}
{% trans "RS Peer" %}
{% endif %} {% endfor %}
{% endif %} {% if ixf_proposals.delete %}
{% trans "Remove" %}
{% for x in ixf_proposals.delete %} {% if not x.dismissed %} {% with ixf_id=x.ixf_id_pretty_str ix_name=x.ix.name %}
{% if x.ipaddr4 %}{{ x.ipaddr4 }}{% else %}{% trans "IPv4 not set" %}{% endif %}
{% if x.ipaddr6 %}{{ x.ipaddr6 }}{% else %}{% trans "IPv6 not set" %}{% endif %}
{% endwith %} {% endif %} {% endfor %}
{% endif %} {% if ixf_proposals.modify %}
{% trans "Update" %}
{% trans "Changes" %}
{% for x in ixf_proposals.modify %} {% if not x.dismissed %}
{% if x.primary_requirement %}
{% else %}
{% endif %} {% for requirement in x.secondary_requirements %}
{% endfor %}
{% if x.net.ipv4_support %}
{{ x.ipaddr4|none_blank }}
{% else %}
{{ x.netixlan.ipaddr4|none_blank }}
{% endif %} {% if x.net.ipv6_support %}
{{ x.ipaddr6|none_blank }}
{% else %}
{{ x.netixlan.ipaddr6|none_blank }}
{% endif %}
{% if x.modify_speed %} {% else %} {% endif %} {% if x.modify_is_rs_peer %} {% elif x.primary_requirement %} {% else %} {% endif %} {% if x.ipaddr4_on_requirement %}
{% if x.ipaddr6 %} {% trans "Set IPv6 address" %} {% else %} {% trans "Clear IPv6 address" %} {% endif %}
{% elif x.ipaddr6_on_requirement %}
{% if x.ipaddr4 %} {% trans "Set IPv4 address" %} {% else %} {% trans "Clear IPv4 address" %} {% endif %}
{% endif %} {% if x.changes.speed %}
{% trans "Speed" %}: {{ x.changes.speed.from|pretty_speed }} {{ x.changes.speed.to|pretty_speed }}
{% endif %} {% if x.changes.is_rs_peer %}
{% trans "RS Peer" %}:
{% endif %} {% if x.changes.operational %}
{% trans "Operational" %}:
{% endif %}
{% endif %} {% endfor %}
{% endif %}
{% endwith %} {% endfor %}
{% endif %}