-
Notifications
You must be signed in to change notification settings - Fork 134
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
Conversation
There was a problem hiding this 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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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>
@dave-tucker thanks for the review. Updated. |
LGTM |
1 similar comment
LGTM |
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