Bug of is_default option in the network create/set

Bug #1665231 reported by jiahui.qiang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
jiahui.qiang

Bug Description

'is_default' is an item of the output in network create/show. but the value seems to always be None. As we can see from the below:

➜ python-openstackclient git:(master) openstack network create hello --no-default
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2017-01-18T23:11:40Z |
| description | |
| dns_domain | None |
| id | 77d79610-8878-4015-b39f-32fd87460594 |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| mtu | 1450 |
| name | hello |
| port_security_enabled | True |
| project_id | d1d49fc67ef54ecf82ae6dd610c54304 |
| provider:network_type | vxlan |
| provider:physical_network | None |
| provider:segmentation_id | 10 |
| qos_policy_id | None |
| revision_number | 3 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| updated_at | 2017-01-18T23:11:40Z |
+---------------------------+--------------------------------------+
➜ python-openstackclient git:(master) openstack network set hello --no-default
➜ python-openstackclient git:(master) openstack network show hello
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2017-01-18T23:11:40Z |
| description | |
| dns_domain | None |
| id | 77d79610-8878-4015-b39f-32fd87460594 |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| mtu | 1450 |
| name | hello |
| port_security_enabled | True |
| project_id | d1d49fc67ef54ecf82ae6dd610c54304 |
| provider:network_type | vxlan |
| provider:physical_network | None |
| provider:segmentation_id | 10 |
| qos_policy_id | None |
| revision_number | 3 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| updated_at | 2017-01-18T23:11:40Z |
+---------------------------+--------------------------------------+

When i set the value, it still show None. the right value show be True or False.

Changed in python-openstackclient:
assignee: nobody → jiahui.qiang (jiahui.qiang)
Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/434602
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=7d93db21e59e8518ed2ca8018cecb69dc3f5b2e4
Submitter: Jenkins
Branch: master

commit 7d93db21e59e8518ed2ca8018cecb69dc3f5b2e4
Author: jiahui.qiang <email address hidden>
Date: Thu Jan 19 04:35:29 2017 +0800

    Fix can not set is_default in network

    The value of is_default always be None, can not be set by
    "network set" command. Allow "--default" and "--no-default"
    options to be recognized when ``--external`` is not present.

    Closes-bug:#1665231

    Change-Id: I7a05fc7734a15994f72ca4e47997b4952f1f72f8

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.9.0

This issue was fixed in the openstack/python-openstackclient 3.9.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.