Skip to content

Conversation

@earies
Copy link
Contributor

@earies earies commented Jul 7, 2022

  • (A) proto/types/types.proto
    • Addition of types module for version extension
  • (M) proto/tunnel/tunnel.proto
    • Adjust versioning to semver utilizing the new extension
    • Correct SUBSCRIBE/UNSUBSCRIBE typos
  • (M) cmd/target/proto/config/target_config.proto
    • Adjust versioning to semver utilizing the new extension
  • (M) tunnel/tunnel.go
    • Correct SUBSCRIBE/UNSUBSCRIBE typos
  • (M) compile_protos.sh
    • Adjust protoc compilation, tidy up go mod and regenerate golang
      stubs

Previously, any versioning of grpctunnel proto IDL was contained within // comments and has not been updated to reflect the actual changes to these files. Thus when there is reference to a version for implementation, there are multiple variations published with the same version number but different contents. An example of this is commit fae5f5d which modified the IDL without incrementing the version.

This PR proposes consistency to how .proto are versioned for gNMI/gNOI services following semver (https://semver.org) and the version for tunnel.proto has been updated to reflect the changes from the previous commit and this slight modification all in one.

A new types definition is proposed using the next inline (for OpenConfig related projects) FileOption extension field number of 1003

In addition, previous typos of SUBCRIBE and UNSUBCRIBE have been corrected in both tunnel.proto and tunnel.go

Stubs are regenerated, compile_protos.sh is updated to reflect these changes and go modules have been tidied

earies added 2 commits July 6, 2022 17:59
  * (A) proto/types/types.proto
    - Addition of types module for version extension
  * (M) proto/tunnel/tunnel.proto
  * (M) cmd/target/proto/config/target_config.proto
    - Adjust versioning to semver utilizing the new extension
  * (M) compile_protos.sh
    - Adjust protoc compilation, tidy up go mod and regenerate golang
      stubs
@earies
Copy link
Contributor Author

earies commented Jul 7, 2022

@dplore @gcsl - PTAL

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