Merge "Remove session active check in "_add_segment_host_mapping_for_segment"" into stable/xena

This commit is contained in:
Zuul 2022-05-30 17:44:05 +00:00 committed by Gerrit Code Review
commit 218ec9ac84
1 changed files with 0 additions and 6 deletions

View File

@ -326,12 +326,6 @@ def _add_segment_host_mapping_for_segment(resource, event, trigger,
payload=None):
context = payload.context
segment = payload.latest_state
if not context.session.is_active:
# The session might be in partial rollback state, due to errors in
# peer callback. In that case, there is no need to add the mapping.
# Just return here.
return
if not segment.physical_network:
return
cp = directory.get_plugin()