-
Notifications
You must be signed in to change notification settings - Fork 0
[CLI] Enhanced sequence introspection in nw info command #39
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Context
The pypi-support branch included WIP work on improved sequence introspection for the nw info command. The GlobalSequenceInfoTableProvider was added and integrated, but the full vision for enhanced introspection was not completed.
Identified in PR for pypi-support branch merge.
Current State
GlobalSequenceInfoTableProvideris implemented and workingnw info sequencesshows sequence information- Global sequences now properly displayed via new provider
- WIP commit "introstpection info comman ds" added foundation
Desired State
Complete the enhanced sequence introspection feature:
- Unified sequence view: Show all sequences regardless of source in one view
- Source attribution: Clearly indicate where each sequence comes from (global, vendor, device)
- Conflict detection: Highlight when same sequence name exists in multiple sources
- Filter options: Filter by source type (--global, --vendor, --device)
Example output:
Sequences Overview
------------------
Sequence Name | Source Type | Defined In | Commands
-----------------|-------------|----------------------|----------
backup | global | sequences/global.yml | 3
health-check | vendor | mikrotik, cisco | varies
custom-audit | device | router1, router2 | 5
Implementation Notes
- Build on existing
GlobalSequenceInfoTableProvider - May need
get_all_sequences()method (Issue [Config] Implement get_all_sequences() method for unified sequence introspection #37) - Consider adding
--formatoption for different output styles - Performance: cache sequence aggregation if expensive
Files Likely Affected
src/network_toolkit/commands/info.py- Add new subcommand or enhance existingsrc/network_toolkit/common/table_providers.py- May need new providertests/test_info.py- Add tests for new functionality
Acceptance Criteria
- Single command shows all sequences from all sources
- Source type clearly indicated for each sequence
- Filtering by source type works
- Output is clear and actionable
- Verbose mode shows additional details
Related
- Issue [Config] Implement get_all_sequences() method for unified sequence introspection #37 (get_all_sequences method)
- pypi-support branch merge PR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request