Repository navigation
Add documentation URLs to more topology error messages - #4203
Merged
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
🟡 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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:
cannot differ from AS list membership
Update the expected error test outputs
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com