summaryrefslogtreecommitdiff
path: root/docker/api/network.py
Commit message (Collapse)AuthorAgeFilesLines
* Refuse API version < 1.21 ; Remove associated code pathscleanup_deprecatedJoffrey F2018-01-311-6/+0
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for scope filter in inspect_networkJoffrey F2017-11-071-1/+16
| | | | | | Fix missing scope implementation in create_network Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix indentation in docstringErik Johnson2017-11-071-1/+1
| | | | | | | The incorrect indentation causes improper formatting when the docs are published. Signed-off-by: Erik Johnson <palehose@gmail.com>
* client.networks.create check_duplicates docs not reflective of behaviorDima Spivak2017-08-171-1/+1
| | | | | | Fixes #1693 Signed-off-by: Dima Spivak <dima@spivak.ch>
* Fix #1673 check resource error in container network APIMatthew Berry2017-08-171-2/+2
| | | | | | | | Container network functions checked 'image' as resource ID and not 'container'. This caused a traceback when using container as named argument. Signed-off-by: Matthew Berry <mtberry89@gmail.com>
* Merge pull request #1649 from shin-/1639-exec-id-check-resourceJoffrey F2017-06-191-2/+4
|\ | | | | Update check_resource decorator to account for new resource names
| * Update check_resource decorator to account for new resource namesJoffrey F2017-06-151-2/+4
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Add support for ingress in create_networkcreate-ingress-networkJoffrey F2017-05-171-1/+12
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Standardize handling of verbose param in inspect_networkJoffrey F2017-04-101-11/+10
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add 'verbose' option for network inspect apiSanthosh Manohar2017-04-101-2/+11
| | | | Signed-off-by: Santhosh Manohar <santhosh@docker.com>
* Add prune_networks methodJoffrey F2017-01-301-0/+22
| | | | | | Ensure all integration tests use the same version of the busybox image Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix a number of docs formatting issuesdocs-fixesJoffrey F2017-01-181-10/+11
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add filters option to NetworkApiMixin.networksLobsiinvok2017-01-051-7/+10
| | | | Signed-off-by: Boik <qazbnm456@gmail.com>
* Fix typo in create_networkJoffrey F2016-12-061-4/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add attachable.Daniel Nephin2016-12-051-2/+11
| | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* Move config type creation from docker.utils functions to classes inconfig_typesJoffrey F2016-12-011-4/+3
| | | | | | docker.types Signed-off-by: Joffrey F <joffrey@docker.com>
* Add docstrings to low-level APIBen Firshman2016-11-221-0/+100
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add support for force disconnect1105-network-apiJoffrey F2016-08-311-2/+9
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for labels and enable_ipv6 in create_networkJoffrey F2016-08-311-1/+18
| | | | | | Tests + docs Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for link-local IPs in endpoint config1107-link-local-ipsJoffrey F2016-06-241-2/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Unify endpoint config creation when using connect_container_to_networkJoffrey F2016-06-131-19/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for creating internal networksJonathan Giannuzzi2016-05-181-1/+8
| | | | Signed-off-by: Jonathan Giannuzzi <jonathan@giannuzzi.be>
* Add missing CheckDuplicate parameter to /networks/create API callGabriel Féron2016-03-221-1/+3
| | | | | | When set to True, this prevents creating more than one network with the same name (see https://docs.docker.com/engine/reference/api/docker_remote_api_v1.21/#create-a-network) Signed-off-by: Gabriel Féron <feron.gabriel@gmail.com>
* Add ip4&ip6 (#935) support, network/id/connectMatt Daue2016-03-021-0/+18
| | | | | | | | | | | | Signed-off-by: Matt Daue <mattdaue@gmail.com> - Implement check to validate API ver is >= 1.22 for new feature - Includes patch @elchris82: Changed network in data dict to IPAMConfig as needed from the API. See https://github.com/docker/docker/issues/20732 - Update unit test for container attach to net - Update integration tests - Add integration test for IP setting Signed-off-by: Matt Daue <mattdaue@gmail.com>
* Raise exceptions for API errors on network connect/disconnectAanand Prasad2016-01-251-2/+4
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Support links when creating containers or connecting to networksAanand Prasad2016-01-201-2/+4
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Normalise/fix networking API JSON keysAanand Prasad2016-01-181-4/+4
| | | | | | | - Use CamelCase - `auxaddresses` -> `AuxiliaryAddresses` Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Implement support for network-scoped aliasesAanand Prasad2016-01-141-2/+7
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* allow custom ipam options when creating networksRyan Belgrave2016-01-041-2/+3
| | | | Signed-off-by: Ryan Belgrave <rmb1993@gmail.com>
* Allow providing options when creating networksSumit Sahrawat2015-12-101-1/+5
| | | | | | | | | | | | | | Following the spec: http://docs.docker.com/engine/reference/api/docker_remote_api_v1.21/#create-a-network I have added an Options argument to create_network. This opens up the possibility of creating isolated containers with no internet access programmatically. We require such facilities in https://github.com/jupyter/tmpnb/issues/187. Signed-off-by: Sumit Sahrawat <sumit.sahrawat.apm13@iitbhu.ac.in>
* Add minimum_version decorators on NetworkApi methodsJoffrey F2015-10-081-1/+7
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Implement methods for managing networksAanand Prasad2015-10-051-0/+49
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>