Sebastiaan van Stijn
e9bd147bb7
Add Delete endpoint for plugin in test
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-05-23 14:55:29 +02:00
Sebastiaan van Stijn
cc38e3a35c
Fix TestValidRemoteDriver GetCapabilities errors
...
This test was producing error messages due to missing endpoints
in the plugin API;
```
=== RUN TestValidRemoteDriver
ERRO[0039] error getting capability for valid-network-driver due to NetworkDriver.GetCapabilities: 404 page not found
```
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-05-23 14:55:20 +02:00
Josh Soref
a06f1b2c4e
Spelling fixes
...
* addresses
* assigned
* at least
* attachments
* auxiliary
* available
* cleanup
* communicate
* communications
* configuration
* connection
* connectivity
* destination
* encountered
* endpoint
* example
* existing
* expansion
* expected
* external
* forwarded
* gateway
* implementations
* implemented
* initialize
* internally
* loses
* message
* network
* occurred
* operational
* origin
* overlapping
* reaper
* redirector
* release
* representation
* resolver
* retrieve
* returns
* sanbdox
* sequence
* succesful
* synchronizing
* update
* validates
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-07-12 12:54:44 -07:00
Brian Goff
5525c22635
Fix unknow driver test error
...
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit 8856c1ec9557e58917421bf1b32724262745a795)
Signed-off-by: selansen <elango.siva@docker.com>
2018-06-27 17:28:52 -04:00
Brian Goff
e07681c8ca
Bump docker commit
...
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit aae1b0e116d0c4ee0e46494864d1540fec22ced3)
Signed-off-by: selansen <elango.siva@docker.com>
2018-06-22 23:51:21 -04:00
Sebastiaan van Stijn
998a93783e
Fix test using com.docker.network.mtu
...
This should be `com.docker.network.driver.mtu`
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-08-14 16:22:11 +02:00
Derek McGowan
710e0664c4
Update logrus to v1.0.1
...
Fix case sensitivity issue
Update docker and runc vendors
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-07 11:20:47 -07:00
Flavio Crisciani
af5e370627
Add gosimple check
...
Add the gosimple tool check in the Makefile
Fix all the issues identified
Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-07-06 09:42:38 -07:00
Alessandro Boch
25082206df
Support configuration networks
...
- They are configuration-only networks which
can be used to supply the configuration
when creating regular networks.
- They do not get allocated and do net get plumbed.
Drivers do not get to know about them.
- They can be removed, once no other network is
using them.
- When user creates a network specifying a
configuration network for the config, no
other network specific configuration field
is are accepted. User can only specify
network operator fields (attachable, internal,...)
- They do not need to have a driver field, that
field gets actually reset upon creation.
Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-05-11 11:37:18 -07:00
Jana Radhakrishnan
f681e896ae
Merge pull request #1531 from daehyeok/logrus_formating
...
Fix logrus formatting
2016-11-08 13:23:39 -08:00
Daehyeok Mun
7f473c779a
Refactoring logrus import and formatting
...
This fix tries to fix logrus formatting by removing `f` from
`logrus.[Error|Warn|Debug|Fatal|Panic|Info]f` when formatting string
is not present.
Also fix import name to use original project name 'logrus' instead of
'log'
Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
2016-11-08 12:42:41 -07:00
Alessandro Boch
0d32a1924e
Check subnet overlap when programming of sandbox interface
...
Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-11-08 11:22:38 -08:00
Santhosh Manohar
a7e1718800
Add sandbox API for task insertion to service LB and service discovery
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-10-25 05:41:44 -07:00
Puneet Pruthi
a48b541da3
libnetwork support for Solaris
...
Signed-off-by: Puneet Pruthi <puneetpruthi@gmail.com>
2016-10-14 16:38:23 -07:00
Alessandro Boch
1b237a7a0c
Merge pull request #1456 from AkihiroSuda/fix-test-failures
...
Fix test failures
2016-09-22 13:19:06 -07:00
Akihiro Suda
a4d0e53f14
Fix test failures
...
* TestwriteJSON and TestontainerInvalidLeave were never executed due to the typos. Recent govet found them.
* TestWriteJSON was failing due to the comparison between string and []byte. Also, it didn't considered that json.Encode appends LF.
* TestContainerInvalidLeave was faling due to a typo
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2016-09-22 19:25:42 +00:00
msabansal
7f43fd30f3
DNS support
...
Signed-off-by: msabansal <sabansal@microsoft.com>
2016-09-20 13:02:02 -07:00
Santhosh Manohar
c9bf3b594e
Revert "Add sandbox API for task insertion to service LB and service discovery"
...
This reverts commit 8298e278be
.
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-09-14 08:44:20 -07:00
Santhosh Manohar
8298e278be
Add sandbox API for task insertion to service LB and service discovery
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-09-08 17:39:45 -07:00
Jana Radhakrishnan
8a225de00d
Merge pull request #1205 from allencloud/fix-typos
...
use grep to find a/an misuse
2016-08-01 09:49:31 -07:00
Erich Cordoba
df728f4e0c
Remove commented code from libnetwork_test.go
...
Signed-off-by: Erich Cordoba <erich.cm@yandex.com>
2016-07-21 23:37:54 -05:00
Lei Jitang
055c5dd496
Add network restore to support docker live restore container
...
Signed-off-by: Lei Jitang <leijitang@huawei.com>
2016-06-13 23:48:00 -07:00
Alessandro Boch
6d3fa9e0f2
Migrate libnetwork to use netlink.Handle
...
Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-06-08 21:05:36 -07:00
allencloud
9f415d0cdb
use grep to find a/an misuse
...
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-06-03 16:35:33 +08:00
Santhosh Manohar
0051e39750
Add support for SRV query in embedded DNS
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-05-19 00:27:59 -07:00
Jana Radhakrishnan
7d7b9f2405
Add support to accepting arbitrary network ID
...
Currently the libnetwork function `NewNetwork` does not allow
caller to pass a network ID and it is always generated internally.
This is sufficient for engine use. But it doesn't satisfy the needs
of libnetwork being used as an independent library in programs other
than the engine. This enhancement is one of the many needed to
facilitate a generic libnetwork.
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2016-04-15 12:34:21 -07:00
Santhosh Manohar
0c22e1bd07
Avoid V6 queries in docker domain going to external nameservers
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-03-19 03:07:08 -07:00
Santhosh Manohar
2e566e3882
Add AAAA record handling in embedded DNS server
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-03-16 19:00:17 -07:00
Tonis Tiigi
880d0ada95
Fix netns path setting from hook
...
Previously hook expected data with a wrong type.
Full netns path is not included with the data
passed with the hook.
Fixes #829
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2016-03-16 07:57:27 -07:00
Alessandro Boch
c92a4e9fd6
Avoid network/endpoint count inconsistences
...
- ... on ungraceful shutdown during network create
- Allow forceful deletion of network
- On network delete, first mark the network for deletion
- On controller creation, first forcely remove any network
that is marked for deletion.
Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-03-15 09:09:13 -07:00
Santhosh Manohar
bb3c060954
Merge pull request #810 from aboch/se
...
Move exposed ports and port bindings from Endpoint to Sandbox
2016-03-06 16:25:57 -08:00
Alessandro Boch
1638fbdf27
Move exposed ports from Endpoint to Sandbox
...
Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-03-06 09:31:26 -08:00
Santhosh Manohar
51058eecec
Implement DNS RR in the Docker embedded DNS server
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-03-03 09:33:10 -08:00
Chun Chen
9ba3f70d8e
bridge/overlay driver should fail to create network with empty ip pool passed
...
Signed-off-by: Chun Chen <ramichen@tencent.com>
2016-03-02 12:29:41 +07:00
Vincent Demeester
421a3ec5d7
Use gofmt with -s instead of goimports
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-02-12 14:07:00 +01:00
Aidan Hobson Sayers
cfb3ce460b
Don't allow passing EnableIPv6 as a driver option (a label)
...
Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
2016-01-30 16:01:29 +00:00
Madhu Venugopal
7a76968485
expose Endpoints API for a Sandbox
...
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2016-01-25 16:23:00 -08:00
Santhosh Manohar
30ef9bcf4a
Retain V6 DNS server in resolv.conf; use only V4 servers for fallback
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-01-19 00:06:19 -08:00
Jana Radhakrishnan
928bc5944f
Merge pull request #862 from mavenugo/epcleanup
...
Force endpoint delete
2016-01-12 11:05:31 -08:00
Madhu Venugopal
ec622bf158
Forced endpoint delete
...
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2016-01-12 18:50:28 +00:00
Chun Chen
7b64b1c293
Add internal network support for bridge networks
...
Signed-off-by: Chun Chen <ramichen@tencent.com>
2016-01-11 20:49:41 +08:00
Ryan Belgrave
16ff947fb6
IpamOptions per network not per ipam subnet
...
Signed-off-by: Ryan Belgrave <rmb1993@gmail.com>
2016-01-07 21:28:54 -05:00
Santhosh Manohar
cf7ed0a717
Embedded DNS server
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-01-07 00:25:26 -08:00
aboch
438314977f
Merge pull request #831 from chenchun/isolation
...
Add isolated network option
2015-12-21 18:10:13 -08:00
Chun Chen
186a32acab
Add internal network option
...
Signed-off-by: Chun Chen <ramichen@tencent.com>
2015-12-22 09:29:39 +08:00
Alessandro Boch
30ec1b5081
Bridge driver to honor IPv6 network gateway
...
- Currently bridge driver discards the user specified
network gateway for IPv6
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-12-21 14:00:00 -08:00
Alessandro Boch
af7bc494f9
Allow IPv6 allocation post endpoint create
...
- Controlled by network option
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-11-10 14:53:19 -08:00
Santhosh Manohar
3da8471681
Handling container rename in libnetwork
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2015-10-23 05:31:53 -07:00
Alessandro Boch
6026fe772c
Remove 2^32 bits restriction on bitsequence
...
- Allow bitsequence of length 2^64-1
- Updated ID Manager and IPAM
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-10 05:42:26 -07:00
Alessandro Boch
af3eb25d44
Phase-2 bridge driver changes to support IPAM
...
- Set bridge ipv4 address when bridge is present
- IPv6 changes for bridge
- Convert unit tests to the new model
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-08 16:22:03 -07:00