neutron/neutron
Brian Haley 45f5635606 Use dict .get() to avoid a KeyError in the segment plugin
On subnet delete, the supplied subnet in the post hook
could contain a subnet without certain items, leading to
a KeyError in the segment plugin.  Fix a number of these
occurences so this cannot happen.

Also fixed similar code in the segment tests.

Conflicts:
    neutron/services/segments/plugin.py

Change-Id: I645610febde446b78ed6edd868e699673648a4de
Closes-bug: #1868724
(cherry picked from commit 07b015d789)
(cherry picked from commit b019821abd)
2020-09-04 15:14:40 +02:00
..
agent Merge "Not remove the running router when MQ is unreachable" into stable/queens 2020-08-28 18:30:51 +00:00
api [Security] fix allowed-address-pair 0.0.0.0/0 issue 2020-07-31 13:31:18 +02:00
cmd Fix Traceback when running neutron-ipset-cleanup tool 2020-07-31 11:05:08 +00:00
common Add trunk subports to be one of dvr serviced device owners 2020-04-06 11:38:08 +00:00
conf Add config option ``http_retries`` 2020-07-09 10:18:46 +00:00
core_extensions
db Merge "Pass context in disassociate_floatingip notification" into stable/queens 2020-09-04 11:52:43 +00:00
debug
extensions Improve invalid port ranges error message 2019-03-21 10:18:01 -04:00
hacking
ipam Update the processing of assigned addresses when assigning addresses 2020-06-19 10:10:41 +00:00
locale
notifiers Add config option ``http_retries`` 2020-07-09 10:18:46 +00:00
objects Improve VLAN allocations synchronization 2020-04-23 16:15:17 +00:00
pecan_wsgi Set DB retry for quota_enforcement pecan_wsgi hook 2019-12-16 11:16:23 +00:00
plugins Fix unnecessary security_groups_member_updated notification 2020-09-02 07:17:57 +00:00
privileged Merge "Switch create/delete interfaces to pyroute2" into stable/queens 2020-04-28 17:18:33 +00:00
quota Set DB retry for quota_enforcement pecan_wsgi hook 2019-12-16 11:16:23 +00:00
scheduler
server Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-20 09:39:20 +00:00
services Use dict .get() to avoid a KeyError in the segment plugin 2020-09-04 15:14:40 +02:00
tests Use dict .get() to avoid a KeyError in the segment plugin 2020-09-04 15:14:40 +02:00
__init__.py
_i18n.py
auth.py
manager.py
neutron_plugin_base_v2.py
opts.py
policy.py Treat networks shared by RBAC in same way as shared with all tenants 2019-06-28 06:05:44 +00:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-20 09:39:20 +00:00
version.py
worker.py
wsgi.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-20 09:39:20 +00:00