[Xena Only] Use _ovn instead of _nb_ovn for l3_plugin

This was introduced in [1], Switch to _nb_ovn is only
available since Yoga[2]. In wallaby it's already fixed
as part of other fix[3].

[1] https://review.opendev.org/q/I0c4d492887216cad7a8155dceb738389f2886376
[2] https://github.com/openstack/neutron/commit/92b0811
[3] https://review.opendev.org/c/openstack/neutron/+/841204

Related-Bug: #1957185
Change-Id: I91ef163083678dab5229946c4cf1f09b9885ff6d
This commit is contained in:
yatinkarel 2022-05-12 19:43:27 +05:30
parent 0f424f60f8
commit e59cf95dc0
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class OVNPortForwarding(object):
def _handle_lb_on_ls(self, _resource, event_type, _pf_plugin, payload):
if not payload:
return
ovn_nb = self._l3_plugin._nb_ovn
ovn_nb = self._l3_plugin._ovn
with ovn_nb.transaction(check_error=True) as ovn_txn:
if event_type == events.AFTER_CREATE:
self._handler._add_lb_on_ls(ovn_txn, ovn_nb,