Skip to content

Commit 4d9bd0a

Browse files
committed
Fixed LGTM Warnings
1 parent 84642fc commit 4d9bd0a

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tests/test_evpn_fdb.py

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
from swsscommon import swsscommon
2-
import os
3-
import sys
42
import time
5-
import json
6-
import pytest
7-
from distutils.version import StrictVersion
83

94
def create_entry(tbl, key, pairs):
105
fvs = swsscommon.FieldValuePairs(pairs)
@@ -94,14 +89,8 @@ def create_vxlan_tunnel_map(db, tnlname, mapname, vni_id, vlan_id):
9489
attrs,
9590
)
9691

97-
def remove_vxlan_tunnel_map(db, tnlname, mapname,vni_id, vlan_id):
92+
def remove_vxlan_tunnel_map(db, tnlname, mapname):
9893
#conf_db = swsscommon.DBConnector(swsscommon.CONFIG_DB, dvs.redis_sock, 0)
99-
100-
attrs = [
101-
("vni", vni_id),
102-
("vlan", vlan_id),
103-
]
104-
10594
# create the VXLAN tunnel Term entry in Config DB
10695
delete_entry_tbl(
10796
db,
@@ -253,9 +242,6 @@ def test_evpnFdb(dvs, testlog):
253242
time.sleep(1)
254243

255244
tnl_bp_oid_6 = get_vxlan_p2p_tunnel_bp(dvs.adb, remote_ip_6)
256-
tnl_bp_oid_8 = get_vxlan_p2p_tunnel_bp(dvs.adb, remote_ip_8)
257-
258-
259245

260246
# check that the FDB entry is inserted into ASIC DB
261247
ok, extra = dvs.is_fdb_entry_exists(dvs.adb, "ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY",

0 commit comments

Comments
 (0)