Skip to content

Commit 643dbbb

Browse files
committed
[OVN] OVN agent extensions correctly consume agent API
Now the ``OVNAgentExtension`` class do not clear the agent API during the extension initialization. This patch also passes the agent object to the OVN agent extensions as agent API. Any method required will be implemented directly on the OVN agent class. Closes-Bug: #2046939 Change-Id: Ia635ca1ff97c3db43a34d3dec6a7f9df154dfe28 (cherry picked from commit 86efc8b)
1 parent 5ff3821 commit 643dbbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

neutron/agent/ovn/agent/ovn_neutron_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, conf):
5959
self.ovn_bridge = None
6060
self.ext_manager_api = ext_mgr.OVNAgentExtensionAPI()
6161
self.ext_manager = ext_mgr.OVNAgentExtensionManager(self._conf)
62-
self.ext_manager.initialize(None, 'ovn', self.ext_manager_api)
62+
self.ext_manager.initialize(None, 'ovn', self)
6363

6464
@property
6565
def ovs_idl(self):

neutron/agent/ovn/extensions/extension_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self):
5050

5151
def initialize(self, *args):
5252
"""Initialize agent extension."""
53-
self.agent_api = None
53+
pass
5454

5555
def consume_api(self, agent_api):
5656
"""Configure the Agent API.

0 commit comments

Comments
 (0)