From 438eda895c7e24113f116e503f36930c176ebe4d Mon Sep 17 00:00:00 2001 From: KAWAI Hiroaki Date: Wed, 25 Apr 2012 21:25:32 +0900 Subject: [PATCH] Make ovs Interface option set properly. Multiple ovs-vsctl set Interface option call overrides the previous settings and result in unexpected partial condition. Change-Id: I62b3bd6ea9adac7c1f4995fc18af9838a7e25b43 --- quantum/plugins/openvswitch/agent/ovs_quantum_agent.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py b/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py index 9774c2e85..837f1c5e3 100755 --- a/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py +++ b/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py @@ -127,17 +127,17 @@ class OVSBridge: def add_tunnel_port(self, port_name, remote_ip): self.run_vsctl(["add-port", self.br_name, port_name]) self.set_db_attribute("Interface", port_name, "type", "gre") - self.set_db_attribute("Interface", port_name, "options", "remote_ip=" + + self.set_db_attribute("Interface", port_name, "options:remote_ip", remote_ip) - self.set_db_attribute("Interface", port_name, "options", "in_key=flow") - self.set_db_attribute("Interface", port_name, "options", - "out_key=flow") + self.set_db_attribute("Interface", port_name, "options:in_key", "flow") + self.set_db_attribute("Interface", port_name, "options:out_key", + "flow") return self.get_port_ofport(port_name) def add_patch_port(self, local_name, remote_name): self.run_vsctl(["add-port", self.br_name, local_name]) self.set_db_attribute("Interface", local_name, "type", "patch") - self.set_db_attribute("Interface", local_name, "options", "peer=" + + self.set_db_attribute("Interface", local_name, "options:peer", remote_name) return self.get_port_ofport(local_name) -- 2.45.2