test_l3_longevity initial commit

This commit is contained in:
Chuck SmileyRekiere
2020-07-16 13:39:15 -06:00
parent 2ec5e0502c
commit dd99d42dae
2 changed files with 298 additions and 1 deletions

View File

@@ -299,7 +299,11 @@ class Realm(LFCliBase):
}
self.json_post(req_url, data)
def remove_all_cxs(self):
def remove_all_cxs(self,remove_all_endpoints=False):
# remove cross connects
# remove endpoints
# nc show endpoints
# nc show cross connects
cx_list = list(self.cx_list())
not_cx = ['warnings', 'errors', 'handler', 'uri', 'items']
if cx_list is not None:
@@ -314,6 +318,19 @@ class Realm(LFCliBase):
}
self.json_post(req_url, data)
if remove_all_endpoints:
self.remove_all_endps()
req_url = "cli-json/nc_show_endpoints"
data = {
"endpoint":"all"
}
self.json_post(req_url, data)
req_url = "cli-json/show_cx"
data ={
"test_mgr":"all",
"cross_connect":"all"
}
def parse_link(self, link):
link = self.lfclient_url + link
info = ()