Support max_depth and exclude parameters for gRPC Get#32
Closed
sha90w wants to merge 1 commit into
Closed
Conversation
Plumbs the new structured Path filtering parameters through the client. Each request's Path now carries an optional max_depth, and GetRequest gains a list of exclude Paths for skipping subtrees. - grpc/session: forward max_depth and exclude through GrpcClient::get and Session::get; convert exclude name strings to single-element Path values via Path::from_xpath. Synthesize an empty-elem Path to carry max_depth when no xpath is supplied (preserves the prior "show state depth N" UX at root). - show state: accept "depth N" and "exclude name1,name2,..." args, including when combined with an xpath value (depth/exclude tokens are mirrored under the xpath value token, not just at the top level, so "show state xpath /foo depth N" parses). - YangTableBuilder: add max_depth() and exclude() builder methods, plus a DEFAULT_EXCLUDES list (currently ["ietf-bgp:rib"]) applied to every query to keep large RIB sub-trees out of unrelated tables. - fetch_data split into fetch_data_filtered + thin wrapper so existing call sites stay unchanged.
Contributor
Author
|
We can solve the same problem in another way, using a recent structured path. |
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.
Plumbs the new structured Path filtering parameters through the client. Each request's Path now carries an optional max_depth, and GetRequest gains a list of exclude Paths for skipping subtrees.