From 6e9070f30dfd8cc677a19afe6f4102d9a2092af2 Mon Sep 17 00:00:00 2001 From: NizarBouchedakh <mohamednizar.bouchedakh@master.hes-so.ch> Date: Tue, 16 Feb 2016 17:30:35 +0100 Subject: [PATCH] modified backend --- backend.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/backend.py b/backend.py index 1d61fb3..3fa4a91 100644 --- a/backend.py +++ b/backend.py @@ -292,7 +292,7 @@ class Backend(): def start(self): - # this method starts the software representation + # this method starts the software representation global started @@ -305,21 +305,11 @@ class Backend(): for i in range(0, 300): if self.network.state == self.network.STATE_READY: break - elif ((i==60) | (i==120) | (i==180) | (i==240)): - print - sys.stdout.write(". =======> "+str(int(i/60))+" minutes spent to wait, lets wait again for "+str(5-int(i/60))+" minutes maximum for the network to be ready") - sys.stdout.flush() - time.sleep(1.0) else: - sys.stdout.write(".") - sys.stdout.flush() time.sleep(1.0) if not self.network.is_ready: - print "." print "Network is not ready but continue anyway" print "------------------------------------------------------------" - print "Controller capabilities : %s" % self.network.controller.capabilities - print "Controller node capabilities : %s" % self.network.controller.node.capabilities print "Nodes in network : %s" % self.network.nodes_count print "------------------------------------------------------------" -- GitLab