{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {# Lazy fragment: BGP category — peers + peer-group templates, two grids over ONE payload. #} {% include "netbox_nso_plugin/categories/_adapter_error.html" %}

Edit a peer's remote AS or admin state inline. Local ASN, VRF, address, source, peer-group membership, and address-family policy remain relationship changes in the full NetBox routing UI. Peer-group templates are mirrored for review but currently 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=category_has_unowned %}{% endif %}
{{ grid_payload|json_script:"nso-bgp-data" }} {% url 'plugins:netbox_nso_plugin:device_nso_category' pk=object.pk key='bgp' as cat_url %} {% 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 %}