Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Vadym Hlushko <[email protected]>
  • Loading branch information
vadymhlushko-mlnx committed Oct 29, 2021
1 parent 361d737 commit 7330fec
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tests/test_nvgre_tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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())
Expand Down

0 comments on commit 7330fec

Please sign in to comment.