No default ip-version for "ip availability list" command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
aohuanxuan |
Bug Description
There is not a default ip-version in "ip availability list" command, so there are some errors when we use the command without "--ip-version" option.
(openstack) ip availability list
+------
| Network ID | Network Name | Total IPs | Used IPs |
+------
| 4ea57678-
| b2ea9074-
+------
(openstack) ip availability list --ip-version 4
+------
| Network ID | Network Name | Total IPs | Used IPs |
+------
| 4ea57678-
| b2ea9074-
+------
(openstack) ip availability list --ip-version 6
+------
| Network ID | Network Name | Total IPs | Used IPs |
+------
| 4ea57678-
| b2ea9074-
+------
We can see there are 3 different outputs.
Comparing with the output of the command in neutronclient.
(neutron) net-ip-
+------
| network_id | network_name | total_ips | used_ips |
+------
| 4ea57678-
| b2ea9074-
+------
(neutron) net-ip-
+------
| network_id | network_name | total_ips | used_ips |
+------
| 4ea57678-
| b2ea9074-
+------
(neutron) net-ip-
+------
| network_id | network_name | total_ips | used_ips |
+------
| 4ea57678-
| b2ea9074-
+------
We can find that if we use the "ip availability list" command of OSC without "--ip-version" option.
the output is wrong.
So, I think we need add the default ip-version for the "ip availability list" command in OSC.
Changed in python-openstackclient: | |
assignee: | nobody → aohuanxuan (huanxuan-ao) |
Changed in python-openstackclient: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/329771 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=ca5e8e6c854 0e457a620cc90d3 21a08e7417de32
Committed: https:/
Submitter: Jenkins
Branch: master
commit ca5e8e6c8540e45 7a620cc90d321a0 8e7417de32
Author: Huanxuan Ao <email address hidden>
Date: Wed Jun 15 13:57:39 2016 +0800
Add default IP version and fix help messages for "ip availability list"
There was not a default IP version in "ip availability list"
command, if we used this command without "--ip-version" option,
the output was different from the outputs with the option
"--ip-version 4" and "--ip-version 6" and it is not right.
This patch add default IP version (default is 4) in ``ip
availability list`` command and make this command work properly
without ``--ip-version`` option. And also fix the help message.
Change-Id: Idc08ab6eaf0594 6eb2ab59bfb3d44 97a383d987d
Closes-Bug: #1592761