Skip to content

Commit

Permalink
Replace swsssdk.ConfigDBConnector and SonicDBConfig with swsscommon i…
Browse files Browse the repository at this point in the history
…mplementation (sonic-net#1620)

swsssdk will be deprecated. Use swsscommon instead.
  • Loading branch information
qiluo-msft authored May 29, 2021
1 parent 5f20365 commit cd69473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/ipintutil
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from natsort import natsorted
from tabulate import tabulate

from sonic_py_common import multi_asic
from swsssdk import ConfigDBConnector, SonicDBConfig
from swsscommon import swsscommon
from utilities_common import constants
from utilities_common import multi_asic as multi_asic_util

Expand Down Expand Up @@ -41,7 +41,7 @@ def get_bgp_peer():
}
"""
bgp_peer = {}
config_db = ConfigDBConnector()
config_db = swsscommon.ConfigDBConnector()
config_db.connect()
data = config_db.get_table('BGP_NEIGHBOR')

Expand Down Expand Up @@ -262,7 +262,7 @@ def main():
else:
sys.exit("Invalid argument -a {}".format(args.address_family))

SonicDBConfig.load_sonic_global_db_config()
swsscommon.SonicDBConfig.load_sonic_global_db_config()
ip_intfs = get_ip_intfs(af, namespace, display)
display_ip_intfs(ip_intfs)

Expand Down
2 changes: 1 addition & 1 deletion show/interfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from tabulate import tabulate
from sonic_py_common import multi_asic
from sonic_py_common import device_info
from swsssdk import ConfigDBConnector
from swsscommon.swsscommon import ConfigDBConnector
from portconfig import get_child_ports

from . import portchannel
Expand Down

0 comments on commit cd69473

Please sign in to comment.