Conversation
…wall_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.
|
Build succeeded.
|
|
here is the output of acceptance/openstack/networking/v2/extensions/fwaas_v2/policy_test.go |
|
Build succeeded.
|
|
Build succeeded.
|
172648c to
4ca3e93
Compare
|
Build succeeded.
|
|
@Elethiomel @jtopjian ptal :-) |
jtopjian
left a comment
There was a problem hiding this comment.
@codemanufaktur Thank you for working on this and for the test output 🙂
I've left a few comments - mostly just renaming fields. Please let me know if you have any questions.
openstack/networking/v2/extensions/fwaas_v2/policies/requests.go
Outdated
Show resolved
Hide resolved
| DestinationPort string `json:"destination_port,omitempty"` | ||
| Shared bool `json:"shared,omitempty"` | ||
| Enabled bool `json:"enabled,omitempty"` | ||
| FirewallPolicyID []string `json:"firewall_policy_id"` |
There was a problem hiding this comment.
Should this have always been []string or was this a change made between OpenStack releases?
There was a problem hiding this comment.
Hi @jtopjian , if I did see it right, then firewall_policy_id was introduced as array:
See commit: openstack/neutron-fwaas@55fed40
Also here the reference to the neutron-fwaas codebase: https://github.com/openstack/neutron-fwaas/blob/stable/ussuri/neutron_fwaas/db/firewall/v2/firewall_db_v2.py#L282
openstack/networking/v2/extensions/fwaas_v2/policies/requests.go
Outdated
Show resolved
Hide resolved
openstack/networking/v2/extensions/fwaas_v2/policies/requests.go
Outdated
Show resolved
Hide resolved
openstack/networking/v2/extensions/fwaas_v2/policies/requests.go
Outdated
Show resolved
Hide resolved
openstack/networking/v2/extensions/fwaas_v2/policies/requests.go
Outdated
Show resolved
Hide resolved
f728a02 to
84c3fb8
Compare
84c3fb8 to
a84938a
Compare
a84938a to
ec15a46
Compare
|
Build succeeded.
|
follow up PR for #1789 by @Elethiomel (I asked for the permission to get this done)
contains 2 cherry-picks from https://github.com/Daimler/gophercloud/commits/fwaas-v2 by @chrischdi
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
Georg Schreiber georg.g.schreiber@daimler.com, Daimler TSS GmbH, legal info/Impressum