Alessandro Boch
d438fd59cd
Port PR #11526 to libnetwork
...
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-29 11:46:36 -07:00
Jana Radhakrishnan
144a42267b
Merge pull request #93 from mavenugo/cli
...
libnetwork client
2015-04-28 20:55:06 -07:00
Madhu Venugopal
fd43354da4
Merge pull request #89 from aboch/wdyg
...
Issue #88 : Handle default v4/v6 gw setting
2015-04-28 17:35:58 -07:00
Alessandro Boch
35693a1a47
Issue #88 : Handle default v4/v6 gw setting
...
- Basically this is porting docker PR #9381 to libnetwork
- Added a Config.Validate() method where to consolidate
a priori validation of bridge configuration
- Have bridgeInterface store the current v4/v6 default gateways
- Introduced two setupStep functions to set the requested def gateways
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-28 13:48:28 -07:00
Madhu Venugopal
263ee2dbbb
libnetwork client base infra
...
This is an experiment by modularizing the client UI handler in libnetwork
while the actual UI hook to the docker chain can come from Docker Project.
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-04-26 21:08:00 -07:00
Madhu Venugopal
d152bb91c4
Added docker mflag package to Godeps
...
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-04-26 13:42:30 -07:00
Madhu Venugopal
5c442d3c76
Merge pull request #91 from aboch/gnames
...
Rename setGatewayIP() in sandbox pkg
2015-04-25 19:38:53 -07:00
Jana Radhakrishnan
69177a73a4
Merge pull request #92 from mavenugo/integ_test
...
Initial bats based integration test infra for testing daemon network configs
2015-04-25 19:10:17 -07:00
Madhu Venugopal
8a656d0d90
Merge pull request #90 from aboch/gqn
...
Provide Query API for NetworkController
2015-04-25 12:31:12 -07:00
Madhu Venugopal
8f63aa82b0
Initial bats based integration tests for testing daemon network configs
...
Pre-reqs :
* docker machine (https://github.com/docker/machine )
* bats (https://github.com/sstephenson/bats )
* virtualbox
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-04-25 07:33:48 -07:00
Alessandro Boch
21ed154c79
Rename setGatewayIP() in sandbox pkg
...
- setGatewayIP() => programGateway() becsause it is
causing confusion with setGateway() and setGatewayIPv6()
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-24 17:08:50 -07:00
Alessandro Boch
6a5e4a83e4
Provide Query API for Network and Endpoint
...
- In NetworkController and Network respectively
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-24 16:56:52 -07:00
Madhu Venugopal
293cf1b4db
Merge pull request #74 from aboch/wlk
...
Add methods to walk Endpoints and Networks
2015-04-24 11:56:35 -07:00
Alessandro Boch
1c7c0f371b
Add methods to walk Endpoints and Networks
...
- From Network and Controller interfaces, respectively
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-24 08:44:00 -07:00
Madhu Venugopal
2b3644edd5
Merge pull request #87 from mrjana/cnm_integ
...
Fix assortment of sandbox issues
2015-04-24 06:01:48 -07:00
Madhu Venugopal
35a0dc89b7
Merge pull request #86 from aboch/utm
...
Libnetwork bridge to handle MTU option
2015-04-24 05:59:47 -07:00
Madhu Venugopal
7aa3a62d72
Merge pull request #85 from aboch/drv
...
Refactor NetworkController interface
2015-04-24 05:56:52 -07:00
Jana Radhakrishnan
6e80af6ee8
- Re-enabled Bridge test case which got disabled because
...
lower case test case function name
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-04-24 05:18:03 +00:00
Jana Radhakrishnan
c6fd92a565
- Fixed an assortment of bugs in sandbox
...
- Added more test coverage to sandbox
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-04-24 05:17:50 +00:00
Alessandro Boch
1fae5573d2
Refactor NetworkController interface
...
- To reflect work flow. NewDriver() => ConfigureDriver()
and no NetworkDriver returned.
libnetwork clients would refer to a driver/network type, then
internally controller will retrieve the correspondent driver
instance, but this is not a concern of the clients.
- Remove NetworkDriver interface
- Removed stale blank dependency on bridge in libnetwork_test.go
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-23 18:46:01 -07:00
Alessandro Boch
198e3d3ee9
Libnetwork bridge to handle MTU option
...
- This address one of the requirements of Issue #78
- Bridge MTU will be enforced on the veth pair ifaces
for each endpoint being added to the network.
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-23 18:42:38 -07:00
Madhu Venugopal
914ad10ea4
Merge pull request #84 from aboch/mao
...
Libnetwork bridge to handle --mac-address option
2015-04-23 16:40:07 -07:00
Alessandro Boch
69437b1009
Libnetwork bridge to handle --mac-address option
...
- This addresses one requirement from Issue #79
- Defined EndpointConfiguration struct for bridge driver
which contains the user's preferred mac address for the
sanbox interface
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-23 13:03:34 -07:00
Jana Radhakrishnan
565a7daa7a
Merge pull request #82 from dave-tucker/simplebridge
...
Rename simplebridge to bridge
2015-04-23 11:22:44 -07:00
Madhu Venugopal
584aaeac36
Merge pull request #69 from aboch/cup
...
Issue #68 : In bridge.go driver remove veth on endpoint delete
2015-04-23 11:06:06 -07:00
Dave Tucker
f4fd5dacbf
Rename simplebridge to bridge
...
Fixes #81
Signed-off-by: Dave Tucker <dt@docker.com>
2015-04-23 10:49:57 -07:00
Alessandro Boch
468ebf3816
Issue #68 : In bridge.go driver remove veth on endpoint delete
...
- Store *Interface on endpoint create
- Remove from bridgeEndpoint ip params now available in Interface
- On endpoint delete attempt a removal of veth plugged into bridge
- (tested disabling defer netutils.SetupTestNetNS(t)() in libnetwrok_test)
- Fix bridge to store endpoints per sandbox
- Fix bug in error.go which causes stack overflow
- Start bridge error string w/ lower case as per go convention
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-22 09:35:47 -07:00
Madhu Venugopal
0d57047ef8
Merge pull request #77 from fmzhen/test-dev
...
Add TestSandboxInfoEqual in sandbox_test.go
2015-04-21 20:55:28 -07:00
Mingzhen Feng
3da12c7219
Add TestSandboxInfoEqual in sandbox_test.go
...
Signed-off-by: Mingzhen Feng <fmzhen@zju.edu.cn>
2015-04-22 10:04:03 +08:00
Madhu Venugopal
05a76a5444
Merge pull request #73 from aboch/rewdep
...
Refactor driverapi, sandbox pkgs
2015-04-21 15:33:11 -07:00
Alessandro Boch
7d24e974cf
Refactor driverapi, sandbox pkgs
...
- Move SanboxInfo and Interface structures in sandbox package
(changed it to Info as per golint)
- Move UUID to new internal pkg types
- Updated .gitignore to ignore IDE project files
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-21 09:44:39 -07:00
Jana Radhakrishnan
dcbb4c9928
Merge pull request #76 from mbanikazemi/75-typos
...
Fixing a few typos
2015-04-20 21:25:09 -07:00
Madhu Venugopal
2e10d9197e
Merge pull request #66 from aboch/net
...
Add Network method to return list of endpoints
2015-04-20 12:13:26 -07:00
Madhu Venugopal
d48f2c1a8e
Merge pull request #63 from aboch/qr
...
Enhance Endpoint interface
2015-04-20 12:08:42 -07:00
Mohammad Banikazemi
dee9e06bbb
Fixing a few typos
...
Signed-off-by: Mohammad Banikazemi <mbanikazemi@gmail.com>
2015-04-20 13:08:09 -04:00
Alessandro Boch
95958d7610
Enhance Endpoint interface
...
- Added new getter methods
- Modified signature of Network.CreateEndpoint()
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-20 03:21:01 -07:00
Madhu Venugopal
077d7d4895
Merge pull request #67 from liubin/fixtypos
...
fix some typos
2015-04-20 03:17:37 -07:00
Madhu Venugopal
1bf2cf18bd
Merge pull request #65 from aboch/godeps
...
Update Godeps docker/pkg/common => /stringid
2015-04-20 03:16:41 -07:00
Jana Radhakrishnan
5b89346e25
Merge pull request #64 from aboch/gdp
...
Fix libnetwork_test.go
2015-04-19 22:52:33 -07:00
bin liu
a004b52ab3
fix some typos
...
Signed-off-by: bin liu <liubin0329@gmail.com>
2015-04-20 04:12:54 +00:00
Alessandro Boch
f151cc23ab
Add Network method to return list of endpoints
...
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-17 23:14:51 -07:00
Alessandro Boch
88eb07fb8d
Update Godeps docker/pkg/common => /stringid
...
- pkg/common was renamed to pkg/stringid
- removed stale dep on libcontainer/utils
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-17 21:46:21 -07:00
Alessandro Boch
8098113830
Fix libnetwork_test.go
...
- It is working on default netns, leaving many
vethxxx to cleanup after it runs
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-04-17 21:18:55 -07:00
Jana Radhakrishnan
91eef607d0
Merge pull request #62 from marun/patch-1
...
Minor language cleanup in ROADMAP.md
2015-04-17 18:38:32 -07:00
Maru
0957eed04b
Minor language cleanup in ROADMAP.md
2015-04-17 15:31:21 -07:00
Madhu Venugopal
3debfb30b6
Merge pull request #61 from tomwilkie/expose_endpoint_id
...
Expose Endpoint IDs in their public interface.
2015-04-17 13:31:57 -07:00
Tom Wilkie
d449658d91
Expose Endpoint IDs in their public interface.
2015-04-17 14:55:32 +00:00
Madhu Venugopal
6e4b930357
Merge pull request #58 from mrjana/cnm
...
Change all the naked error returns in bridge driver to proper error types
2015-04-16 21:40:41 -07:00
Jana Radhakrishnan
e91ed59cb2
Changed all the naked error returns in bridge driver to proper error
...
types, except the naked error returns which were just prefixing
strings to previously returned error strings.
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-04-17 02:50:22 +00:00
Jana Radhakrishnan
cf40ea9ea9
Merge pull request #54 from aboch/pa
...
Port Allocator as a libnetwork package
2015-04-16 17:41:43 -07:00