neutron/neutron/services
Flavio Fernandes 4ac33d1a9b 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:
https://review.opendev.org/#/c/738145/
https://review.opendev.org/#/c/744993/

Note: pep8 failed with following error:
  ./neutron/tests/unit/services/portforwarding/test_pf_plugin.py:237:9:
  ./neutron/tests/unit/services/portforwarding/test_pf_plugin.py:261:9:
    N322  Possible use of no-op mock method. please use assert_called_once_with.
        mock_pf_get_objects.assert_called_once()
        ^
So additional changes were needed for backport.

Change-Id: I8284b22c5d691bfd9eadeb8590c3d4b27d261b04
Closes-Bug: #1878299
(cherry picked from commit f379740348)
(cherry picked from commit 838399f0a4)
2020-08-06 14:38:29 -04:00
..
auto_allocate Implement filter validation 2018-07-19 04:13:43 +00:00
externaldns Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
flavors Implement filter validation 2018-07-19 04:13:43 +00:00
l3_router Merge "Implement filter validation" 2018-07-24 15:11:07 +00:00
logapi Merge "ovs fw: apply the NORMAL action on egress traffic in a single table" into stable/rocky 2018-09-07 18:40:00 +00:00
loki use sqla functions from neutron-lib 2018-07-25 21:04:20 +00:00
metering Retry creating iptables managers and adding metering rules 2019-11-04 21:40:22 +00:00
network_ip_availability Implement filter validation 2018-07-19 04:13:43 +00:00
portforwarding port_forwarding: validate args before invoking db update 2020-08-06 14:38:29 -04:00
qos Fix QoS rule update 2019-03-28 08:51:38 +00:00
rbac Neutron RBAC API and network support 2015-08-20 20:00:17 -07:00
revisions Run revision bump operations en masse 2019-11-25 13:55:43 -05:00
segments Filter placement API endpoint by type too 2019-07-22 23:44:52 +03:00
tag Implement filter validation 2018-07-19 04:13:43 +00:00
timestamp Merge "use sqla functions from neutron-lib" 2018-07-26 07:52:42 +00:00
trunk Wait before deleting trunk bridges for DPDK vhu 2020-04-03 21:11:57 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
provider_configuration.py use db utils from lib 2018-07-02 08:24:36 -06:00
service_base.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00