Set HA failover bridges veth pair devices UP

The test bridge veth pair devices is not up which cause the
VRRP advertisement packet can not pass to each HA port. Then
multiple master router is up. This patch just sets the veth
pair devices up.

Closes-Bug: #1819160
Change-Id: I0e0d0311d73bce83d3c7341e7a0167917818b1ff
(cherry picked from commit 8cc480bd01)
This commit is contained in:
LIU Yulong 2019-03-26 23:47:11 +08:00 committed by Slawek Kaplonski
parent c60f181657
commit a5ca42d242
1 changed files with 2 additions and 0 deletions

View File

@ -1316,6 +1316,8 @@ class TestDvrRouter(framework.L3AgentTestFramework):
br_int_2 = self._get_agent_ovs_integration_bridge(self.failover_agent)
veth1, veth2 = self.useFixture(net_helpers.VethFixture()).ports
veth1.link.set_up()
veth2.link.set_up()
br_int_1.add_port(veth1.name)
br_int_2.add_port(veth2.name)