summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2017-03-21 16:08:13 +0100
committerManuel Buil <mbuil@suse.com>2017-03-21 16:13:20 +0100
commit4d07f0f7e2f03486c8d78a24282c5e4e7fc59253 (patch)
tree0e3f97f174186fcc2e75022f3411dfcce3756288
parent1b9b0ad28243362b7953db12ebd072d9c6a99aff (diff)
Bug fix: Eth header build with wrong dest. mac
JIRA: SFC-89 The second test fetches the destination mac of the previous test because an entry with that IP is in the arp table. However, that table is outdated. We must flush the arp table before starting the new test. Change-Id: Ie00345bba13793dc68e8442421861a2555e5ba7d Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r--sfc/lib/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py
index f0f24338..5340d66c 100644
--- a/sfc/lib/utils.py
+++ b/sfc/lib/utils.py
@@ -452,10 +452,11 @@ def wait_for_classification_rules(ovs_logger, compute_clients,
def setup_compute_node(cidr, compute_nodes):
- logger.info("bringing up br-int iface")
+ logger.info("bringing up br-int iface and flushing arp tables")
grep_cidr_routes = ("ip route | grep -o {0} || true".format(cidr)).strip()
add_cidr = "ip route add {0} dev br-int".format(cidr)
for compute in compute_nodes:
+ compute.run_cmd("ip -s -s neigh flush all")
compute.run_cmd("ifconfig br-int up")
if not compute.run_cmd(grep_cidr_routes):
logger.info("adding route %s in %s" % (cidr, compute.ip))