chore: validate napalm custom #224
Draft
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.
This pull request introduces custom NAPALM driver extensions for device inventory collection and integrates them into the device discovery workflow. It adds new modules for Cisco IOS and Nokia SR Linux devices, updates the policy runner to use these inventory helpers, and enhances testing for inventory data handling and error resilience.
Custom NAPALM driver extensions:
custom_napalmpackage withIOSDriverandNokiaSRLDriverclasses that extend the base NAPALM drivers to provide aget_inventorymethod for device inventory retrieval. The IOS driver usesntc-templatesto parse the output ofshow inventory. ([[1]](https://github.com/netboxlabs/orb-discovery/pull/224/files#diff-d9b1947fdc39b37237acf9cf61e73b4a46f0c9179c4348f593206c9e1daba648R1-R6),[[2]](https://github.com/netboxlabs/orb-discovery/pull/224/files#diff-fe7f229492e15b72a3d219003ff2801916975e3c5895bd4fe6d6994805f14d00R1-R24),[[3]](https://github.com/netboxlabs/orb-discovery/pull/224/files#diff-8b8722f390ff59da050bd013da7cf3bb083688f5357963f8d9adcdc9e39a841bR1-R11))custom_napalmpackage in the project configuration for packaging and distribution. ([device-discovery/pyproject.tomlR57](https://github.com/netboxlabs/orb-discovery/pull/224/files#diff-c3df0d5da015312295fa2fdd2c07560e9b424071533c1e579856a8d757072d58R57))Device discovery workflow enhancements:
_collect_device_datainpolicy/runner.pyto callget_inventory(orget_site_codeas fallback) if available on the driver, storing the result in the discovery data. Handles errors gracefully and logs warnings if inventory retrieval fails. ([device-discovery/device_discovery/policy/runner.pyR190-R202](https://github.com/netboxlabs/orb-discovery/pull/224/files#diff-39f0ea02f8aa249588ad02adba4c7118014ed39bcc962ae619cb8b20a662220fR190-R202))Dependency updates:
ntc-templatesas a required dependency for parsing Cisco IOS inventory output. ([device-discovery/pyproject.tomlR40](https://github.com/netboxlabs/orb-discovery/pull/224/files#diff-c3df0d5da015312295fa2fdd2c07560e9b424071533c1e579856a8d757072d58R40))Testing improvements:
[[1]](https://github.com/netboxlabs/orb-discovery/pull/224/files#diff-b532d3732249713542c40eb5bb38fef6adfbee621e934fa42f4444693b461695R151),[[2]](https://github.com/netboxlabs/orb-discovery/pull/224/files#diff-b532d3732249713542c40eb5bb38fef6adfbee621e934fa42f4444693b461695R168-R201))