@@ -13,7 +13,7 @@ import sys
13
13
14
14
import click
15
15
from natsort import natsorted
16
- from sonic_py_common .interface import front_panel_prefix , backplane_prefix , inband_prefix
16
+ from sonic_py_common .interface import front_panel_prefix , backplane_prefix , inband_prefix , recirc_prefix
17
17
from sonic_py_common import multi_asic
18
18
from tabulate import tabulate
19
19
from utilities_common import multi_asic as multi_asic_util
@@ -417,7 +417,7 @@ class SFPShow(object):
417
417
sorted_table_keys = natsorted (port_table_keys )
418
418
for i in sorted_table_keys :
419
419
interface = re .split (':' , i , maxsplit = 1 )[- 1 ].strip ()
420
- if interface and interface .startswith (front_panel_prefix ()) and not interface .startswith (backplane_prefix ()) and not interface . startswith ( inband_prefix ()):
420
+ if interface and interface .startswith (front_panel_prefix ()) and not interface .startswith (( backplane_prefix (), inband_prefix (), recirc_prefix () )):
421
421
presence = self .db .exists (self .db .STATE_DB , 'TRANSCEIVER_INFO|{}' .format (interface ))
422
422
if presence :
423
423
self .output += self .convert_interface_sfp_info_to_cli_output_string (
@@ -441,7 +441,7 @@ class SFPShow(object):
441
441
port_table_keys = self .db .keys (self .db .APPL_DB , "PORT_TABLE:*" )
442
442
for i in port_table_keys :
443
443
key = re .split (':' , i , maxsplit = 1 )[- 1 ].strip ()
444
- if key and key .startswith (front_panel_prefix ()) and not key .startswith (backplane_prefix ()) and not key . startswith ( inband_prefix ()):
444
+ if key and key .startswith (front_panel_prefix ()) and not key .startswith (( backplane_prefix (), inband_prefix (), recirc_prefix () )):
445
445
presence = self .db .exists (self .db .STATE_DB , 'TRANSCEIVER_INFO|{}' .format (key ))
446
446
if presence :
447
447
port_table .append ((key , 'Present' ))
0 commit comments