File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -81,16 +81,17 @@ def _get_network(self) -> docker.models.networks.Network:
81
81
except docker .errors .NotFound :
82
82
_LOGGER .info ("Can't find Supervisor network, creating a new network" )
83
83
84
- ip6am_pool = docker .types .IPAMPool (subnet = str (DOCKER_IPV6_NETWORK_MASK ))
85
-
86
- ip4am_pool = docker .types .IPAMPool (
87
- subnet = str (DOCKER_IPV4_NETWORK_MASK ),
88
- gateway = str (self .gateway ),
89
- iprange = str (DOCKER_IPV4_NETWORK_RANGE ),
84
+ ipam_config = docker .types .IPAMConfig (
85
+ ool_configs = [
86
+ docker .types .IPAMPool (subnet = str (DOCKER_IPV6_NETWORK_MASK )),
87
+ docker .types .IPAMPool (
88
+ subnet = str (DOCKER_IPV4_NETWORK_MASK ),
89
+ gateway = str (self .gateway ),
90
+ iprange = str (DOCKER_IPV4_NETWORK_RANGE ),
91
+ ),
92
+ ]
90
93
)
91
94
92
- ipam_config = docker .types .IPAMConfig (pool_configs = [ip6am_pool , ip4am_pool ])
93
-
94
95
return self .docker .networks .create (
95
96
DOCKER_NETWORK ,
96
97
driver = "bridge" ,
You can’t perform that action at this time.
0 commit comments