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

add AllocateNetwork and FreeNetwork plugin apis #61

Merged
merged 1 commit into from
Oct 31, 2016

Conversation

mavenugo
Copy link
Contributor

@mavenugo mavenugo commented Oct 24, 2016

moby/moby#27287 brought in the support for swarm-mode network v1 plugins. These 2 APIs are introduced to support remote plugins in swarm-mode.

Also fixed a minor error handling issue in createEndpointPath where the EncodeResponse is called twice incorrectly

Signed-off-by: Madhu Venugopal madhu@docker.com

Copy link
Contributor

@dave-tucker dave-tucker left a comment

Choose a reason for hiding this comment

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

A couple of nits, but overall it LGTM

NetworkID string
}

// FreeNetworkResponse is the response to a request for freeing a network.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see this used anywhere... Is it necessary?

@@ -242,6 +305,7 @@ func (h *Handler) initMux() {
if err != nil {
msg := err.Error()
sdk.EncodeResponse(w, NewErrorResponse(msg), msg)
return
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bug, but isn't directly related to your changes.
It might be helpful to note that it was changed in the commit message

Also fixed a minor error handling issue in createEndpointPath
where the EncodeResponse is called twice incorrectly

Signed-off-by: Madhu Venugopal <madhu@docker.com>
@mavenugo
Copy link
Contributor Author

@dave-tucker thanks for the review. Updated.

@dave-tucker
Copy link
Contributor

LGTM

1 similar comment
@runcom
Copy link
Collaborator

runcom commented Oct 31, 2016

LGTM

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.

3 participants