{% extends 'dcim/device/base.html' %} {% load i18n %} {% block content %}

{% trans "BGP sessions" %} {% if bgp.local_as %}{% trans "local AS" %} {{ bgp.local_as }}{% endif %} {% if bgp.router_id %} · {% trans "router ID" %} {{ bgp.router_id }}{% endif %} {% if result %} · {% trans "seen in the collection of" %} {{ result.timestamp|isodatetime:"minutes" }}{% endif %}

{% if netbox_bgp %}{% endif %} {% for m in matches %} {% if netbox_bgp %} {% endif %} {% empty %} {% endfor %}
{% trans "VRF" %} {% trans "Peer" %} {% trans "Remote AS" %} {% trans "Description" %} {% trans "State" %} {% trans "Prefixes received" %} {% trans "Up/Down" %}{% trans "In NetBox" %}
{{ m.session.vrf|default:"global" }} {{ m.session.peer }} {{ m.session.remote_as|placeholder }} {{ m.session.description|placeholder }} {% if m.session.shutdown %}{% trans "shutdown" %}{% elif m.session.state %}{{ m.session.state }}{% else %}{% trans "not in the summary" %}{% endif %} {% if not m.session.configured %}{% trans "not found in the config" %}{% endif %} {{ m.session.prefixes_received|placeholder }} {{ m.session.uptime|placeholder }} {% if m.netbox %} {{ m.netbox|linkify }} {% for difference in m.differences %}
{{ difference }}
{% endfor %} {% else %} {% trans "not in NetBox" %} {% endif %}
{% trans "No BGP sessions were found on the device." %}
{% if only_in_netbox %}

{% trans "In NetBox, but not on the device" %}

{% endif %} {% endblock %}