aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sfc/lib/topology_shuffler.py23
1 files changed, 13 insertions, 10 deletions
diff --git a/sfc/lib/topology_shuffler.py b/sfc/lib/topology_shuffler.py
index 79825fcf..75a56392 100644
--- a/sfc/lib/topology_shuffler.py
+++ b/sfc/lib/topology_shuffler.py
@@ -16,9 +16,16 @@ TOPOLOGIES = [
'''
},
{
+ 'id': 'CLIENT_SERVER_SAME_HOST_SPLIT_VNF',
+ 'description': '''
+ Client and server are on the same host.
+ The VNFs are split between hosts Round Robin.
+ '''
+ },
+ {
'id': 'CLIENT_VNF_SAME_HOST',
'description': '''
- Client instance and vnfs are are on the same
+ Client instance and vnfs are on the same
compute host. Server instance is on a different host
'''
},
@@ -32,18 +39,11 @@ TOPOLOGIES = [
{
'id': 'SERVER_VNF_SAME_HOST',
'description': '''
- Server instance and vnfs are are on the same
+ Server instance and vnfs are on the same
compute host. Client instance is on a different host
'''
},
{
- 'id': 'CLIENT_SERVER_SAME_HOST_SPLIT_VNF',
- 'description': '''
- Client and server are on the same host.
- The VNFs are split between hosts Round Robin.
- '''
- },
- {
'id': 'CLIENT_SERVER_DIFFERENT_HOST_SPLIT_VNF',
'description': '''
Client and server are on different hosts.
@@ -67,7 +67,10 @@ 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
+ # We only add the topologies which are working
+ topologies_working = 2
+ cutoff = topologies_working - 1
seed = datetime.datetime.today().weekday()
if seed > cutoff:
seed = random.randrange(cutoff)