neutron/neutron/services/segments
Brian Haley 97f6e2569e 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:13 +00:00
..
__init__.py Basic Extension and CRUD for Segments 2016-05-05 13:58:34 -06:00
db.py use payloads for SEGMENT AFTER_DELETE events 2019-01-08 10:45:12 -07:00
exceptions.py Allow setting network-segment on subnet update 2018-05-24 01:09:02 +02:00
plugin.py Use dict .get() to avoid a KeyError in the segment plugin 2020-09-04 13:09:13 +00:00