mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +00:00
- added raw data as input function
- added show text blob Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
@@ -47,18 +47,29 @@ class chamberview(LFCliBase):
|
|||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
|
|
||||||
def show_changes(self,scenario_name):
|
def pass_raw_lines_to_cv(self,
|
||||||
req_url = "/cli-json/show_text_blob"
|
scenario_name="Automation",
|
||||||
|
Rawline=""):
|
||||||
|
req_url = "/cli-json/add_text_blob"
|
||||||
data = {
|
data = {
|
||||||
"type": "ALL",
|
"type": "Network-Connectivity",
|
||||||
"name": "ALL",
|
"name": scenario_name,
|
||||||
"brief": "brief"
|
"text": Rawline
|
||||||
}
|
}
|
||||||
|
print("data: ",data)
|
||||||
rsp = self.json_post(req_url, data)
|
rsp = self.json_post(req_url, data)
|
||||||
print(rsp)
|
time.sleep(2)
|
||||||
print("scenario is pushed")
|
|
||||||
|
def show_text_blob(self, config_name, blob_test_name, brief):
|
||||||
|
req_url = "/cli-json/show_text_blob"
|
||||||
|
data = {"type": "Plugin-Settings"}
|
||||||
|
if config_name and blob_test_name:
|
||||||
|
data["name"] = "%s%s" % (blob_test_name, config_name) # config name
|
||||||
|
else:
|
||||||
|
data["name"] = "ALL"
|
||||||
|
if brief:
|
||||||
|
data["brief"] = "brief"
|
||||||
|
return self.json_post(req_url, data)
|
||||||
|
|
||||||
#This is for chamber view buttons
|
#This is for chamber view buttons
|
||||||
def apply_cv_scenario(self, cv_scenario):
|
def apply_cv_scenario(self, cv_scenario):
|
||||||
|
|||||||
Reference in New Issue
Block a user