Launchpad

Bug of is_default option in the network create/set

Bug #1665231 reported by jiahui.qiang

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-32fd874605 94 |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| mtu | 1450 |
| name | hello |
| port_security_ enabled | True |
| project_id | d1d49fc67ef54ec f82ae6dd610c543 04 |
| 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-32fd874605 94 |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| mtu | 1450 |
| name | hello |
| port_security_ enabled | True |
| project_id | d1d49fc67ef54ec f82ae6dd610c543 04 |
| 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.

Read the original on bugs.launchpad.net ↗