neutron/neutron/services/segments
Brian Haley ce8d891c79 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.

Change-Id: I645610febde446b78ed6edd868e699673648a4de
Closes-bug: #1868724
(cherry picked from commit 07b015d789)
(cherry picked from commit b019821abd)
2020-09-04 13:09:49 +00: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-29 22:17:48 +00:00
exceptions.py Allow setting network-segment on subnet update 2018-05-24 01:09:02 +02:00
placement_client.py Filter placement API endpoint by type too 2019-07-22 23:44:52 +03:00
plugin.py Use dict .get() to avoid a KeyError in the segment plugin 2020-09-04 13:09:49 +00:00