diff options
author | Joffrey F <joffrey@docker.com> | 2017-11-02 15:35:43 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2017-11-02 15:49:37 -0700 |
commit | 2f43dcc62e2879f288fb493276bffb5664b97d6a (patch) | |
tree | 3cb1ef24f1b987342a7e8e1cfc2e1ea62693f065 /docker/models/networks.py | |
parent | ca7a6132a418c32df6bb11ba9b2a8b9b2727227a (diff) | |
download | docker-py-inspect-network-scope.tar.gz |
Add support for scope filter in inspect_networkinspect-network-scope
Fix missing scope implementation in create_network
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/models/networks.py')
-rw-r--r-- | docker/models/networks.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/docker/models/networks.py b/docker/models/networks.py index afb0ebe..158af99 100644 --- a/docker/models/networks.py +++ b/docker/models/networks.py @@ -102,15 +102,19 @@ class NetworkCollection(Collection): name (str): Name of the network driver (str): Name of the driver used to create the network options (dict): Driver options as a key-value dictionary - ipam (dict): Optional custom IP scheme for the network. - Created with :py:class:`~docker.types.IPAMConfig`. + ipam (IPAMConfig): Optional custom IP scheme for the network. check_duplicate (bool): Request daemon to check for networks with - same name. Default: ``True``. + same name. Default: ``None``. internal (bool): Restrict external access to the network. Default ``False``. labels (dict): Map of labels to set on the network. Default ``None``. enable_ipv6 (bool): Enable IPv6 on the network. Default ``False``. + attachable (bool): If enabled, and the network is in the global + scope, non-service containers on worker nodes will be able to + connect to the network. + scope (str): Specify the network's scope (``local``, ``global`` or + ``swarm``) ingress (bool): If set, create an ingress network which provides the routing-mesh in swarm mode. @@ -155,6 +159,10 @@ class NetworkCollection(Collection): Args: network_id (str): The ID of the network. + verbose (bool): Retrieve the service details across the cluster in + swarm mode. + scope (str): Filter the network by scope (``swarm``, ``global`` + or ``local``). Returns: (:py:class:`Network`) The network. |