port_forwarding: validate args before invoking db update
Add validator to update_floatingip_port_forwarding so codepath does not
attempt performing invalid database operation. With that, operation fails
right away, with a hint on the offending argument(s).
Reviewed: https:/ /review. opendev. org/744177 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c678d89dabc 0b39a266c7c0c7b 99bd156b6fa5c9
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit c678d89dabc0b39 a266c7c0c7b99bd 156b6fa5c9
Author: Flavio Fernandes <email address hidden>
Date: Thu Jun 25 23:34:32 2020 -0400
port_ forwarding: validate args before invoking db update
Add validator to update_ floatingip_ port_forwarding so codepath does not
attempt performing invalid database operation. With that, operation fails
right away, with a hint on the offending argument(s).
This is a backport that combines changes from 2 changes that go together: /review. opendev. org/#/c/ 738145/ /review. opendev. org/#/c/ 744993/
https:/
https:/
Change-Id: I8284b22c5d691b fd9eadeb8590c3d 4b27d261b04 100ff9ec8917d38 c8723e12b2) 8cfefe49dbe0265 53bc117381)
Closes-Bug: #1878299
(cherry picked from commit f3797403486ba43
(cherry picked from commit 838399f0a489e89