Bump port revision if binding_levels changed

Related-Bug: #2065577
Change-Id: I0d04c3a1dae86a2b6b4ba70c0e9595b2527b4f71
This commit is contained in:
LIU Yulong 2024-05-17 11:43:13 +08:00
parent a3d0fb6673
commit 80577381d9

View File

@ -795,6 +795,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
# Expire the "binding_levels" and fetch them into the port.
plugin_context.session.flush()
getattr(port_db, 'binding_levels')
port_db.bump_revision()
# refresh context with a snapshot of updated state
cur_context._binding = driver_context.InstanceSnapshot(
cur_context_binding)