[WIP] FWaaSv2.0 Policy CRUD#1789
Conversation
|
Build succeeded.
|
|
@jtopjian Here's the entire Policy CRUD one for you :) |
jtopjian
left a comment
There was a problem hiding this comment.
@Elethiomel Nice work. Overall this is good.
I've left a few comments to review. In addition, we also need a doc.go file with examples on how to use the functions.
Please let me know if you have any questions.
| Description *string `json:"description,omitempty"` | ||
| Shared *bool `json:"shared,omitempty"` | ||
| Audited *bool `json:"audited,omitempty"` | ||
| Rules []string `json:"firewall_rules,omitempty"` |
There was a problem hiding this comment.
Is it possible to remove all rules from a policy? If so, this might need to be changed to *[]string{}. If this is possible to do, we should include an acceptance test and check that the returned policy's rules length is 0.
There was a problem hiding this comment.
fixed with mercedes-benz@7efe16b, but the acceptance test is probably missing. will check this on #2057
|
Build succeeded.
|
|
Build failed.
|
|
Build succeeded.
|
|
Hi @Elethiomel are you still into this? |
|
Yes I hope to progress on it soon. I've had some other major projects in the way unfortunately |
* FWaaSv2.0 Policy * s/Router/Policy/g as per #1789 (comment) * Acceptance test for AddRule as per #1789 (comment) * Acceptance test for RemoveRule as per #1789 (comment) * fwaas_v2: review fix (#1789 (comment)) from #1789 * openstack/networking/v2/extensions/fwaas_v2/rules/results.go fix firewall_policy_id According https://github.com/openstack/neutron-fwaas/blob/stable/ussuri/neutron_fwaas/db/firewall/v2/firewall_db_v2.py#L609 openstack does return an array here. The docs tell it is a string. * fix goimports * fwaas_v2: testing to remove all rules from firewall policy (#1789 (comment)) * fwaas_v2: extract result & test for policies.AddRule * fwaas_v2: test for RemoveRule * apply suggestions from #2057 Co-authored-by: Colin Fowler <elethiomel@gmail.com> Co-authored-by: Colin Fowler <colin.fowler@yoti.com> Co-authored-by: Schlotter, Christian <christian.schlotter@daimler.com>
|
@Elethiomel #2057 is merged, I think you can close this one. Thank you :-) |
|
Thank you both for your work on this. |
For #514
https://github.com/openstack/neutron-lib/blob/56033ba643812a30577f6ab17648806c2ee494ba/neutron_lib/api/definitions/firewall_v2.py#L159
https://github.com/openstack/neutron-fwaas/blob/27906d0acff349c9e5ac7955d203fb2233c295db/neutron_fwaas/db/firewall/v2/firewall_db_v2.py#L148