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

domain objects abstraction #279

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

brianroch
Copy link

@brianroch brianroch commented Oct 20, 2023

Just updates for the bridge object for now. Still more work to do, but some idea on the approach.

Signed-off-by: Brian Rochford <rochford.brian@gmail.com>
Signed-off-by: Brian Rochford <rochford.brian@gmail.com>
)

// CreateLogicalBridge executes the creation of the LogicalBridge
func (s *Server) CreateLogicalBridge(ctx context.Context, in *pb.CreateLogicalBridgeRequest) (*pb.LogicalBridge, error) {
// Create executes the creation of the LogicalBridge
Copy link
Member

Choose a reason for hiding this comment

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

if this function operates on models now, where in the code we no return grpc response ?

Copy link
Author

@brianroch brianroch Oct 23, 2023

Choose a reason for hiding this comment

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

Good point @glimchb. I've pulled back the abstraction to focus on consolidating how the operations are performed on the store. At the boundaries of each pb operation proto bufs are used, but the internal workings of those functions are consolidated to a set of object store operations defined in objects/object.go

Signed-off-by: Brian Rochford <rochford.brian@gmail.com>
glimchb added a commit to glimchb/opi-evpn-bridge that referenced this pull request Oct 24, 2023
inspired by opiproject#279

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
glimchb added a commit that referenced this pull request Oct 24, 2023
inspired by #279

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
@brianroch
Copy link
Author

Let me know your thoughts on this approach @glimchb. Waiting on your feedback before proceeding.

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