Skip to content

Commit

Permalink
Load the database global_db. (#1752)
Browse files Browse the repository at this point in the history
What I did
Recent change was done to remove call to load database global_db which expects the clients to load global_db.
[#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 <sumeenak@microsoft.com>
  • Loading branch information
SuvarnaMeenakshi committed Aug 17, 2021
1 parent 0a145e8 commit 5002745
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utilities_common/multi_asic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 5002745

Please sign in to comment.