mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
Fixed typo with cli-json
This commit is contained in:
@@ -88,7 +88,7 @@ class GenTest(LFCliBase):
|
|||||||
self.cx_profile.stop_cx()
|
self.cx_profile.stop_cx()
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ class IPV4L4(LFCliBase):
|
|||||||
self.cx_profile.stop_cx()
|
self.cx_profile.stop_cx()
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
def cleanup(self, sta_list):
|
def cleanup(self, sta_list):
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ class IPV4L4(LFCliBase):
|
|||||||
self.cx_profile.stop_cx()
|
self.cx_profile.stop_cx()
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
def cleanup(self, sta_list):
|
def cleanup(self, sta_list):
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ class IPV4VariableTime(LFCliBase):
|
|||||||
self.cx_profile.stop_cx()
|
self.cx_profile.stop_cx()
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
def cleanup(self, sta_list):
|
def cleanup(self, sta_list):
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class IPv6Test(LFCliBase):
|
|||||||
# Bring stations down
|
# Bring stations down
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
# print(sta_name)
|
# print(sta_name)
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ class IPV6VariableTime(LFCliBase):
|
|||||||
self.cx_profile.stop_cx()
|
self.cx_profile.stop_cx()
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
def cleanup(self, sta_list):
|
def cleanup(self, sta_list):
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class IPv4Test(LFCliBase):
|
|||||||
# Bring stations down
|
# Bring stations down
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
# print(sta_name)
|
# print(sta_name)
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class IPv4Test(LFCliBase):
|
|||||||
# Bring stations down
|
# Bring stations down
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
# print(sta_name)
|
# print(sta_name)
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class IPv4Test(LFCliBase):
|
|||||||
# Bring stations down
|
# Bring stations down
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
# print(sta_name)
|
# print(sta_name)
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class IPv4Test(LFCliBase):
|
|||||||
# Bring stations down
|
# Bring stations down
|
||||||
for sta_name in self.sta_list:
|
for sta_name in self.sta_list:
|
||||||
data = LFUtils.portDownRequest(1, sta_name)
|
data = LFUtils.portDownRequest(1, sta_name)
|
||||||
url = "json-cli/set_port"
|
url = "cli-json/set_port"
|
||||||
# print(sta_name)
|
# print(sta_name)
|
||||||
self.json_post(url, data)
|
self.json_post(url, data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user