From b77c79e5e8ee8127ccfc875e6e260f554694104b Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 29 May 2019 12:37:46 +0000 Subject: [PATCH] Stop OVS agent before starting it again In TestOVSAgent, there are two tests where the OVS agent is configured and started twice per test. Before the second call, the agent should be stopped first. Change-Id: I30c2bd4ce3715cde60bc0cd3736bd9c75edc1df3 Closes-Bug: #1830895 --- neutron/tests/functional/agent/test_l2_ovs_agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/tests/functional/agent/test_l2_ovs_agent.py b/neutron/tests/functional/agent/test_l2_ovs_agent.py index 02e3224950c..7108c37ffbe 100644 --- a/neutron/tests/functional/agent/test_l2_ovs_agent.py +++ b/neutron/tests/functional/agent/test_l2_ovs_agent.py @@ -243,6 +243,7 @@ class TestOVSAgent(base.OVSAgentTestFramework): patch_int_ofport_before = self.agent.patch_int_ofport patch_tun_ofport_before = self.agent.patch_tun_ofport + self.stop_agent(self.agent, self.agent_thread) self.setup_agent_and_ports(port_dicts=[], create_tunnels=True) self.assertEqual(patch_int_ofport_before, self.agent.patch_int_ofport) self.assertEqual(patch_tun_ofport_before, self.agent.patch_tun_ofport) @@ -254,6 +255,7 @@ class TestOVSAgent(base.OVSAgentTestFramework): patch_int_ofport_before = self.agent.int_ofports['physnet'] patch_phys_ofport_before = self.agent.phys_ofports['physnet'] + self.stop_agent(self.agent, self.agent_thread) self.setup_agent_and_ports(port_dicts=[]) self.assertEqual(patch_int_ofport_before, self.agent.int_ofports['physnet'])