Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
gechiang committed May 31, 2021
1 parent a4855a7 commit 88eea45
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tests/test_portchannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 88eea45

Please sign in to comment.