Fix pep8 violations in inventory_crawler
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 16 Mar 2015 01:51:04 +0000 (21:51 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 16 Mar 2015 01:51:04 +0000 (21:51 -0400)
Change-Id: Ifcbba1dd086af7b3e174bdf5ba659ddc0e11d7c2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
test/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py

index 58c117617a6b744c02231175383f45356492a2e9..6d1dd8b005a957e9381bea1b52774e38f5b672ec 100755 (executable)
@@ -27,7 +27,6 @@ class InventoryCrawler(object):
         self.auth = auth
         self.debug = debug
 
-
     def crawl_flows(self, flows):
         """
         Collects and prints summary information for all flows in a table
@@ -48,7 +47,6 @@ class InventoryCrawler(object):
                     print "             Flow %s:" % f['id']
                     print s
 
-
     def crawl_table(self, table):
         """
         Collects and prints summary statistics information about a single table. Depending on the print level
@@ -78,7 +76,6 @@ class InventoryCrawler(object):
         except KeyError:
             pass
 
-
     def crawl_node(self, node):
         """
         Collects and prints summary information about a single node
@@ -106,7 +103,6 @@ class InventoryCrawler(object):
             if self.plevel > 1:
                 print '    Data for tables not available.'
 
-
     def crawl_inventory(self):
         """
         Collects and prints summary information about all openflow nodes in a data store (either operational or config)
@@ -145,19 +141,16 @@ class InventoryCrawler(object):
 
         s.close()
 
-
     def set_plevel(self, plevel):
         self.plevel = plevel
 
 
-
-
 if __name__ == "__main__":
     parser = argparse.ArgumentParser(description='Restconf test program')
     parser.add_argument('--host', default='127.0.0.1', help='host where '
-                                                               'the controller is running; default 127.0.0.1')
+                        'the controller is running; default 127.0.0.1')
     parser.add_argument('--port', default='8181', help='port on '
-                                                          'which odl\'s RESTCONF is listening; default 8181')
+                        'which odl\'s RESTCONF is listening; default 8181')
     parser.add_argument('--plevel', type=int, default=0,
                         help='Print Level: 0 - Summary (stats only); 1 - Node names; 2 - Node details;'
                              '3 - Flow details')
@@ -188,5 +181,3 @@ if __name__ == "__main__":
         if n_missing > 0:
             print '\nMissing table stats (%d nodes):' % n_missing
             print "%s\n" % ", ".join([x for x in ic.table_stats_fails])
-
-