Skip to content

Commit 5002745

Browse files
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. [sonic-net/sonic-buildimage#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 <[email protected]>
1 parent 0a145e8 commit 5002745

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utilities_common/multi_asic.py

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from natsort import natsorted
88
from sonic_py_common import multi_asic
99
from utilities_common import constants
10+
from utilities_common.general import load_db_config
1011

1112

1213
class MultiAsic(object):
@@ -15,6 +16,8 @@ def __init__(
1516
self, display_option=constants.DISPLAY_ALL, namespace_option=None,
1617
db=None
1718
):
19+
# Load database config files
20+
load_db_config()
1821
self.namespace_option = namespace_option
1922
self.display_option = display_option
2023
self.current_namespace = None

0 commit comments

Comments
 (0)