layer3 profile fixes

Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
shivamcandela
2021-05-02 12:33:31 +05:30
parent 5ea006f015
commit 43477b0e60
2 changed files with 5 additions and 4 deletions

View File

@@ -252,6 +252,7 @@ class L3CXProfile(LFCliBase):
self.fail("FAIL: Not all stations increased traffic") self.fail("FAIL: Not all stations increased traffic")
self.exit_fail() self.exit_fail()
try: try:
self.refresh_cx()
cx_data = self.json_get("/cx/all") cx_data = self.json_get("/cx/all")
cx_data.pop("handler") cx_data.pop("handler")
cx_data.pop("uri") cx_data.pop("uri")

View File

@@ -128,8 +128,9 @@ class IPV4VariableTime(Realm):
def pre_cleanup(self): def pre_cleanup(self):
self.cx_profile.cleanup_prefix() self.cx_profile.cleanup_prefix()
for sta in self.sta_list: if self.create_sta:
self.rm_port(sta, check_exists=True) for sta in self.sta_list:
self.rm_port(sta, check_exists=True)
def cleanup(self): def cleanup(self):
self.cx_profile.cleanup() self.cx_profile.cleanup()
@@ -385,8 +386,7 @@ python3 ./test_ipv4_variable_time.py
traffic_type=args.traffic_type, traffic_type=args.traffic_type,
_debug_on=args.debug) _debug_on=args.debug)
if create_sta: ip_var_test.pre_cleanup()
ip_var_test.pre_cleanup()
ip_var_test.build() ip_var_test.build()
# exit() # exit()