Skip to content

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

Merged
daall merged 1 commit intosonic-net:masterfrom
daall:drop_counter_swss_update
Jan 27, 2020
Merged

[dropconfig] Move prefix-handling from CLI to orchagent#785
daall merged 1 commit intosonic-net:masterfrom
daall:drop_counter_swss_update

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 [email protected]

- 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 <[email protected]>
@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 <[email protected]>
@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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…asons (sonic-net#1173)

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

Fixes sonic-net#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 <[email protected]>
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