File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def containers(self):
25
25
(self .attrs .get ('Containers' ) or {}).keys ()
26
26
]
27
27
28
- def connect (self , container ):
28
+ def connect (self , container , * args , ** kwargs ):
29
29
"""
30
30
Connect a container to this network.
31
31
@@ -52,9 +52,12 @@ def connect(self, container):
52
52
"""
53
53
if isinstance (container , Container ):
54
54
container = container .id
55
- return self .client .api .connect_container_to_network (container , self .id )
55
+ return self .client .api .connect_container_to_network (container ,
56
+ self .id ,
57
+ * args ,
58
+ ** kwargs )
56
59
57
- def disconnect (self , container ):
60
+ def disconnect (self , container , * args , ** kwargs ):
58
61
"""
59
62
Disconnect a container from this network.
60
63
@@ -72,7 +75,9 @@ def disconnect(self, container):
72
75
if isinstance (container , Container ):
73
76
container = container .id
74
77
return self .client .api .disconnect_container_from_network (container ,
75
- self .id )
78
+ self .id ,
79
+ * args ,
80
+ ** kwargs )
76
81
77
82
def remove (self ):
78
83
"""
You can’t perform that action at this time.
0 commit comments