mirror of https://github.com/veops/cmdb.git
chore: release v2.4.15
This commit is contained in:
parent
9c4cc20e13
commit
464b9d5394
|
@ -205,7 +205,7 @@ class SubnetManager(object):
|
|||
return cidr
|
||||
|
||||
def _add_subnet(self, cidr, **kwargs):
|
||||
kwargs[SubnetBuiltinAttributes.HOSTS_COUNT] = ipaddress.ip_network(cidr).num_addresses - 2
|
||||
kwargs[SubnetBuiltinAttributes.HOSTS_COUNT] = len(list(ipaddress.ip_network(cidr).hosts()))
|
||||
kwargs[SubnetBuiltinAttributes.USED_COUNT] = 0
|
||||
kwargs[SubnetBuiltinAttributes.ASSIGN_COUNT] = 0
|
||||
kwargs[SubnetBuiltinAttributes.FREE_COUNT] = kwargs[SubnetBuiltinAttributes.HOSTS_COUNT]
|
||||
|
|
|
@ -41,7 +41,7 @@ services:
|
|||
- redis
|
||||
|
||||
cmdb-api:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-api:2.4.14
|
||||
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-api:2.4.15
|
||||
container_name: cmdb-api
|
||||
env_file:
|
||||
- .env
|
||||
|
@ -71,7 +71,7 @@ services:
|
|||
flask cmdb-init-acl
|
||||
flask init-import-user-from-acl
|
||||
flask init-department
|
||||
nohup flask cmdb-patch -v 2.4.14 &
|
||||
nohup flask cmdb-patch -v 2.4.15 &
|
||||
flask cmdb-counter > counter.log 2>&1
|
||||
networks:
|
||||
new:
|
||||
|
@ -84,7 +84,7 @@ services:
|
|||
test: "ps aux|grep -v grep|grep -v '1 root'|grep gunicorn || exit 1"
|
||||
|
||||
cmdb-ui:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-ui:2.4.14
|
||||
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-ui:2.4.15
|
||||
container_name: cmdb-ui
|
||||
depends_on:
|
||||
cmdb-api:
|
||||
|
|
Loading…
Reference in New Issue