Skip to content

Conversation

@mrjana
Copy link
Contributor

@mrjana mrjana commented Apr 10, 2015

Fixes #17

  • Added support to bridgeNetwork.Link
  • Removed MAC and MTU configuration via AddInterface

Signed-off-by: Jana Radhakrishnan mrjana@docker.com

Choose a reason for hiding this comment

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

Can you support docker run --mac-address without this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the way it's going to work is all the options which libnetwork doesn't need to worry about will become driver specific option. As we keep enhancing libnetwork to the container networking model this will become an opaque option that will be passed along to the driver by libnetwork. In this case the macaddress becomes an opaque option that the driver can process and set it on the interface.

The Interface structure which will become the Sandbox structure will only have things that needs to be set by libnetwork after the network resources allocated by the driver only inside the sandbox. Since Macaddress and MTU doesn't change when we change interface namespace we don't need to keep them in the Sandbox interface

Choose a reason for hiding this comment

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

Thanks! 👍

@dave-tucker
Copy link
Contributor

LGTM

- Removed MAC and MTU configuration via AddInterface

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs refactoring... Given that this is existing Docker code, it is fine to get it ported over.
Lets raise an issue to get this resolved. @mrjana can you please open an issue to be fixed later ?

@mavenugo
Copy link
Contributor

LGTM.

mavenugo added a commit that referenced this pull request Apr 10, 2015
Add support for bridgeNetwork.Link
@mavenugo mavenugo merged commit a6e19cd into moby:master Apr 10, 2015
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.

Implement bridgeNetwork.Link

4 participants