{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {# BGP router, peer and template grids share one payload. #} {% include "netbox_nso_plugin/categories/_adapter_error.html" %} {% include "netbox_nso_plugin/categories/_push_error.html" %}

Accept the router to own its router ID and complete scope / AF membership. Edit the router ID or a peer's remote AS or admin state inline. Change scope and AF membership in the full NetBox routing UI. Peer-group templates are mirrored for review and have no device apply path.

Add BGP peer… {% if grid_payload.peers.rows %}{% url 'plugins:netbox_nso_plugin:routing_bulk_accept_bgp_peers' device_pk=object.pk as bulk_url %}{% include "netbox_nso_plugin/categories/_bulk_accept.html" with bulk_url=bulk_url show=section_has_unowned.peers label="Accept All Peers" %}{% endif %}
{{ grid_payload|json_script:"nso-bgp-data" }} {% url 'plugins:netbox_nso_plugin:device_nso_category' pk=object.pk key='bgp' as cat_url %}
Routers
{% include "netbox_nso_plugin/categories/_grid.html" with cls="nso-bgp-routers" json_url=cat_url|add:"?format=json" counts=grid_payload.routers.counts %}
Peers
{% if grid_payload.peers.rows %} {% include "netbox_nso_plugin/categories/_grid.html" with cls="nso-bgp-peers" json_url=cat_url|add:"?format=json" counts=grid_payload.peers.counts %} {% else %}

No BGP peers.

{% endif %} {% if grid_payload.templates.rows %}
Peer-group templates
{% include "netbox_nso_plugin/categories/_grid.html" with cls="nso-bgp-tmpl" json_url=cat_url|add:"?format=json" counts=grid_payload.templates.counts %} {% endif %}