Skip to content

Add documentation URLs to more topology error messages - #4203

Merged
ipspace merged 1 commit into
devfrom
error-doc-url-2
Nov 26, 2026
Merged

ipspace merged 1 commit into
devfrom
error-doc-url-2

Conversation

@ipspace

@ipspace ipspace commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Add 'doc_url' parameter to 20 log.error calls in addressing, plugin,
bgp, dhcp, evpn, vrf, static routing and configuration mode code.
Added MyST anchors where needed.

Explain the errors in the target documentation sections:

  • Address pools: running out of prefixes
  • Named prefixes: the pool must be defined
  • Plugins: plugin search path
  • BGP AS list: single AS per node, RR must be a member, node AS
    cannot differ from AS list membership
  • BGP confederations: membership rules
  • EVPN bundle services: devices support only vlan_aware bundles

Update the expected error test outputs

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Add 'doc_url' parameter to 20 log.error calls in addressing, plugin,
bgp, dhcp, evpn, vrf, static routing and configuration mode code.
Added MyST anchors where needed.

Explain the errors in the target documentation sections:

* Address pools: running out of prefixes
* Named prefixes: the pool must be defined
* Plugins: plugin search path
* BGP AS list: single AS per node, RR must be a member, node AS
  cannot differ from AS list membership
* BGP confederations: membership rules
* EVPN bundle services: devices support only vlan_aware bundles

Update the expected error test outputs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

An active nit remains in netsim/modules/bgp.py because the confederation-membership validation error at line 785 lacks the required doc_url and corresponding See also link.

1 open issue
What changed in this PR

This PR improves topology validation diagnostics by linking relevant error messages to netlab documentation and updating the referenced documentation and expected error outputs.

Changes:

  • Added documentation URLs to addressing, plugin, BGP, DHCP, EVPN, VRF, static-routing, and configuration-mode errors.
  • Expanded documentation with anchors and guidance for address pools, named prefixes, plugin search paths, BGP rules, and EVPN bundle services.
  • Updated expected error logs to include the new documentation links.
File Description
tests/​errors/​vrf-loopback-global.log Adds the VRF loopback documentation link to the expected error output.
tests/​errors/​vrf-invalid-lb.log Adds the VRF validation documentation link to the expected error output.
tests/​errors/​rp-static-vrf.log Adds the static-routing documentation link to the expected error output.
tests/​errors/​bgp-confed.log Updates expected BGP confederation error output with documentation links.
tests/​errors/​bgp-community-kw.log Adds the BGP community documentation link to the expected error output.
tests/​errors/​bgp-as-list-semantics.log Adds the BGP AS-list documentation link to the expected error output.
tests/​errors/​addr-pool-overload.log Adds the address-pool documentation link to the expected error output.
netsim/​providers/​__init__.py Links invalid configuration-mode errors to platform configuration documentation.
netsim/​modules/​vrf.py Links VRF loopback and default RD/RT errors to VRF documentation.
netsim/​modules/​routing/​static.py Links unsupported static-route errors to static-routing documentation.
netsim/​modules/​evpn.py Links unsupported EVPN bundle-service errors to EVPN documentation.
netsim/​modules/​dhcp.py Links DHCP server and relay support errors to platform documentation.
netsim/​modules/​bgp.py Links BGP node, AS-list, confederation, and community errors to BGP documentation.
netsim/​augment/​plugin.py Links missing-plugin errors to plugin search-path documentation.
netsim/​augment/​addressing.py Links address-pool exhaustion and unknown named-prefix pool errors to addressing documentation.
docs/​prefix.md Documents that named-prefix pools must be defined in the addressing dictionary.
docs/​plugins.md Documents the plugin search path and adds the referenced anchor.
docs/​module/​evpn.md Documents that supported EVPN bundle devices currently provide only VLAN-aware bundles.
docs/​module/​bgp.md Documents BGP AS-list and confederation membership constraints with referenced anchors.
docs/​addressing.md Documents address-pool exhaustion and available remediation options.

Review effort: Lite

Comment thread netsim/modules/bgp.py Resolved
@ipspace
ipspace merged commit e182a8d into dev Nov 26, 2026
9 checks passed
@ipspace
ipspace deleted the error-doc-url-2 branch November 26, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants