Skip to content

show: fetch specific subtree instead of full control-plane-protocols#33

Open
sha90w wants to merge 1 commit into
holo-routing:mainfrom
sha90w:fetch_specific_subtree
Open

show: fetch specific subtree instead of full control-plane-protocols#33
sha90w wants to merge 1 commit into
holo-routing:mainfrom
sha90w:fetch_specific_subtree

Conversation

@sha90w

@sha90w sha90w commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Add a fetch_path option to YangTableBuilder and update the OSPF, RIP, MPLS LDP, and BGP detail/summary show commands to query the specific instance subtree rather than the entire
/ietf-routing:routing/control-plane-protocols tree. This reduces the amount of state retrieved.

Also handle the empty-result case in isis_hostnames and ospf_hostnames by replacing find_path(...).unwrap() with a let-else that returns an empty map.

Add a `fetch_path` option to `YangTableBuilder` and update the OSPF,
RIP, MPLS LDP, and BGP detail/summary show commands to query the
specific instance subtree rather than the entire
`/ietf-routing:routing/control-plane-protocols` tree. This reduces the
amount of state retrieved.

Also handle the empty-result case in `isis_hostnames` and
`ospf_hostnames` by replacing `find_path(...).unwrap()` with a
let-else that returns an empty map.
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.

1 participant