Browse Source

mech_driver.OVNMechanismDriver "_ovn_client" is a read-only property

mech_driver.OVNMechanismDriver "_ovn_client" is not a class member but
a read-only property and can't be assigned.

Backported from Neutron (Ussuri): https://review.opendev.org/#/c/715375

Closes-Bug: #1869342

Change-Id: I98f7deaeaad80c840cfccc0dfc3f6f97de05e088
(cherry picked from commit e32e750b35)
(cherry picked from commit c46d2c6c5b)
(cherry picked from commit b81dc20945)
changes/80/715380/4
Rodolfo Alonso Hernandez 1 year ago
parent
commit
93e938509b
  1. 3
      networking_ovn/cmd/neutron_ovn_db_sync_util.py

3
networking_ovn/cmd/neutron_ovn_db_sync_util.py

@ -24,7 +24,6 @@ from neutron import opts as neutron_options
from neutron.plugins.ml2 import plugin as ml2_plugin
from networking_ovn.common import config as ovn_config
from networking_ovn.common import ovn_client
from networking_ovn.ml2 import mech_driver
from networking_ovn import ovn_db_sync
from networking_ovn.ovsdb import impl_idl_ovn
@ -53,8 +52,6 @@ class OVNMechanismDriver(mech_driver.OVNMechanismDriver):
@property
def ovn_client(self):
if not self._ovn_client:
self._ovn_client = ovn_client.OVNClient(self._nb_ovn, self._sb_ovn)
return self._ovn_client
# Since we are not using the networking_ovn mechanism driver while syncing,

Loading…
Cancel
Save