Skip to content

Conversation

@nitishm
Copy link
Contributor

@nitishm nitishm commented Dec 7, 2021

User story AB#12707964

Reason for Change:
Define protobuf message and services for transport shim

Issue Fixed:
AB#12707965

Requirements:

Tasks:

  • Define protobuf file for all Datapath interface methods

Signed-off-by: Nitish Malhotra nitishm@microsoft.com

Notes:

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
@rbtr
Copy link
Collaborator

rbtr commented Dec 7, 2021

how are you generating the pb.go? would be nice to define gen targets in the makefile for consistency 🙂
even better if you also don't assume protoc is installed and take care of that in a similar fashion as the existing go tools dependency targets.

@nitishm
Copy link
Contributor Author

nitishm commented Dec 7, 2021

how are you generating the pb.go? would be nice to define gen targets in the makefile for consistency 🙂 even better if you also don't assume protoc is installed and take care of that in a similar fashion as the existing go tools dependency targets.

Sure I can do that. Are we using it any place else today? I did see a few proto files across the code base.

@vakalapa
Copy link
Contributor

vakalapa commented Dec 8, 2021

how are you generating the pb.go? would be nice to define gen targets in the makefile for consistency 🙂 even better if you also don't assume protoc is installed and take care of that in a similar fashion as the existing go tools dependency targets.

Sure I can do that. Are we using it any place else today? I did see a few proto files across the code base.

@nitishm https://github.com/Azure/azure-container-networking/blob/master/npm/pkg/dataplane/Makefile Check this, Mat has created this MakeFile for auto-generating go mock. You can do something similar. My opinion is this does not have to be in global MakeFile, since we will only generate this once in a while.

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
Signed-off-by: Ubuntu <nitishm@microsoft.com>
@nitishm nitishm force-pushed the nitishm/feat/AB#12707965/transport-event-model-proto branch 2 times, most recently from a526847 to ffa077f Compare December 8, 2021 22:21
@nitishm nitishm force-pushed the nitishm/feat/AB#12707965/transport-event-model-proto branch from ffa077f to f414dcd Compare December 8, 2021 22:40
@nitishm
Copy link
Contributor Author

nitishm commented Dec 8, 2021

To test this out use the following instructions:

Download the protoc binary

./scripts/install-protoc.sh 

Install the grpc go gen tool

make tools

Run generate target

cd npm
make generate

vakalapa
vakalapa previously approved these changes Dec 8, 2021
Copy link
Contributor

@vakalapa vakalapa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with minor comments.

Signed-off-by: Ubuntu <nitishm@microsoft.com>
@nitishm
Copy link
Contributor Author

nitishm commented Dec 9, 2021

@vakalapa can I get another approval. Also any idea why the CI doesn't like it?

Copy link
Contributor

@ramiro-gamarra ramiro-gamarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got curious about this, so I'm leaving a few comments/questions :)

- Implemented the reg and dereg of client on connection establishment
  and disconnection respectively
- Added sample server program to test this out

Signed-off-by: Ubuntu <nitishm@microsoft.com>
Copy link
Contributor

@vakalapa vakalapa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments, please resolve all lints.

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
@nitishm nitishm changed the title Define transport protobuf model feat: [NPM] define transport shim layer using gRPC Dec 10, 2021
Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
- Move all proto files to npm/pkg/protos
- Rename pod and node fields to pod_name and node_name in
  transport.proto

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
…working into nitishm/feat/AB#12707965/transport-event-model-proto
Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
@nitishm nitishm force-pushed the nitishm/feat/AB#12707965/transport-event-model-proto branch from 5f6d760 to c65e7c1 Compare December 14, 2021 19:23
@nitishm nitishm merged commit b6f04b6 into Azure:master Dec 14, 2021
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.

4 participants