From 7330fece8abcd0ced083d07cd2ae1b57eef49e55 Mon Sep 17 00:00:00 2001 From: Vadym Hlushko Date: Fri, 29 Oct 2021 10:13:57 +0000 Subject: [PATCH] Removed unused code Signed-off-by: Vadym Hlushko --- tests/test_nvgre_tunnel.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/tests/test_nvgre_tunnel.py b/tests/test_nvgre_tunnel.py index 536cb615ccb..63b086cf7b2 100644 --- a/tests/test_nvgre_tunnel.py +++ b/tests/test_nvgre_tunnel.py @@ -4,17 +4,13 @@ import time import pytest + from swsscommon import swsscommon from pprint import pprint NVGRE_TUNNEL = 'NVGRE_TUNNEL' NVGRE_TUNNEL_MAP = 'NVGRE_TUNNEL_MAP' -NVGRE_TUNNEL_NAME = 'tunnel_1' -NVGRE_TUNNEL_MAP_ENTRY_NAME = 'entry_1' -NVGRE_VSID = '850' -VLAN_ID = '500' -VALID_IP_ADDR = '10.0.0.1' SAI_OBJECT_TYPE_TUNNEL = 'ASIC_STATE:SAI_OBJECT_TYPE_TUNNEL' @@ -43,7 +39,6 @@ def get_all_created_entries(db, table, existed_entries): tbl = swsscommon.Table(db, table) entries = set(tbl.getKeys()) new_entries = list(entries - existed_entries) - # TODO: fix msg assert len(new_entries) >= 0, "DB entries was't created" new_entries.sort() return new_entries @@ -69,14 +64,6 @@ def get_created_entry(db, table, existed_entries): return new_entries[0] -def get_created_entry_mapid(db, table, existed_entries): - tbl = swsscommon.Table(db, table) - entries = set(tbl.getKeys()) - new_entries = list(entries - existed_entries) - new_entries.sort() - return new_entries - - def how_many_entries_exist(db, table): tbl = swsscommon.Table(db, table) return len(tbl.getKeys())