From 145c9511dac15c6994e8a95e5e421c83d7e3437b Mon Sep 17 00:00:00 2001 From: Peter Gubka Date: Fri, 19 Jun 2015 11:11:44 +0200 Subject: [PATCH] fixing the lib to be compatible with mininet mininet start indexing switches with 1 but the lib did it with 0, now the lib will start with 1 too Change-Id: Ibbff0a43fe954ec49c439b8acf8cbdbf045d0081 Signed-off-by: Peter Gubka --- test/csit/libraries/ScaleClient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/csit/libraries/ScaleClient.py b/test/csit/libraries/ScaleClient.py index 99f5bf591f..34892630a1 100644 --- a/test/csit/libraries/ScaleClient.py +++ b/test/csit/libraries/ScaleClient.py @@ -117,7 +117,8 @@ def generate_new_flow_details(flows=10, switches=1, swspread='gauss', tables=250 according to the spread rules between swithces and tables. It also returns a dictionary with statsistics.""" swflows = [_randomize(swspread, switches) for f in range(int(flows))] - fltables = [(s, _randomize(tabspread, tables), idx) for idx, s in enumerate(swflows)] + # we have to increse the switch index because mininet start indexing switches from 1 (not 0) + fltables = [(s+1, _randomize(tabspread, tables), idx) for idx, s in enumerate(swflows)] notes = _get_notes(fltables) return fltables, notes -- 2.36.6