-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[watermarkstat] Add new warning message for the 'q_shared_multi' counters #9
Conversation
scripts/watermarkstat
Outdated
@@ -201,7 +201,7 @@ class Watermarkstat(object): | |||
|
|||
return pg_index | |||
|
|||
def build_header(self, wm_type): | |||
def build_header(self, wm_type, key): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key -> counter_type_key
scripts/watermarkstat
Outdated
print("Object map is empty!", file=sys.stderr) | ||
sys.exit(1) | ||
else: | ||
print("Object map from COUNTERS_DB is empty, because counters are not configured in CONFIG_DB!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because counters are not configured in CONFIG_DB! -> because multicast queues are not configured in CONFIG_DB
scripts/watermarkstat
Outdated
@@ -220,8 +220,12 @@ class Watermarkstat(object): | |||
min_idx = element_idx | |||
|
|||
if min_idx == sys.maxsize: | |||
print("Object map is empty!", file=sys.stderr) | |||
sys.exit(1) | |||
if key not in ['q_shared_multi', 'q_shared_all']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete q_shared_all
5d56243
to
4ac1c9b
Compare
…ters in case if they not in COUNTES_DB Signed-off-by: Vadym Hlushko <[email protected]>
4ac1c9b
to
975ba13
Compare
Signed-off-by: Vadym Hlushko [email protected]
What I did
Add a new warning message for the 'q_shared_multi' counter and not perform the exit with error code (1) because of the new implementation sonic-swss/pull/2432 from now on there is a valid case if there are no multicast counters inside the
COUNTERS_DB
.In order for multicast counters to be presented in
COUNTERS_DB
the appropriate queues should be configured inside theCONFIG_DB
(e.g"BUFFER_QUEUE|Ethernet14|7-8"
)How I did it
Change the
watermarkstat
scriptHow to verify it
Run the sonic-mgmt/tests/iface_namingmode/test_iface_namingmode.py
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)