python: longevity gains pre-cleanup logic.

No more need for manual removal.

Put rm_cx, endp, and rm cxe by prefix in realm
class.
This commit is contained in:
Ben Greear
2020-08-06 10:42:17 -07:00
parent e76ad3341c
commit 7252d686bd
3 changed files with 63 additions and 30 deletions

View File

@@ -135,6 +135,7 @@ class IPV4VariableTime(LFCliBase):
self.station_profile.admin_down()
def pre_cleanup(self):
self.cx_profile.cleanup_prefix()
for sta in self.sta_list:
self.local_realm.rm_port(sta, check_exists=True)