neutron/neutron/services/segments
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
..
__init__.py Basic Extension and CRUD for Segments 2016-05-05 13:58:34 -06:00
db.py Only store segmenthostmapping when enable segment plugin 2019-05-30 17:56:17 +03:00
exceptions.py Enable create and delete segments in ML2 2016-08-28 01:24:56 -04:00
placement_client.py Filter placement API endpoint by type too 2019-07-22 23:46:32 +03:00
plugin.py Use dict .get() to avoid a KeyError in the segment plugin 2020-09-04 15:14:40 +02:00