Fwaas - insert_rule and remove_rule always set audited to False
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Opinion
|
Undecided
|
brenda | ||
openstack-api-site |
Invalid
|
Undecided
|
brenda |
Bug Description
when people use "insert_rule" or "remove_rule" on a firewall policy, the "audited" attribute of the firewall policy is always set to be "false" in function _process_
First, It's not logical when the firewall policy was created with "audited" to be "true" and both "insert_rule" and "remove_rule" don't intend to modify "audited" attribute.
Second, after bug https:/
Above is the error in fwaas code. There is alse an error in fwaas v1.0 api as to the description about "audited" attribute.The api document says "Each time that the firewall policy or its associated rules are changed, the API sets this attribute to false. To audit the policy, explicitly set this attribute to true.". But why user needs to explicitly set it again after insert_rule or remove_rule ? And in fact ,"update_
So I think we should correct this error both in code and api document.
Changed in neutron: | |
assignee: | nobody → brenda (tian-mingming) |
Changed in openstack-api-site: | |
assignee: | nobody → brenda (tian-mingming) |
Changed in openstack-api-site: | |
status: | Incomplete → Invalid |
You mention "above is the error in fwaas code" but there is no code in your report. Did you forget to paste a link?