network-ip-availabilities api return data is incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
In Progress
|
Undecided
|
ZhouHeng |
Bug Description
This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:
- [ ] This doc is inaccurate in this way: ______
- [ ] This is a doc addition request.
- [ ] I have a fix to the document that I can paste below including example: input and output.
If you have a troubleshooting or support issue, use the following resources:
- Ask OpenStack: http://
- The mailing list: http://
- IRC: 'openstack' channel on Freenode
-------
Release: on 2019-07-29 13:09:43
SHA: aaae83acaac5f58
Source: https:/
URL: https:/
tags: |
added: api removed: api-ref |
First I create a network and a subnet. network_ id=0c557c5f- acf6-44c4- 8c1c-cc12672d4d 4f
second I update subnet with allocation_pools=[]
then I call api /v2.0/network- ip-availabiliti es/0c557c5f- acf6-44c4- 8c1c-cc12672d4d 4f ip_availability ": {"used_ips": 1, "subnet_ ip_availability ": [{"used_ips": 1, "subnet_id": "a5b694f7- 7054-4ecc- 8447-8e9a7a15c5 f0", "subnet_name": "ZhNet-Subnet", "ip_version": 4, "cidr": "192.168.120.0/24", "total_ips": 256}], "network_id": "0c557c5f- acf6-44c4- 8c1c-cc12672d4d 4f", "tenant_id": "2fb75a1bedac44 9d904f71fbea5cd 1d2", "total_ips": 256, "project_id": "2fb75a1bedac44 9d904f71fbea5cd 1d2", "network_name": "ZhNet"}}
api return:
{"network_
this result tell me: I have 256 available IPs in subnet. but I couldn't create a port successfully in this network.