diff --git a/tests/test_portchannel.py b/tests/test_portchannel.py index e38ff22954..68b68d49eb 100644 --- a/tests/test_portchannel.py +++ b/tests/test_portchannel.py @@ -158,21 +158,11 @@ def test_Portchannel_tpid(self, dvs, testlog): # create port channel with tpid 0x9200 tbl = swsscommon.Table(cdb, "PORTCHANNEL") - fvs = swsscommon.FieldValuePairs([("admin_status", "up"), ("mtu", "9100"), ("tpid", "0x9200"), ("oper_status", "up")]) + fvs = swsscommon.FieldValuePairs([("admin_status", "up"),("mtu", "9100"),("tpid", "0x9200")]) + 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")