Skip to content
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

[Flex Counters] Delay flex counters even if tables are present in the DB #1877

Merged
merged 5 commits into from
Sep 2, 2021
Merged

[Flex Counters] Delay flex counters even if tables are present in the DB #1877

merged 5 commits into from
Sep 2, 2021

Conversation

shlomibitton
Copy link
Contributor

@shlomibitton shlomibitton commented Aug 17, 2021

What I did
Check if delay indicator flag is exist and 'true', if it does, skip the counter enablement.

Why I did it
Currently if flex counters tables are present in config DB the delay mechanism will not take place.
This change is to make sure the delay will take place even if the tables are present in the DB.

How I verified it
Observer counters are created after enable_counters script is called.

Details if related

Shlomi Bitton added 3 commits August 17, 2021 09:22
Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
@shlomibitton
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@shlomibitton is it relevant for 202106?
@vaibhavhd can you pls help to review?

@liat-grozovik
Copy link
Collaborator

@shlomibitton pls handle LGTM errors

@shlomibitton
Copy link
Contributor Author

shlomibitton commented Aug 22, 2021

@liat-grozovik Yes it is.
LGTM error is because of dependency PR: sonic-net/sonic-swss-common#523

@liat-grozovik
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shlomibitton
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shlomibitton
Copy link
Contributor Author

@kcudnik LGTM is still failing since FLEX_COUNTER_DELAY_STATUS_FIELD is not declared even though PR sonic-net/sonic-swss-common#523 already merged, this field should be declared.
Do you know how can we fix it?

@kcudnik
Copy link
Contributor

kcudnik commented Aug 25, 2021

it was merged on master ? in swss-common?

@shlomibitton
Copy link
Contributor Author

@shlomibitton
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

vaibhavhd
vaibhavhd previously approved these changes Aug 25, 2021
@lgtm-com
Copy link

lgtm-com bot commented Aug 25, 2021

This pull request introduces 1 alert when merging 0febef7 into 15a014b - view on LGTM.com

new alerts:

  • 1 for Empty branch of conditional

@vaibhavhd
Copy link
Contributor

@kcudnik LGTM is still failing since FLEX_COUNTER_DELAY_STATUS_FIELD is not declared even though PR Azure/sonic-swss-common#523 already merged, this field should be declared.
Do you know how can we fix it?

I just ran LGTM again, and it could complete without such errors. There is a empty condition warning which we know the reason for.

@shlomibitton
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit 5643532 into sonic-net:master Sep 2, 2021
judyjoseph pushed a commit that referenced this pull request Sep 2, 2021
… DB (#1877)

**What I did**
Check if delay indicator flag is exist and 'true', if it does, skip the counter enablement.

**Why I did it**
Currently if flex counters tables are present in config DB the delay mechanism will not take place.
This change is to make sure the delay will take place even if the tables are present in the DB.

**How I verified it**
Observer counters are created after enable_counters script is called.

**Details if related**
@shlomibitton shlomibitton deleted the shlomi_adapt_flex_counters_delay_with_user_config_master branch September 5, 2021 08:38
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
… DB (sonic-net#1877)

**What I did**
Check if delay indicator flag is exist and 'true', if it does, skip the counter enablement.

**Why I did it**
Currently if flex counters tables are present in config DB the delay mechanism will not take place.
This change is to make sure the delay will take place even if the tables are present in the DB.

**How I verified it**
Observer counters are created after enable_counters script is called.

**Details if related**
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
What I did
Implemented vlan and vlan_member modules for debug dump utility.

How I did it
Used infrastructure and followed examples in
sonic-net#1666
sonic-net#1667
sonic-net#1668
sonic-net#1669
sonic-net#1670

How to verify it
On switch: dump state vlan <vlan_name>
dump state vlan_member '<vlan_name|<member_name>'
Unit test: pytest-3 dump_tests/module_tests/vlan_test.py (same test file covers both vlan and vlan_member)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants