From a18d0359a01aef7751fbd77253435e326429c3b9 Mon Sep 17 00:00:00 2001 From: Pankaj Jain Date: Wed, 24 Jun 2020 00:18:06 -0700 Subject: [PATCH] Fixed LGTM Warnings --- tests/test_evpn_fdb.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tests/test_evpn_fdb.py b/tests/test_evpn_fdb.py index 0091b19b5b7..c5974ba0556 100644 --- a/tests/test_evpn_fdb.py +++ b/tests/test_evpn_fdb.py @@ -1,10 +1,5 @@ from swsscommon import swsscommon -import os -import sys import time -import json -import pytest -from distutils.version import StrictVersion def create_entry(tbl, key, pairs): fvs = swsscommon.FieldValuePairs(pairs) @@ -94,14 +89,8 @@ def create_vxlan_tunnel_map(db, tnlname, mapname, vni_id, vlan_id): attrs, ) -def remove_vxlan_tunnel_map(db, tnlname, mapname,vni_id, vlan_id): +def remove_vxlan_tunnel_map(db, tnlname, mapname): #conf_db = swsscommon.DBConnector(swsscommon.CONFIG_DB, dvs.redis_sock, 0) - - attrs = [ - ("vni", vni_id), - ("vlan", vlan_id), - ] - # create the VXLAN tunnel Term entry in Config DB delete_entry_tbl( db, @@ -253,9 +242,6 @@ def test_evpnFdb(dvs, testlog): time.sleep(1) tnl_bp_oid_6 = get_vxlan_p2p_tunnel_bp(dvs.adb, remote_ip_6) - tnl_bp_oid_8 = get_vxlan_p2p_tunnel_bp(dvs.adb, remote_ip_8) - - # check that the FDB entry is inserted into ASIC DB ok, extra = dvs.is_fdb_entry_exists(dvs.adb, "ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY",