Skip to content

Commit f85b5ae

Browse files
authored
Clean fdb flush test code (sonic-net#333)
1 parent e6d5c1a commit f85b5ae

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

tests/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tests_SOURCES = redis_ut.cpp \
2727
selectable_priority.cpp \
2828
warm_restart_ut.cpp \
2929
redis_multi_db_ut.cpp \
30-
fdb_flush.cpp \
30+
fdb_flush.cpp \
3131
main.cpp
3232

3333
tests_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(LIBNL_CFLAGS)

tests/fdb_flush.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ static void insert(
3737
ProducerTable producer(&db, tableName);
3838
ConsumerTable consumer(&db, tableName);
3939

40-
// "SAI_OBJECT_TYPE_FDB_ENTRY:{\"bvid\":\"oid:0x26000000000545\",\"mac\":\"4A:A8:7B:A2:37:1A\",\"switch_id\":\"oid:0x21000000000000\"}"
41-
// "SAI_FDB_ENTRY_ATTR_TYPE" "SAI_FDB_ENTRY_TYPE_DYNAMIC"
42-
// "SAI_FDB_ENTRY_ATTR_BRIDGE_PORT_ID" "oid:0x3a000000000567"
43-
// "SAI_FDB_ENTRY_ATTR_PACKET_ACTION" "SAI_PACKET_ACTION_FORWARD"
44-
4540
std::vector<FieldValueTuple> values;
4641

4742
char buffer[4000];
@@ -50,8 +45,6 @@ static void insert(
5045

5146
std::string key = buffer;
5247

53-
// printf("key: %s\n", buffer);
54-
5548
char port[1000];
5649

5750
sprintf(port, "oid:0x%lx", portId);
@@ -130,7 +123,6 @@ static void exec(
130123
DBConnector db("TEST_DB", 0, true);
131124

132125
populate();
133-
//print();
134126

135127
auto fdbFlushLuaScript = swss::readTextFile("./common/fdb_flush.v2.lua");
136128

@@ -233,10 +225,4 @@ TEST(Fdb, flush)
233225
mac(2,0);
234226
mac(3,1);
235227
mac(4,0);
236-
237-
//insert(0x21000000000000, 0x26000000000001, 0x3a000000000001, 1, true);
238-
//insert(0x21000000000000, 0x26000000000002, 0x3a000000000002, 2, false);
239-
//insert(0x121000000000001, 0x126000000000003, 0x13a000000000003, 3, true);
240-
//insert(0x121000000000001, 0x126000000000004, 0x13a000000000004, 4, false);
241228
}
242-

0 commit comments

Comments
 (0)