summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
49e64f9)
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 <pgubka@cisco.com>
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))]
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
notes = _get_notes(fltables)
return fltables, notes