From 87b24818b47c3f6cb144e01eec19be91623613b6 Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Sun, 4 Apr 2021 12:17:22 -0700 Subject: [PATCH] Reduce time taken by show commands on multi-asic platforms (#1544) Optimize/Reduce the time taken by show interface * and show ip bgp * commands on Multi-asic platforms. --- utilities_common/multi_asic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilities_common/multi_asic.py b/utilities_common/multi_asic.py index 5d7d9f351770..d98b26b39948 100644 --- a/utilities_common/multi_asic.py +++ b/utilities_common/multi_asic.py @@ -30,11 +30,11 @@ def is_object_internal(self, object_type, cli_object): For single asic, this function is not applicable ''' if object_type == constants.PORT_OBJ: - return multi_asic.is_port_internal(cli_object) + return multi_asic.is_port_internal(cli_object, self.current_namespace) elif object_type == constants.PORT_CHANNEL_OBJ: - return multi_asic.is_port_channel_internal(cli_object) + return multi_asic.is_port_channel_internal(cli_object, self.current_namespace) elif object_type == constants.BGP_NEIGH_OBJ: - return multi_asic.is_bgp_session_internal(cli_object) + return multi_asic.is_bgp_session_internal(cli_object, self.current_namespace) def skip_display(self, object_type, cli_object): '''