aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/lib/topology_shuffler.py
diff options
context:
space:
mode:
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>2017-02-17 14:58:01 +0200
committerGeorge Paraskevopoulos <geopar@intracom-telecom.com>2017-02-17 14:58:01 +0200
commitb1e66426c1efe2f7412a417eb3b728d5a8026e65 (patch)
tree2ebbcef6e18dda7fa255bd365ec04d53fea4d08e /sfc/lib/topology_shuffler.py
parent48600f556970a7a4f7ea9194fccc0ff1dc077ca8 (diff)
Fix topology bugs
- Fix getting the length of available topologies - Format a correct vnf parameter file Change-Id: I6c3534a67b44be6fcfb09d99856e5c27bcbd2ed1 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
Diffstat (limited to 'sfc/lib/topology_shuffler.py')
-rw-r--r--sfc/lib/topology_shuffler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfc/lib/topology_shuffler.py b/sfc/lib/topology_shuffler.py
index ccabe427..bfa86420 100644
--- a/sfc/lib/topology_shuffler.py
+++ b/sfc/lib/topology_shuffler.py
@@ -60,7 +60,7 @@ def _get_seed():
NOTE: There's sure a smarter way to do this
Probably with the Jenkins job id
'''
- cutoff = len(TOPOLOGIES - 1)
+ cutoff = len(TOPOLOGIES) - 1
seed = datetime.datetime.today().weekday()
if seed > cutoff:
seed = random.randrange(cutoff)