Skip to content

Commit

Permalink
Reduce time taken by show commands on multi-asic platforms (sonic-net…
Browse files Browse the repository at this point in the history
…#1544)

Optimize/Reduce the time taken by show interface * and show ip bgp * commands on Multi-asic platforms.
  • Loading branch information
abdosi authored Apr 4, 2021
1 parent 12fc01e commit 87b2481
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilities_common/multi_asic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
'''
Expand Down

0 comments on commit 87b2481

Please sign in to comment.