Skip to content
Snippets Groups Projects
Commit 6e9070f3 authored by NizarBouchedakh's avatar NizarBouchedakh
Browse files

modified backend

parent 5530f0d1
Branches
No related tags found
No related merge requests found
...@@ -292,7 +292,7 @@ class Backend(): ...@@ -292,7 +292,7 @@ class Backend():
def start(self): def start(self):
# this method starts the software representation # this method starts the software representation
global started global started
...@@ -305,21 +305,11 @@ class Backend(): ...@@ -305,21 +305,11 @@ class Backend():
for i in range(0, 300): for i in range(0, 300):
if self.network.state == self.network.STATE_READY: if self.network.state == self.network.STATE_READY:
break 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: else:
sys.stdout.write(".")
sys.stdout.flush()
time.sleep(1.0) time.sleep(1.0)
if not self.network.is_ready: if not self.network.is_ready:
print "."
print "Network is not ready but continue anyway" print "Network is not ready but continue anyway"
print "------------------------------------------------------------" 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 "Nodes in network : %s" % self.network.nodes_count
print "------------------------------------------------------------" print "------------------------------------------------------------"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment