Skip to content

domain objects abstraction#279

Draft
brianroch wants to merge 3 commits intoopiproject:mainfrom
brianroch:fb/domain-objects-abstraction
Draft

domain objects abstraction#279
brianroch wants to merge 3 commits intoopiproject:mainfrom
brianroch:fb/domain-objects-abstraction

Conversation

@brianroch
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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