fixing pep8 problems for test verify tox job 58/48358/1
authorPeter Gubka <pgubka@cisco.com>
Tue, 15 Nov 2016 11:44:50 +0000 (12:44 +0100)
committerPeter Gubka <pgubka@cisco.com>
Tue, 15 Nov 2016 11:44:50 +0000 (12:44 +0100)
Change-Id: I09edf6c26cee77a6d35b1157ed2b5c7316dcd4b5
Signed-off-by: Peter Gubka <pgubka@cisco.com>
24 files changed:
csit/libraries/Common.py
csit/libraries/CrudLibrary.py
csit/libraries/MininetTopo/vlan_vtn_test.py
csit/libraries/Topology.py
csit/libraries/Topologynew.py
csit/libraries/XmlComparator.py
csit/libraries/ipaddr.py
csit/suites/groupbasedpolicy/common_scripts/dpdumpflows.py
csit/suites/groupbasedpolicy/common_scripts/infrastructure_launch.py
csit/suites/lacp/Lacp_Feature_OF13/LACP_custom1.py
csit/suites/vpnservice/custom.py
tools/clustering/cluster-deployer/deploy.py
tools/clustering/cluster-deployer/restart.py
tools/clustering/cluster-tools/cluster_check.py
tools/exabgp_files/exarpc.py
tools/odl-lispflowmapping-performance-tests/create_lisp_control_plane_pcap.py
tools/odl-lispflowmapping-performance-tests/mapping_blaster.py
tools/odl-mdsal-clustering-tests/clustering-functional-test/crud.py
tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_perf.py
tools/odl-mdsal-clustering-tests/clustering-performance-test/odl_tester.py
tools/odl-mdsal-clustering-tests/clustering-performance-test/onos_stats.py
tools/odl-mdsal-clustering-tests/clustering-performance-test/onos_tester.py
tools/odl-ovsdb-performance-tests/ovsdbconfigblaster.py
tools/wstools/wsreceiver.py

index 7cd9a0e..2304398 100644 (file)
@@ -79,5 +79,6 @@ def num_of_links_for_node(nodeid, leaflist, fanout):
         return 1
     return (fanout + 1)
 
+
 if __name__ == '__main__':
     print(num_of_nodes(3, 4))
index b930d84..e92bf56 100644 (file)
@@ -321,6 +321,7 @@ def main():
 
     call[sys.argv[2]](SettingsLibrary.hostname, SettingsLibrary.port, int(sys.argv[3]))
 
+
 #
 # main invoked
 if __name__ == "__main__":
index d0010f7..be3caa8 100644 (file)
@@ -60,4 +60,5 @@ class VlanTopo(Topo):
         self.addLink(s3, host5)
         self.addLink(s3, host6)
 
+
 topos = {'vlantopo': (lambda: VlanTopo())}
index dad09ce..4c2b066 100644 (file)
@@ -40,6 +40,7 @@ class Topology(object):
         else:
             return None
 
+
 if __name__ == '__main__':
     topology = Topology()
     print topology.get_nodes_from_topology(2)
index b3c6020..80c83f0 100644 (file)
@@ -99,6 +99,7 @@ class Topologynew(object):
             nodes += self._enumerate_nodes(currentdepth + 1, nodeid + nodes, i, fanout, depth, leafnodes)
         return nodes
 
+
 if __name__ == '__main__':
     topologynew = Topologynew()
     # print topologynew.get_nodes_from_tree_topo(2)
index 3b0b829..8ad386e 100644 (file)
@@ -176,6 +176,7 @@ class XMLtoDictParserTools():
                 diff[key] = (KEY_NOT_FOUND, key)
         return diff
 
+
 IGNORED_TAGS_FOR_OPERATIONAL_COMPARISON = ['id', 'flow-name', 'barrier', 'cookie_mask', 'installHw', 'flags',
                                            'strict', 'byte-count', 'duration', 'packet-count', 'in-port',
                                            'vlan-id-present', 'out_group', 'out_port', 'hard-timeout', 'idle-timeout',
index 36a23c7..dacd381 100644 (file)
@@ -371,6 +371,7 @@ def collapse_address_list(addresses):
     return _collapse_address_list_recursive(sorted(
         addrs + nets, key=_BaseNet._get_networks_key))
 
+
 # backwards compatibility
 CollapseAddrList = collapse_address_list
 
index f0d37a2..5a61ffd 100644 (file)
@@ -8,6 +8,7 @@ def call_dpctl():
     listcmd = cmd.split()
     return check_output(listcmd)
 
+
 if __name__ == "__main__":
     flows = call_dpctl().split("recirc_id")
     for flow in flows:
index 99c6c30..4a4bd86 100644 (file)
@@ -268,6 +268,7 @@ def launch(switches, hosts, odl_ip='127.0.0.1'):
                 print "Created container: %s with IP: %s. Connect using docker attach %s," \
                     "disconnect with 'ctrl-p-q'." % (host['name'], host['ip'], host['name'])
 
+
 if __name__ == "__main__":
     if len(sys.argv) < 2 or len(sys.argv) > 3:
         print "Please, specify IP of ODL and switch index in arguments."
index 6e35cb0..e2386d0 100644 (file)
@@ -59,4 +59,5 @@ class LacpTopo(Topo):
     CLI(net)
     net.stop()
 
+
 topos = {'lacp': (lambda: LacpTopo())}
index 2d07a47..6363a68 100755 (executable)
@@ -36,5 +36,6 @@ class Switch2(Topo):
             host = self.addHost('h%s' % (h + 3), mac="00:00:00:00:00:0" + str(h + 3), ip="10.0.0." + str(h + 3))
             self.addLink(host, switch)
 
+
 topos = {'Switch1': (lambda: Switch1()),
          'Switch2': (lambda: Switch2())}
index cd8962d..a9819e0 100755 (executable)
@@ -288,5 +288,6 @@ def main():
     for x in range(0, len(hosts)):
         deployers[x].deploy()
 
+
 # Run the script
 main()
index c56092a..48bfa90 100755 (executable)
@@ -34,4 +34,5 @@ def main():
             remote.exec_cmd("rm -rf " + args.rootdir + "/deploy/current/odl/snapshots")
         remote.start_controller(args.rootdir + "/deploy/current")
 
+
 main()
index 23525dc..b484809 100755 (executable)
@@ -114,6 +114,7 @@ def list_entity_owners(ipaddress, entity_owner_list):
                     print("IP Address", str(owner_role[0]))
                     print("\n")
 
+
 # Main Block
 if __name__ == '__main__':
     print('*****Cluster Status******')
index 1d2a36c..b6283f4 100644 (file)
@@ -357,5 +357,6 @@ def main(*argv):
         rpcserver.shutdown()
         trpc.join()
 
+
 if __name__ == '__main__':
     main()
index 5b3aa12..d2784da 100755 (executable)
@@ -113,6 +113,7 @@ def generate_map_register(eid, rloc, key_id):
                                     xtr_id_low=netaddr.IPAddress(eid))
     return packet
 
+
 parser = argparse.ArgumentParser(description='Create a Map-Request trace file')
 
 parser.add_argument('--dst-mac', default='00:00:00:00:00:00',
index 2fac524..63c1a8e 100755 (executable)
@@ -163,6 +163,7 @@ class MappingRPCBlaster(object):
             self.send_rpc(self.session, 'get-mapping', rpc_json)
         self.session.close()
 
+
 if __name__ == "__main__":
     parser = argparse.ArgumentParser(description='Add simple IPv4 \
         prefix-to-IPv4 locator LISP mappings to OpenDaylight')
index a10914b..48d279f 100644 (file)
@@ -38,6 +38,7 @@ class Timer(object):
         if self.verbose:
             print("elapsed time: %f ms" % self.msecs)
 
+
 # Initialize the totals over all threads
 total_requests = Counter(0)
 total_req_rate = Counter(0.0)
index 3202bd7..214e8ae 100644 (file)
@@ -392,5 +392,6 @@ def main(*argv):
             fd.write("AddRate,DeleteRate\n")
             fd.write("{0},{1}\n".format(addrate, delrate))
 
+
 if __name__ == "__main__":
     main(sys.argv[1:])
index 96613a2..86d860f 100644 (file)
@@ -296,5 +296,6 @@ def main(*argv):
     print "\n\nSome stats monitoring ...."
     print get_flow_simple_stats(controller=in_args.host)
 
+
 if __name__ == "__main__":
     main(sys.argv[1:])
index 3c06430..0e00655 100644 (file)
@@ -485,5 +485,6 @@ def main(*argv):
             fd.write("AddRate,DeleteRate\n")
             fd.write("{0},{1}\n".format(addrate, delrate))
 
+
 if __name__ == "__main__":
     main(sys.argv[1:])
index 4c4362f..bcadef3 100644 (file)
@@ -324,6 +324,7 @@ class OvsdbConfigBlaster (object):
                              json_body)
         return ret.status_code
 
+
 if __name__ == "__main__":
     parser = argparse.ArgumentParser(description='Add:delete bridge/port/term-points to OpenDaylight')
 
index 898cead..9f63ea7 100644 (file)
@@ -72,6 +72,7 @@ class WSReceiver(object):
         logger.info("Data received:\n%s", data)
         return data
 
+
 if __name__ == "__main__":
     args = parse_arguments()
     logger = logging.getLogger("logger")

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.