Skip to content

Commit 3fc0fe1

Browse files
authored
Replace swsssdk with swsscommon in alphanetworks devices (#11349)
#### Why I did it Update scripts in sonic-buildimage from py-swsssdk to swsscommon #### How I did it Replace swsssdk with swsscommon in alphanetworks devices code. #### How to verify it Pass all E2E test case #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 - [ ] 202205 #### Description for the changelog Replace swsssdk with swsscommon in alphanetworks devices code. #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md --> #### A picture of a cute animal (not mandatory but encouraged)
1 parent 776c93b commit 3fc0fe1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

device/alphanetworks/x86_64-alphanetworks_snh60a0_320fv2-r0/plugins/led_control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# try:
55
# from sonic_led.led_control_base import LedControlBase
6-
# import swsssdk
6+
# from swsscommon import swsscommon
77
# except ImportError as e:
88
# raise ImportError (str(e) + " - required module not found")
99

@@ -181,7 +181,7 @@ def _port_name_to_qsfp_index(self, port_name):
181181

182182
sonic_port_num = int(port_name[len(self.SONIC_PORT_NAME_PREFIX):])
183183

184-
swss = swsssdk.SonicV2Connector()
184+
swss = swsscommon.SonicV2Connector()
185185
swss.connect(swss.APPL_DB)
186186

187187
lanes = swss.get(

device/alphanetworks/x86_64-alphanetworks_snh60b0_640f-r0/plugins/led_control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# try:
77
# from sonic_led.led_control_base import LedControlBase
8-
# import swsssdk
8+
# from swsscommon import swsscommon
99
# except ImportError as e:
1010
# raise ImportError (str(e) + " - required module not found")
1111

@@ -148,7 +148,7 @@ def _port_name_to_qsfp_index(self, port_name):
148148

149149
sonic_port_num = int(port_name[len(self.SONIC_PORT_NAME_PREFIX):])
150150

151-
swss = swsssdk.SonicV2Connector()
151+
swss = swsscommon.SonicV2Connector()
152152
swss.connect(swss.APPL_DB)
153153

154154
lanes = swss.get(

0 commit comments

Comments
 (0)