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

modified backend

parent 5530f0d1
Branches
Tags
No related merge requests found
......@@ -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 "------------------------------------------------------------"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment