mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-12-24 22:37:03 +00:00
Changed usage of LFCliBase.json_post to local_realm.json_post in cx creation
This commit is contained in:
@@ -276,8 +276,8 @@ class L3CXProfile(LFCliBase):
|
||||
}
|
||||
|
||||
url = "/cli-json/add_endp"
|
||||
LFCliBase.json_post(self, url, endp_side_a)
|
||||
LFCliBase.json_post(self, url, endp_side_b)
|
||||
self.local_realm.json_post(url, endp_side_a)
|
||||
self.local_realm.json_post(url, endp_side_b)
|
||||
time.sleep(sleep_time)
|
||||
|
||||
data = {
|
||||
@@ -335,8 +335,8 @@ class L3CXProfile(LFCliBase):
|
||||
}
|
||||
|
||||
url = "/cli-json/add_endp"
|
||||
LFCliBase.json_post(self, url, endp_side_a)
|
||||
LFCliBase.json_post(self, url, endp_side_b)
|
||||
self.local_realm.json_post(url, endp_side_a)
|
||||
self.local_realm.json_post(url, endp_side_b)
|
||||
time.sleep(sleep_time)
|
||||
|
||||
data = {
|
||||
@@ -352,7 +352,7 @@ class L3CXProfile(LFCliBase):
|
||||
print("post_data", post_data)
|
||||
for data in post_data:
|
||||
url = "/cli-json/add_cx"
|
||||
LFCliBase.json_post(self, url, data)
|
||||
self.local_realm.json_post(url, data)
|
||||
time.sleep(sleep_time)
|
||||
|
||||
def to_string(self):
|
||||
@@ -384,7 +384,7 @@ class L4CXProfile(LFCliBase):
|
||||
"url": self.url
|
||||
}
|
||||
url = "cli-json/add_l4_endp"
|
||||
LFCliBase.json_post(self, url, data)
|
||||
self.local_realm.json_post(url, data)
|
||||
time.sleep(sleep_time)
|
||||
|
||||
data = {
|
||||
@@ -397,7 +397,7 @@ class L4CXProfile(LFCliBase):
|
||||
|
||||
for data in post_data:
|
||||
url = "/cli-json/add_cx"
|
||||
LFCliBase.json_post(self, url, data)
|
||||
self.local_realm.json_post(url, data)
|
||||
time.sleep(sleep_time)
|
||||
|
||||
|
||||
@@ -439,7 +439,7 @@ class GenCXProfile(LFCliBase):
|
||||
|
||||
for data in post_data:
|
||||
url = "/cli-json/add_cx"
|
||||
LFCliBase.json_post(self, url, data)
|
||||
self.local_realm.json_post(url, data)
|
||||
time.sleep(sleep_time)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user