From f5871607af30a04e889809d35e76fde4eb998d34 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Fri, 9 Apr 2021 11:55:57 -0700 Subject: [PATCH] l3-profile: Fix clearing lists. Forgot a self. prefix for variable, so it didn't actually do anything. Signed-off-by: Ben Greear --- py-json/l3_cxprofile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-json/l3_cxprofile.py b/py-json/l3_cxprofile.py index 36612e3e..2f752c00 100644 --- a/py-json/l3_cxprofile.py +++ b/py-json/l3_cxprofile.py @@ -323,8 +323,8 @@ class L3CXProfile(LFCliBase): # Clean out our local lists, this by itself does NOT remove anything from LANforge manager. # but, if you are trying to modify existing connections, then clearing these arrays and # re-calling 'create' will do the trick. - created_cx = {} - created_endp = {} + self.created_cx.clear() + self.created_endp.clear() def create(self, endp_type, side_a, side_b, sleep_time=0.03, suppress_related_commands=None, debug_=False, tos=None):