summaryrefslogtreecommitdiff
path: root/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
diff options
context:
space:
mode:
authorLIU Yulong <i@liuyulong.me>2022-12-06 09:41:56 +0800
committerLIU Yulong <i@liuyulong.me>2023-04-06 09:32:27 +0800
commit5a17f2b24a51f62c406c1ad0ffa797480ef943f4 (patch)
tree18cd55a676ffbc1a1d665982b5f4b88d20f912bf /neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
parent208421910d2bb3c71b0947254d5eca1326c184d0 (diff)
downloadneutron-5a17f2b24a51f62c406c1ad0ffa797480ef943f4.tar.gz
Pass physical bridge informations to OVS agent extension API
The metadata agent extension needs the patch ports informations between br-int and br-meta to add direct flows. Partially-Implements: blueprint distributed-metadata-datapath Change-Id: I58f3813ed9a4c4006ebb62e613ef4dc07a17a23b
Diffstat (limited to 'neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py')
-rw-r--r--neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py b/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
index d6d45fe3f7..104052f72b 100644
--- a/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
+++ b/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
@@ -312,10 +312,14 @@ class OVSNeutronAgent(l2population_rpc.L2populationRpcCallBackTunnelMixin,
self.ancillary_brs = self.setup_ancillary_bridges(
ovs_conf.integration_bridge, ovs_conf.tunnel_bridge)
- agent_api = ovs_ext_api.OVSAgentExtensionAPI(self.int_br,
- self.tun_br,
- self.phys_brs,
- self.plugin_rpc)
+ agent_api = ovs_ext_api.OVSAgentExtensionAPI(
+ self.int_br,
+ self.tun_br,
+ self.phys_brs,
+ self.plugin_rpc,
+ phys_ofports=self.phys_ofports,
+ bridge_mappings=self.bridge_mappings)
+
self.ext_manager.initialize(
self.connection, ovs_const.EXTENSION_DRIVER_TYPE, agent_api)