-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ecapsulate saidump.cpp with class and add unittest codes.
- Loading branch information
1 parent
4b32eaf
commit 1b9d9d5
Showing
10 changed files
with
308 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "saidump.h" | ||
|
||
using namespace syncd; | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
SWSS_LOG_ENTER(); | ||
swss::Logger::getInstance().setMinPrio(swss::Logger::SWSS_INFO); | ||
|
||
SaiDump m_saiDump; | ||
|
||
if(SAI_STATUS_SUCCESS != m_saiDump.handleCmdLine(argc, argv)) | ||
{ | ||
return EXIT_FAILURE; | ||
} | ||
|
||
m_saiDump.dumpFromRedisDb(); | ||
return EXIT_SUCCESS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.