Unit test case: 1. Configure the interface to shutdown and make sure the host_tx_ready field in state-db PORT_TABLE is updated accordingly . 2. Try ports from different namespace. root@localhost:/home/cisco# show int status Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC ----------- --------------------------------------- ------- ----- ----- --------- ------ ------ ------- ----------------------------------------------- ---------- Ethernet0 1288,1289,1290,1291,1292,1293,1294,1295 400G 9100 N/A Eth0/0/0 routed down up QSFP28 or later N/A Ethernet1 1280,1281,1282,1283,1284,1285,1286,1287 400G 9100 N/A Eth0/0/1 routed down up QSFP28 or later N/A Ethernet2 1032,1033,1034,1035,1036,1037,1038,1039 400G 9100 N/A Eth0/0/2 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet3 1024,1025,1026,1027,1028,1029,1030,1031 400G 9100 N/A Eth0/0/3 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet4 776,777,778,779,780,781,782,783 400G 9100 N/A Eth0/0/4 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet5 768,769,770,771,772,773,774,775 400G 9100 N/A Eth0/0/5 routed down up N/A N/A Ethernet6 520,521,522,523,524,525,526,527 400G 9100 N/A Eth0/0/6 routed down up N/A N/A Ethernet7 512,513,514,515,516,517,518,519 400G 9100 N/A Eth0/0/7 routed down up QSFP28 or later N/A Ethernet8 264,265,266,267,268,269,270,271 400G 9100 N/A Eth0/0/8 routed down up QSFP28 or later N/A Ethernet9 256,257,258,259,260,261,262,263 400G 9100 N/A Eth0/0/9 routed down up QSFP28 or later N/A Ethernet10 8,9,10,11,12,13,14,15 400G 9100 N/A Eth0/0/10 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet11 0,1,2,3,4,5,6,7 400G 9100 N/A Eth0/0/11 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet12 1288,1289,1290,1291,1292,1293,1294,1295 400G 9100 N/A Eth0/1/12 routed down up QSFP28 or later N/A Ethernet13 1280,1281,1282,1283,1284,1285,1286,1287 400G 9100 N/A Eth0/1/13 routed down up QSFP28 or later N/A Ethernet14 1032,1033,1034,1035,1036,1037,1038,1039 400G 9100 N/A Eth0/1/14 routed down up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet15 1024,1025,1026,1027,1028,1029,1030,1031 400G 9100 N/A Eth0/1/15 routed down up N/A N/A Ethernet16 776,777,778,779,780,781,782,783 400G 9100 N/A Eth0/1/16 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet17 768,769,770,771,772,773,774,775 400G 9100 N/A Eth0/1/17 routed down up N/A N/A Ethernet18 520,521,522,523,524,525,526,527 400G 9100 N/A Eth0/1/18 routed down up QSFP28 or later N/A Ethernet19 512,513,514,515,516,517,518,519 400G 9100 N/A Eth0/1/19 routed down up QSFP28 or later N/A Ethernet20 264,265,266,267,268,269,270,271 400G 9100 N/A Eth0/1/20 routed down up QSFP28 or later N/A Ethernet21 256,257,258,259,260,261,262,263 400G 9100 N/A Eth0/1/21 routed down up QSFP28 or later N/A Ethernet22 8,9,10,11,12,13,14,15 400G 9100 N/A Eth0/1/22 routed down up N/A N/A Ethernet23 0,1,2,3,4,5,6,7 400G 9100 N/A Eth0/1/23 routed down up N/A N/A Ethernet24 1288,1289,1290,1291,1292,1293,1294,1295 400G 9100 N/A Eth0/2/24 routed down up QSFP28 or later N/A Ethernet25 1280,1281,1282,1283,1284,1285,1286,1287 400G 9100 N/A Eth0/2/25 routed down up QSFP28 or later N/A Ethernet26 1032,1033,1034,1035,1036,1037,1038,1039 400G 9100 N/A Eth0/2/26 routed down up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet27 1024,1025,1026,1027,1028,1029,1030,1031 400G 9100 N/A Eth0/2/27 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet28 776,777,778,779,780,781,782,783 400G 9100 N/A Eth0/2/28 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet29 768,769,770,771,772,773,774,775 400G 9100 N/A Eth0/2/29 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet30 520,521,522,523,524,525,526,527 400G 9100 N/A Eth0/2/30 routed down up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet31 512,513,514,515,516,517,518,519 400G 9100 N/A Eth0/2/31 routed down up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet32 264,265,266,267,268,269,270,271 400G 9100 N/A Eth0/2/32 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet33 256,257,258,259,260,261,262,263 400G 9100 N/A Eth0/2/33 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet34 8,9,10,11,12,13,14,15 400G 9100 N/A Eth0/2/34 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A Ethernet35 0,1,2,3,4,5,6,7 400G 9100 N/A Eth0/2/35 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet26" {'state': 'ok', 'netdev_oper_status': 'down', 'admin_status': 'down', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'true', 'speed': 'N/A'} root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet30" {'state': 'ok', 'netdev_oper_status': 'up', 'admin_status': 'up', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'true', 'speed': 'N/A'} root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet31" {'state': 'ok', 'netdev_oper_status': 'down', 'admin_status': 'down', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'true', 'speed': 'N/A'} root@localhost:/home/cisco# config interface -n asic2 shutdown Ethernet26 root@localhost:/home/cisco# config interface -n asic2 shutdown Ethernet30 root@localhost:/home/cisco# config interface -n asic2 shutdown Ethernet31 root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet26" {'state': 'ok', 'netdev_oper_status': 'down', 'admin_status': 'down', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'false', 'speed': 'N/A'} root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet30" {'state': 'ok', 'netdev_oper_status': 'down', 'admin_status': 'down', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'false', 'speed': 'N/A'} root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet31" {'state': 'ok', 'netdev_oper_status': 'down', 'admin_status': 'down', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'false', 'speed': 'N/A'} root@localhost:/home/cisco# config interface -n asic2 startup Ethernet31 root@localhost:/home/cisco# config interface -n asic2 startup Ethernet30 root@localhost:/home/cisco# config interface -n asic2 startup Ethernet26 root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet31" {'state': 'ok', 'netdev_oper_status': 'up', 'admin_status': 'up', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'true', 'speed': 'N/A'} root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet30" {'state': 'ok', 'netdev_oper_status': 'up', 'admin_status': 'up', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'true', 'speed': 'N/A'} root@localhost:/home/cisco# sonic-db-cli -n asic2 STATE_DB hgetall "PORT_TABLE|Ethernet26" {'state': 'ok', 'netdev_oper_status': 'up', 'admin_status': 'up', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'true', 'speed': 'N/A'} root@localhost:/home/cisco# sonic-db-cli -n asic0 STATE_DB hgetall "PORT_TABLE|Ethernet4" {'state': 'ok', 'netdev_oper_status': 'up', 'admin_status': 'up', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'true', 'speed': 'N/A'} root@localhost:/home/cisco# show interface status | grep Ethernet4 Ethernet4 776,777,778,779,780,781,782,783 400G 9100 N/A Eth0/0/4 routed up up QSFP-DD Double Density 8X Pluggable Transceiver N/A root@localhost:/home/cisco# config interface -n asic0 startup Ethernet4 root@localhost:/home/cisco# config interface -n asic0 shutdown Ethernet4 root@localhost:/home/cisco# sonic-db-cli -n asic0 STATE_DB hgetall "PORT_TABLE|Ethernet4" {'state': 'ok', 'netdev_oper_status': 'down', 'admin_status': 'down', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'false', 'speed': 'N/A'} root@localhost:/home/cisco# show interface status | grep Ethernet4 Ethernet4 776,777,778,779,780,781,782,783 400G 9100 N/A Eth0/0/4 routed down down QSFP-DD Double Density 8X Pluggable Transceiver N/A root@localhost:/home/cisco# config interface -n asic0 startup Ethernet4 root@localhost:/home/cisco# sonic-db-cli -n asic0 STATE_DB hgetall "PORT_TABLE|Ethernet4" {'state': 'ok', 'netdev_oper_status': 'up', 'admin_status': 'up', 'mtu': '9100', 'supported_speeds': '', 'host_tx_ready': 'true', 'speed': 'N/A'}