@@ -17,9 +17,9 @@ std::shared_ptr<CommandLineOptions> CommandLineOptionsParser::parseCommandLine(
17
17
auto options = std::make_shared<CommandLineOptions>();
18
18
19
19
#ifdef SAITHRIFT
20
- const char * const optstring = " dp:t:g:x:b:uSUCsrm :h" ;
20
+ const char * const optstring = " dp:t:g:x:b:uSUCslrm :h" ;
21
21
#else
22
- const char * const optstring = " dp:t:g:x:b:uSUCsh " ;
22
+ const char * const optstring = " dp:t:g:x:b:uSUCslh " ;
23
23
#endif // SAITHRIFT
24
24
25
25
while (true )
@@ -34,6 +34,7 @@ std::shared_ptr<CommandLineOptions> CommandLineOptionsParser::parseCommandLine(
34
34
{ " enableUnittests" , no_argument, 0 , ' U' },
35
35
{ " enableConsistencyCheck" , no_argument, 0 , ' C' },
36
36
{ " syncMode" , no_argument, 0 , ' s' },
37
+ { " enableSaiBulkSupport" , no_argument, 0 , ' l' },
37
38
{ " globalContext" , required_argument, 0 , ' g' },
38
39
{ " contextContig" , required_argument, 0 , ' x' },
39
40
{ " breakConfig" , required_argument, 0 , ' b' },
@@ -94,6 +95,10 @@ std::shared_ptr<CommandLineOptions> CommandLineOptionsParser::parseCommandLine(
94
95
options->m_enableSyncMode = true ;
95
96
break ;
96
97
98
+ case ' l' :
99
+ options->m_enableSaiBulkSupport = true ;
100
+ break ;
101
+
97
102
case ' g' :
98
103
options->m_globalContext = (uint32_t )std::stoul (optarg );
99
104
break ;
@@ -138,9 +143,9 @@ void CommandLineOptionsParser::printUsage()
138
143
SWSS_LOG_ENTER ();
139
144
140
145
#ifdef SAITHRIFT
141
- std::cout << " Usage: syncd [-d] [-p profile] [-t type] [-u] [-S] [-U] [-C] [-s] [-g idx] [-x contextConfig] [-b breakConfig] [-r] [-m portmap] [-h]" << std::endl;
146
+ std::cout << " Usage: syncd [-d] [-p profile] [-t type] [-u] [-S] [-U] [-C] [-s] [-l] [- g idx] [-x contextConfig] [-b breakConfig] [-r] [-m portmap] [-h]" << std::endl;
142
147
#else
143
- std::cout << " Usage: syncd [-d] [-p profile] [-t type] [-u] [-S] [-U] [-C] [-s] [-g idx] [-x contextConfig] [-b breakConfig] [-h]" << std::endl;
148
+ std::cout << " Usage: syncd [-d] [-p profile] [-t type] [-u] [-S] [-U] [-C] [-s] [-l] [- g idx] [-x contextConfig] [-b breakConfig] [-h]" << std::endl;
144
149
#endif // SAITHRIFT
145
150
146
151
std::cout << " -d --diag" << std::endl;
@@ -159,6 +164,8 @@ void CommandLineOptionsParser::printUsage()
159
164
std::cout << " Enable consisteny check DB vs ASIC after comparison logic" << std::endl;
160
165
std::cout << " -s --syncMode" << std::endl;
161
166
std::cout << " Enable synchronous mode" << std::endl;
167
+ std::cout << " -l --enableBulk" << std::endl;
168
+ std::cout << " Enable SAI Bulk support" << std::endl;
162
169
std::cout << " -g --globalContext" << std::endl;
163
170
std::cout << " Global context index to load from context config file" << std::endl;
164
171
std::cout << " -x --contextConfig" << std::endl;
0 commit comments