Skip to content

grpc: split combined Get RPC into GetState and GetConfig#36

Open
Shbinging wants to merge 1 commit into
holo-routing:mainfrom
Shbinging:grpc-getstate-getconfig
Open

grpc: split combined Get RPC into GetState and GetConfig#36
Shbinging wants to merge 1 commit into
holo-routing:mainfrom
Shbinging:grpc-getstate-getconfig

Conversation

@Shbinging

@Shbinging Shbinging commented Jul 13, 2026

Copy link
Copy Markdown

holod replaced the combined Get RPC with separate GetState and GetConfig RPCs, so holo-cli's old Get calls now fail with Unimplemented, breaking show state, show ... route, the startup config load, etc.

Sync proto/holo.proto with holod and dispatch in GrpcClient::get():

  • ConfigGetConfig
  • StateGetState
  • All → issue both and merge the two data trees

@Shbinging
Shbinging force-pushed the grpc-getstate-getconfig branch from ce8071b to 35d29e4 Compare July 13, 2026 08:15
@sha90w

sha90w commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This is already covered in PR #34 by @Paul-weqe
Just waiting for review and merge

holod removed the combined `Northbound.Get(GetRequest)` RPC and replaced it
with dedicated `GetState(GetStateRequest)` and `GetConfig(GetConfigRequest)`
RPCs (holod commit "separate state and configuration retrieval"). holo-cli
still spoke the old combined RPC, so every state/config retrieval failed with
gRPC `Unimplemented`, breaking `show state`, `show ... route`, the running
config load at startup, etc.

Sync proto/holo.proto with holod's northbound service (drop `Get`, add
`GetState`/`GetConfig` and their request/response messages) and dispatch in
GrpcClient::get() accordingly:

- DataType::Config -> GetConfig
- DataType::State  -> GetState
- DataType::All    -> issue both and merge the two data trees, reproducing the
  semantics the combined RPC used to provide for callers that ask for config
  and state at once.

Cargo.lock: pull in yang5 0.2 (data-tree parse/merge APIs used above), matching
the Cargo.toml bump already on main.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Shbinging
Shbinging force-pushed the grpc-getstate-getconfig branch from 35d29e4 to d10e6c3 Compare July 13, 2026 08:38
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.

2 participants