mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	Changed cleanup and pre-cleanup methods
This commit is contained in:
		@@ -136,18 +136,16 @@ class IPVariableTime(Realm):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def pre_cleanup(self):
 | 
					    def pre_cleanup(self):
 | 
				
			||||||
        self.cx_profile.cleanup_prefix()
 | 
					        self.cx_profile.cleanup_prefix()
 | 
				
			||||||
        for sta in self.sta_list:
 | 
					        if self.create_sta:
 | 
				
			||||||
            self.local_realm.rm_port(sta, check_exists=True, debug_=self.debug)
 | 
					            for sta in self.sta_list:
 | 
				
			||||||
        LFUtils.wait_until_ports_disappear(base_url=self.lfclient_url,
 | 
					                self.rm_port(sta, check_exists=True)
 | 
				
			||||||
                                           port_list=self.sta_list,
 | 
					 | 
				
			||||||
                                           debug=self.debug)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def cleanup(self):
 | 
					    def cleanup(self):
 | 
				
			||||||
        self.cx_profile.cleanup()
 | 
					        self.cx_profile.cleanup()
 | 
				
			||||||
        self.station_profile.cleanup()
 | 
					        if self.create_sta:
 | 
				
			||||||
        LFUtils.wait_until_ports_disappear(base_url=self.lfclient_url,
 | 
					            self.station_profile.cleanup()
 | 
				
			||||||
                                           port_list=self.station_profile.station_names,
 | 
					            LFUtils.wait_until_ports_disappear(base_url=self.lfclient_url, port_list=self.station_profile.station_names,
 | 
				
			||||||
                                           debug=self.debug)
 | 
					                                               debug=self.debug)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def build(self):
 | 
					    def build(self):
 | 
				
			||||||
        if self.create_sta:
 | 
					        if self.create_sta:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user