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/738145 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=f3797403486 ba43100ff9ec891 7d38c8723e12b2
Committed: https:/
Submitter: Zuul
Branch: master
commit f3797403486ba43 100ff9ec8917d38 c8723e12b2
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).
Change-Id: I8284b22c5d691b fd9eadeb8590c3d 4b27d261b04
Closes-Bug: #1878299