New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LBaaS v2 l7 policy support - part 5: update l7policy #905
Conversation
f1fd873
to
e79a624
Compare
Build failed.
|
e79a624
to
e5d6406
Compare
Build succeeded.
|
For gophercloud#832 Neutron-LBaaS l7 policy update API implementation: https://github.com/openstack/neutron-lbaas/blob/ac720b2a49720fb99e4189f93d5a83cfb295ccb3/neutron_lbaas/services/loadbalancer/plugin.py#L931 Octavia l7 policy update API implementation: https://github.com/openstack/octavia/blob/06bf5c58d5845f684fcaf933605ed112586eefc3/octavia/api/v2/controllers/l7policy.py#L204
e5d6406
to
56a0b53
Compare
Build succeeded.
|
@jtopjian @jrperritt hi, update l7 policy is ready to review :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lingxiankong Overall this looks good. I have two questions about the fields.
// operation. | ||
type UpdateOpts struct { | ||
// Name of the L7 policy. | ||
Name string `json:"name,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to remove a name? If so, this should be *string
. That will allow a value of ""
to be sent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a valid question, @jtopjian I tested in my octavia environment, an empty string for both name and description are allowed to be specified to update l7 policy, i will update the PR
Position int32 `json:"position,omitempty"` | ||
|
||
// A human-readable description for the resource. | ||
Description string `json:"description,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to remove a description? If so, this should be *string
.
Build failed.
|
2fcdd51
to
c509aa9
Compare
Build succeeded.
|
@jtopjian PR updated |
LGTM - thank you :) The example in |
For #832
Neutron-LBaaS l7 policy update API implementation:
https://github.com/openstack/neutron-lbaas/blob/ac720b2a49720fb99e4189f93d5a83cfb295ccb3/neutron_lbaas/services/loadbalancer/plugin.py#L931
Octavia l7 policy update API implementation:
https://github.com/openstack/octavia/blob/06bf5c58d5845f684fcaf933605ed112586eefc3/octavia/api/v2/controllers/l7policy.py#L204