From 5002745beb89a99a1cdf420f34a495c2c0cb31bd Mon Sep 17 00:00:00 2001 From: SuvarnaMeenakshi <50386592+SuvarnaMeenakshi@users.noreply.github.com> Date: Tue, 17 Aug 2021 11:02:23 -0700 Subject: [PATCH] Load the database global_db. (#1752) What I did Recent change was done to remove call to load database global_db which expects the clients to load global_db. [https://github.com/Azure/sonic-buildimage/pull/8173] The load global_db was missing in multi_asic.py which was causing "show interfaces cli" to fail. While testing on multi-asic VS image: How I did it load global_db config in multi_asic.py. How to verify it Load multi-asic VS image with the fix. Signed-off-by: Suvarna Meenakshi --- utilities_common/multi_asic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utilities_common/multi_asic.py b/utilities_common/multi_asic.py index 920b5eebe53f..2586d216bf65 100644 --- a/utilities_common/multi_asic.py +++ b/utilities_common/multi_asic.py @@ -7,6 +7,7 @@ from natsort import natsorted from sonic_py_common import multi_asic from utilities_common import constants +from utilities_common.general import load_db_config class MultiAsic(object): @@ -15,6 +16,8 @@ def __init__( self, display_option=constants.DISPLAY_ALL, namespace_option=None, db=None ): + # Load database config files + load_db_config() self.namespace_option = namespace_option self.display_option = display_option self.current_namespace = None