ndn_routing_helper: Show status of route calculation
Change-Id: Ib38cedfed57bc8fe1397526c3d05bac6c3d80c93
diff --git a/minindn/helpers/ndn_routing_helper.py b/minindn/helpers/ndn_routing_helper.py
index 94eec0d..1ae5930 100644
--- a/minindn/helpers/ndn_routing_helper.py
+++ b/minindn/helpers/ndn_routing_helper.py
@@ -33,6 +33,7 @@
import json
import operator
from collections import defaultdict
+from tqdm import tqdm
from mininet.log import info, debug, error, warn
from minindn.helpers.nfdc import Nfdc as nfdc
@@ -294,7 +295,7 @@
def globalRoutingHelperHandler(self):
info('Creating faces and adding routes to FIB\n')
- for host in self.net.hosts:
+ for host in tqdm(self.net.hosts):
neighborIPs = self.getNeighbor(host)
self.createFaces(host, neighborIPs)
self.routeAdd(host, neighborIPs)
diff --git a/requirements.txt b/requirements.txt
index 12598fb..5c0596f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,3 @@
python-igraph
-setuptools
\ No newline at end of file
+setuptools
+tqdm
\ No newline at end of file