mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	Cleanup white space in create_bridge.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		@@ -13,7 +13,6 @@ if sys.version_info[0] != 3:
 | 
				
			|||||||
    print("This script requires Python 3")
 | 
					    print("This script requires Python 3")
 | 
				
			||||||
    exit(1)
 | 
					    exit(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
					 | 
				
			||||||
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
 | 
					sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
lfcli_base = importlib.import_module("py-json.LANforge.lfcli_base")
 | 
					lfcli_base = importlib.import_module("py-json.LANforge.lfcli_base")
 | 
				
			||||||
@@ -54,7 +53,6 @@ class CreateBridge(Realm):
 | 
				
			|||||||
            pprint.pprint(self.sta_list)
 | 
					            pprint.pprint(self.sta_list)
 | 
				
			||||||
            print("---- ~bridge List ----- ----- ----- ----- ----- ----- \n")
 | 
					            print("---- ~bridge List ----- ----- ----- ----- ----- ----- \n")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    def build(self):
 | 
					    def build(self):
 | 
				
			||||||
        # Build bridges
 | 
					        # Build bridges
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -76,8 +74,6 @@ class CreateBridge(Realm):
 | 
				
			|||||||
        self.json_post("cli-json/set_port", bridge_set_port)
 | 
					        self.json_post("cli-json/set_port", bridge_set_port)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
def main():
 | 
					def main():
 | 
				
			||||||
    parser = LFCliBase.create_basic_argparse(
 | 
					    parser = LFCliBase.create_basic_argparse(
 | 
				
			||||||
        prog='create_bridge.py',
 | 
					        prog='create_bridge.py',
 | 
				
			||||||
@@ -110,7 +106,7 @@ Command example:
 | 
				
			|||||||
    # if args.debug:
 | 
					    # if args.debug:
 | 
				
			||||||
    #    pprint.pprint(args)
 | 
					    #    pprint.pprint(args)
 | 
				
			||||||
    #    time.sleep(5)
 | 
					    #    time.sleep(5)
 | 
				
			||||||
    if (args.radio is None):
 | 
					    if args.radio is None:
 | 
				
			||||||
        raise ValueError("--radio required")
 | 
					        raise ValueError("--radio required")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    num_bridge = 2
 | 
					    num_bridge = 2
 | 
				
			||||||
@@ -139,5 +135,6 @@ Command example:
 | 
				
			|||||||
    create_bridge.build()
 | 
					    create_bridge.build()
 | 
				
			||||||
    print('Created %s bridges' % num_bridge)
 | 
					    print('Created %s bridges' % num_bridge)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == "__main__":
 | 
					if __name__ == "__main__":
 | 
				
			||||||
    main()
 | 
					    main()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user