Browse Source

Merge "Avoid empty "vsctl" transactions" into stable/stein

changes/42/738742/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
f419724bca
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      neutron/agent/common/ovs_lib.py

+ 6
- 5
neutron/agent/common/ovs_lib.py View File

@@ -911,11 +911,12 @@ class OVSBridge(BaseOVS):
'qos').execute(check_error=False)
qos = self.find_qos(port_name)
queue = self.find_queue(port_name, QOS_DEFAULT_QUEUE)
with self.ovsdb.transaction(check_error=True) as txn:
if qos:
txn.add(self.ovsdb.db_destroy('QoS', qos['_uuid']))
if queue:
txn.add(self.ovsdb.db_destroy('Queue', queue['_uuid']))
if qos:
self.ovsdb.db_destroy('QoS',
qos['_uuid']).execute(check_error=True)
if queue:
self.ovsdb.db_destroy('Queue',
queue['_uuid']).execute(check_error=True)

def set_controller_field(self, field, value):
attr = [(field, value)]


Loading…
Cancel
Save