mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +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
|
import LANforge.LFUtils
|
||||||
from LANforge.LFUtils import *
|
from LANforge.LFUtils import *
|
||||||
|
import realm
|
||||||
|
from realm import Realm
|
||||||
|
|
||||||
class LFCliBase:
|
class LFCliBase:
|
||||||
# do not use `super(LFCLiBase,self).__init__(self, host, port, _debugOn)
|
# do not use `super(LFCLiBase,self).__init__(self, host, port, _debugOn)
|
||||||
@@ -21,6 +22,7 @@ class LFCliBase:
|
|||||||
self.haltOnError = _halt_on_error
|
self.haltOnError = _halt_on_error
|
||||||
self.mgr_url = "http://%s:%s" % (self.lfjson_host, self.lfjson_port)
|
self.mgr_url = "http://%s:%s" % (self.lfjson_host, self.lfjson_port)
|
||||||
self.test_results = []
|
self.test_results = []
|
||||||
|
self.realm = Realm(_lfjson_host, _lfjson_port, debug=_debug)
|
||||||
|
|
||||||
def clear_test_results(self):
|
def clear_test_results(self):
|
||||||
self.test_results.clear()
|
self.test_results.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user