mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	lfcli_base.py: class automatically gets a realm
This commit is contained in:
		| @@ -6,7 +6,8 @@ from pprint import pprint | ||||
|  | ||||
| import LANforge.LFUtils | ||||
| from LANforge.LFUtils import * | ||||
|  | ||||
| import realm | ||||
| from realm import Realm | ||||
|  | ||||
| class LFCliBase: | ||||
|     # do not use `super(LFCLiBase,self).__init__(self, host, port, _debugOn) | ||||
| @@ -21,6 +22,7 @@ class LFCliBase: | ||||
|         self.haltOnError = _halt_on_error | ||||
|         self.mgr_url = "http://%s:%s" % (self.lfjson_host, self.lfjson_port) | ||||
|         self.test_results = [] | ||||
|         self.realm = Realm(_lfjson_host, _lfjson_port, debug=_debug) | ||||
|  | ||||
|     def clear_test_results(self): | ||||
|         self.test_results.clear() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jed Reynolds
					Jed Reynolds