diff --git a/tests/test_port.py b/tests/test_port.py index 28e720fd0f..4766c87deb 100644 --- a/tests/test_port.py +++ b/tests/test_port.py @@ -17,6 +17,15 @@ def test_PortTpid(self, dvs, testlog): cdb_port_tbl.set("Ethernet8", fvs) time.sleep(1) + # check application database + pdb_port_tbl = swsscommon.Table(pdb, "PORT_TABLE") + (status, fvs) = pdb_port_tbl.get("Ethernet8") + assert status == True + for fv in fvs: + if fv[0] == "tpid": + tpid = fv[1] + assert tpid == "0x9200" + # Check ASIC DB atbl = swsscommon.Table(adb, "ASIC_STATE:SAI_OBJECT_TYPE_PORT") # get TPID and validate it to be 0x9200 (37376) diff --git a/tests/test_portchannel.py b/tests/test_portchannel.py index a2bce114b7..e38ff22954 100644 --- a/tests/test_portchannel.py +++ b/tests/test_portchannel.py @@ -162,6 +162,17 @@ def test_Portchannel_tpid(self, dvs, testlog): tbl.set("PortChannel0002", fvs) time.sleep(1) + # check application database for the correct TPID + pdb_port_tbl = swsscommon.Table(pdb, "LAG_TABLE") + (status, fvs) = pdb_port_tbl.get("PortChannel0002") + assert status == True + tpid = "0" + for fv in fvs: + if fv[0] == "tpid": + tpid = fv[1] + + assert tpid == "0x9200" + # Check ASIC DB # get TPID and validate it to be 0x9200 (37376) atbl = swsscommon.Table(adb, "ASIC_STATE:SAI_OBJECT_TYPE_LAG")