Bug of is_default option in the network create/set
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-
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | |
| created_at | 2017-01-
| description | |
| dns_domain | None |
| id | 77d79610-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| mtu | 1450 |
| name | hello |
| port_security_
| project_id | d1d49fc67ef54ec
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 3 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| updated_at | 2017-01-
+------
➜ python-
➜ python-
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | |
| created_at | 2017-01-
| description | |
| dns_domain | None |
| id | 77d79610-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| mtu | 1450 |
| name | hello |
| port_security_
| project_id | d1d49fc67ef54ec
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 3 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| updated_at | 2017-01-
+------
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 |
Reviewed: https:/ /review. openstack. org/434602 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=7d93db21e59 e8518ed2ca8018c ecb69dc3f5b2e4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7d93db21e59e851 8ed2ca8018cecb6 9dc3f5b2e4
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: I7a05fc7734a159 94f72ca4e47997b 4952f1f72f8