Firewall attribute "Shared" is set to None by default instead of 'False'
Bug #1465440 reported by
vishwanath jayaraman
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Akihiro Motoki | ||
neutron |
Won't Fix
|
High
|
vishwanath jayaraman | ||
python-neutronclient |
Fix Released
|
Medium
|
Akihiro Motoki |
Bug Description
In the current implementation, when a firewall is created, the default value of the attribute 'Shared' is set to 'None' instead of 'False'. When Firewall attributes are seen from Horizon, the display value is shown as 'Maybe' instead of 'No' due to value being 'None'.
Changed in horizon: | |
status: | New → In Progress |
Changed in python-neutronclient: | |
status: | New → In Progress |
tags: | added: kilo-backport-potential |
Changed in horizon: | |
milestone: | none → liberty-2 |
status: | Fix Committed → Fix Released |
Changed in python-neutronclient: | |
milestone: | none → 3.0.0 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | liberty-2 → 8.0.0 |
no longer affects: | horizon/kilo |
To post a comment you must log in.
After a quick look around the code, I noticed two problems.
- 'shared' attribute in firewall resource is not passed to DB entry. [1]
- 'shared' attribute is marked as 'visible=False' in the attribute map, so 'shared' attribute does not exist in the API response. [2]
If we read the code and FWaaS API literally, it seems that changing the above two points fixes the bug.
[1] https:/ /github. com/openstack/ neutron- fwaas/blob/ master/ neutron_ fwaas/db/ firewall/ firewall_ db.py#L309 /github. com/openstack/ neutron- fwaas/blob/ master/ neutron_ fwaas/extension s/firewall. py#L323
[2] https:/