@@ -104,15 +104,15 @@ def get_per_port_firmware(port):
104
104
state_db = {}
105
105
muxcable_info_tbl = {}
106
106
mux_info_dict = {}
107
+ mux_info_full_dict = {}
107
108
108
109
# Getting all front asic namespace and correspding config and state DB connector
109
110
110
111
namespaces = multi_asic .get_front_end_namespaces ()
111
112
for namespace in namespaces :
112
113
asic_id = multi_asic .get_asic_index_from_namespace (namespace )
113
114
state_db [asic_id ] = SonicV2Connector (use_unix_socket_path = False , namespace = namespace )
114
- state_db [asic_id ].connect (statedb [asic_id ].STATE_DB )
115
- muxcable_info_tbl [asic_id ] = swsscommon .Table (state_db [asic_id ], "MUX_CABLE_INFO" )
115
+ state_db [asic_id ].connect (state_db [asic_id ].STATE_DB )
116
116
117
117
if platform_sfputil is not None :
118
118
asic_index = platform_sfputil_helper .get_asic_id_for_logical_port (port )
@@ -127,10 +127,11 @@ def get_per_port_firmware(port):
127
127
return False
128
128
129
129
130
- muxcable_grpc_dict [asic_index ] = per_npu_statedb [asic_index ].get_all (
131
- per_npu_statedb [asic_index ].STATE_DB , 'MUX_CABLE_INFO|{}' .format (port ))
130
+ mux_info_full_dict [asic_index ] = state_db [asic_index ].get_all (
131
+ state_db [asic_index ].STATE_DB , 'MUX_CABLE_INFO|{}' .format (port ))
132
132
133
- res_dir = muxcable_grpc_dict
133
+ res_dir = {}
134
+ res_dir = mux_info_full_dict [asic_index ]
134
135
mux_info_dict ["version_nic_active" ] = res_dir .get ("version_nic_active" , None )
135
136
mux_info_dict ["version_nic_inactive" ] = res_dir .get ("version_nic_inactive" , None )
136
137
mux_info_dict ["version_nic_next" ] = res_dir .get ("version_nic_next" , None )
0 commit comments