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

[dropconfig] Move prefix-handling from CLI to orchagent #785

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

daall
Copy link
Contributor

@daall daall commented Jan 16, 2020

  • Remove prefix-trimming from drop reason capability query
  • Remove prefix-trimming from create/add safety checks

Signed-off-by: Danny Allen daall@microsoft.com

- What I did
I removed some conditions from the drop counter CLI that was handling the presence of "SAI_IN/OUT_DROP_REASON_" in State DB.

- Why I did it
A change was made in SWSS that removed the SAI prefixes from the database, making the prefix removal unnecessary in the CLI.

- How to verify it
The CLI tests have been updated to reflect this change. Additionally, you can load the updated script onto a device running the SWSS changes and verify that the behavior is unchanged.

Depends on: sonic-net/sonic-swss#1173

- Remove prefix-trimming from drop reason capability query
- Remove prefix-trimming from create/add safety checks

Signed-off-by: Danny Allen <daall@microsoft.com>
@daall
Copy link
Contributor Author

daall commented Jan 17, 2020

retest this please

2 similar comments
@daall
Copy link
Contributor Author

daall commented Jan 17, 2020

retest this please

@lguohan
Copy link
Contributor

lguohan commented Jan 24, 2020

retest this please

lguohan pushed a commit to sonic-net/sonic-swss that referenced this pull request Jan 26, 2020
…asons (#1173)

- Refactor drop reason capability query to trim SAI prefixes
- Store device capabilities in orchagent to perform safety checks

Fixes #1136 - Rather than depending on each ASIC vendor to follow the same error handling doctrine, this PR validates HW support in orchagent, which should be more reliable.

Related to sonic-net/sonic-utilities#785 - In order to validate user input, we need to remove the SAI prefixes before we store the results. This removes the need for the CLI to perform these checks.

Signed-off-by: Danny Allen <daall@microsoft.com>
@daall daall merged commit bafaaed into sonic-net:master Jan 27, 2020
@daall daall deleted the drop_counter_swss_update branch January 27, 2020 17:01
lguohan pushed a commit to sonic-net/sonic-swss that referenced this pull request Jan 28, 2020
…asons (#1173)

- Refactor drop reason capability query to trim SAI prefixes
- Store device capabilities in orchagent to perform safety checks

Fixes #1136 - Rather than depending on each ASIC vendor to follow the same error handling doctrine, this PR validates HW support in orchagent, which should be more reliable.

Related to sonic-net/sonic-utilities#785 - In order to validate user input, we need to remove the SAI prefixes before we store the results. This removes the need for the CLI to perform these checks.

Signed-off-by: Danny Allen <daall@microsoft.com>
lguohan pushed a commit to sonic-net/sonic-swss that referenced this pull request Jan 30, 2020
…asons (#1173)

- Refactor drop reason capability query to trim SAI prefixes
- Store device capabilities in orchagent to perform safety checks

Fixes #1136 - Rather than depending on each ASIC vendor to follow the same error handling doctrine, this PR validates HW support in orchagent, which should be more reliable.

Related to sonic-net/sonic-utilities#785 - In order to validate user input, we need to remove the SAI prefixes before we store the results. This removes the need for the CLI to perform these checks.

Signed-off-by: Danny Allen <daall@microsoft.com>
abdosi pushed a commit that referenced this pull request Feb 4, 2020
- Remove prefix-trimming from drop reason capability query
- Remove prefix-trimming from create/add safety checks

Signed-off-by: Danny Allen <daall@microsoft.com>
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
1f6982d786292390cf0dc7a3da936e035b7685e4 (HEAD -> 201911, origin/201911) [201911 Flex Counters] Add PFC pause duration counters in microseconds (sonic-net#785)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
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.

4 participants