File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ class Watermarkstat(object):
201
201
202
202
return pg_index
203
203
204
- def build_header (self , wm_type ):
204
+ def build_header (self , wm_type , counter_type ):
205
205
if wm_type is None :
206
206
print ("Header info is not available!" , file = sys .stderr )
207
207
sys .exit (1 )
@@ -220,8 +220,12 @@ class Watermarkstat(object):
220
220
min_idx = element_idx
221
221
222
222
if min_idx == sys .maxsize :
223
- print ("Object map is empty!" , file = sys .stderr )
224
- sys .exit (1 )
223
+ if counter_type != 'q_shared_multi' :
224
+ print ("Object map is empty!" , file = sys .stderr )
225
+ sys .exit (1 )
226
+ else :
227
+ print ("Object map from COUNTERS_DB is empty, because multicast queues are not configured in CONFIG_DB!" )
228
+ sys .exit (0 )
225
229
226
230
self .min_idx = min_idx
227
231
self .header_list += ["{}{}" .format (wm_type ["header_prefix" ], idx ) for idx in range (self .min_idx , max_idx + 1 )]
@@ -261,7 +265,7 @@ class Watermarkstat(object):
261
265
data = STATUS_NA
262
266
table .append ((buf_pool , data ))
263
267
else :
264
- self .build_header (type )
268
+ self .build_header (type , key )
265
269
# Get stat for each port
266
270
for port in natsorted (self .counter_port_name_map ):
267
271
row_data = list ()
You can’t perform that action at this time.
0 commit comments