mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
realm.py: add debugging parameters to admin_up()
This is a logical place to find license exceptions when using ath10k without valid license Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
@@ -262,10 +262,16 @@ class Realm(LFCliBase):
|
|||||||
eid = self.name_to_eid(port_eid)
|
eid = self.name_to_eid(port_eid)
|
||||||
resource = eid[1]
|
resource = eid[1]
|
||||||
port = eid[2]
|
port = eid[2]
|
||||||
request = LFUtils.port_up_request(resource_id=resource, port_name=port)
|
request = LFUtils.port_up_request(resource_id=resource, port_name=port, debug_on=self.debug)
|
||||||
# logger.info("192.admin_up request: resource: %s port_name %s"%(resource, port))
|
# logger.info("192.admin_up request: resource: %s port_name %s"%(resource, port))
|
||||||
# time.sleep(2)
|
dbg_param = ""
|
||||||
self.json_post("/cli-json/set_port", request)
|
if logger.getEffectiveLevel() == logging.DEBUG:
|
||||||
|
dbg_param = "?__debug=1"
|
||||||
|
collected_responses = list()
|
||||||
|
self.json_post("/cli-json/set_port%s" % dbg_param, request, debug_=self.debug,
|
||||||
|
response_json_list_=collected_responses)
|
||||||
|
# TODO: when doing admin-up ath10k radios, want a LF complaint about a license exception
|
||||||
|
# if len(collected_responses) > 0: ...
|
||||||
|
|
||||||
def admin_down(self, port_eid):
|
def admin_down(self, port_eid):
|
||||||
eid = self.name_to_eid(port_eid)
|
eid = self.name_to_eid(port_eid)
|
||||||
|
|||||||
Reference in New Issue
Block a user