Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a recommended way to generate descriptor files for the gnoi protos? #216

Open
AnandJyrm opened this issue Oct 9, 2024 · 0 comments

Comments

@AnandJyrm
Copy link

When generating decriptor_set for the gnoi protos, there is an error in handling the imports.

protoc --descriptor_set_out=system_proto.desc -I./gnoi/ -I./protobuf/src gnoi/system/system.proto
github.com/openconfig/gnoi/common/common.proto: File not found.
github.com/openconfig/gnoi/types/types.proto: File not found.
system/system.proto: Import "github.com/openconfig/gnoi/common/common.proto" was not found or had errors.
system/system.proto: Import "github.com/openconfig/gnoi/types/types.proto" was not found or had errors.
system/system.proto:92:3: "types.Path" is not defined.
system/system.proto:97:3: "types.Path" is not defined.
system/system.proto:114:12: "types.Path" is not defined.
system/system.proto:144:12: "types.Path" is not defined.
system/system.proto:151:12: "types.Path" is not defined.
system/system.proto:203:3: "types.L3Protocol" is not defined.
system/system.proto:245:3: "types.L3Protocol" is not defined.
system/system.proto:325:3: "common.RemoteDownload" is not defined.
system/system.proto:337:5: "types.HashType" is not defined.

We can modify the proto and give relative paths instead of the github repo path and it works. Wondering if there is a better way

We want to use this descriptor files with grpcurl/grpcui to access services on our devices.. Is there a recommended way for this?
(reflection service on the server side is currently out of question for us).

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

No branches or pull requests

1 participant