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

Support mapping of protobuf lists. #915

Merged
merged 9 commits into from
Sep 25, 2023
Merged

Support mapping of protobuf lists. #915

merged 9 commits into from
Sep 25, 2023

Conversation

robshakir
Copy link
Contributor

@robshakir robshakir commented Sep 22, 2023

This PR adds support for mapping protobuf repeated fields that represent YANG lists into protobuf messages. This was an unimplemented gap previously.

The large change is due to changes in the testdata protobuf that is used for mapping.

There's a little bit of a DIFFBASE SNAFU here, where I pushed the initial PR from a fork, and this one is in openconfig/ygot. The plan will be to merge #914 and then rebase this PR onto HEAD of master.

 * (M) protomap/{proto,proto_test.go}
   - Support nested messages when unmarshalling protobufs, previously
     such messages did not have their contents mapped.
 * (M) protomap/integration_tests/integration_test.go
   - Add a testcase for gRIBI's real protobufs to ensure that
     unmarshalling is covered.
@robshakir robshakir marked this pull request as ready for review September 22, 2023 18:16
protomap/proto.go Outdated Show resolved Hide resolved
protomap/proto.go Outdated Show resolved Hide resolved
protomap/proto.go Outdated Show resolved Hide resolved
protomap/proto.go Outdated Show resolved Hide resolved
protomap/proto.go Show resolved Hide resolved
protomap/proto.go Outdated Show resolved Hide resolved
protomap/proto.go Show resolved Hide resolved
@robshakir
Copy link
Contributor Author

Thanks for the review, pushed an updated commit to address the comments.

@robshakir robshakir changed the base branch from pm1 to master September 25, 2023 16:18
@robshakir
Copy link
Contributor Author

Upstream conflicts fixed. @wenovus - PTAL when you get a chance, thanks!

@coveralls
Copy link

coveralls commented Sep 25, 2023

Coverage Status

coverage: 89.52% (-0.03%) from 89.552% when pulling 27f12ed on pm2 into 5cf59cd on master.

Copy link
Collaborator

@wenovus wenovus left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, LGTM!

Just one minor question.

protomap/proto.go Outdated Show resolved Hide resolved
@robshakir
Copy link
Contributor Author

Thanks very much for the swift reviews Wen :-)

@robshakir robshakir merged commit 2224a32 into master Sep 25, 2023
10 checks passed
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.

None yet

3 participants