From 4d07f0f7e2f03486c8d78a24282c5e4e7fc59253 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 21 Mar 2017 16:08:13 +0100 Subject: 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 --- sfc/lib/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit 1.2.3-korg