From 184f787f3a8a57695fa3b9b8f17c65b9aeee1904 Mon Sep 17 00:00:00 2001 From: “Manuel Buil” Date: Thu, 16 Mar 2017 11:52:56 +0100 Subject: Bug fix: disable non-working topologies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JIRA: SFC-87 Due to ODL bugs, some topologies do not work Change-Id: Ia2fcfe5948c308ce2348b52c01aa3ce58ac318d6 Signed-off-by: “Manuel Buil” --- sfc/lib/topology_shuffler.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'sfc/lib') 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 @@ -15,10 +15,17 @@ TOPOLOGIES = [ This is the baseline test. ''' }, + { + '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,17 +39,10 @@ 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': ''' @@ -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) -- cgit 1.2.3-korg