From f8af6d597986b1473f53710a8f99b279d33c6abf Mon Sep 17 00:00:00 2001 From: Logan Lipke Date: Thu, 30 Jul 2020 14:21:18 -0700 Subject: [PATCH] Added check for monitoring only created endpoints --- py-scripts/test_ipv6_variable_time.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/py-scripts/test_ipv6_variable_time.py b/py-scripts/test_ipv6_variable_time.py index f7f29b79..9e8540a7 100755 --- a/py-scripts/test_ipv6_variable_time.py +++ b/py-scripts/test_ipv6_variable_time.py @@ -59,14 +59,15 @@ class IPV6VariableTime(LFCliBase): def __get_rx_values(self): - cx_list = self.json_get("endp?fields=name,rx+bytes", debug_=True) + cx_list = self.json_get("endp?fields=name,rx+bytes", debug_=self.debug) + # print(self.cx_profile.created_cx.values()) #print("==============\n", cx_list, "\n==============") cx_rx_map = {} for cx_name in cx_list['endpoint']: if cx_name != 'uri' and cx_name != 'handler': for item, value in cx_name.items(): for value_name, value_rx in value.items(): - if value_name == 'rx bytes': + if value_name == 'rx bytes' and item in self.cx_profile.created_cx.values(): cx_rx_map[item] = value_rx return cx_rx_map