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

[GCU] Fix JsonPointerFilter bug #2477

Merged
merged 1 commit into from
Nov 7, 2022
Merged

Conversation

wen587
Copy link
Contributor

@wen587 wen587 commented Nov 4, 2022

Refer to #2273
Before the fix, the prefix pattern Ethernet12|* would match Ethernet124|0 and Ethernet12|0.
The suffix pattern *|10 would match Ethernet1|10 and Ethernet1|11110.

What I did

Fix a bug of JsonPointerFilter in GCU that will make the wrong selection of candidates.

How I did it

Add the patch addressing '|' in the prefix and suffix filter to avoid wrong selection.

How to verify it

Add UT.

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)

@wen587 wen587 marked this pull request as ready for review November 4, 2022 07:34
@qiluo-msft
Copy link
Contributor

@wen587 Will you backport to 202205 branch?

@wen587 wen587 merged commit f374616 into sonic-net:master Nov 7, 2022
@wen587
Copy link
Contributor Author

wen587 commented Nov 7, 2022

@wen587 Will you backport to 202205 branch?

I have added the label for 202205. I will help if there is any conflict.

yxieca pushed a commit that referenced this pull request Nov 10, 2022
What I did
Fix a bug of JsonPointerFilter in GCU that will make the wrong selection of candidates.

How I did it
Add the patch addressing '|' in the prefix and suffix filter to avoid wrong selection.

How to verify it
Add UT.
preetham-singh pushed a commit to preetham-singh/sonic-utilities that referenced this pull request Nov 21, 2022
What I did
Fix a bug of JsonPointerFilter in GCU that will make the wrong selection of candidates.

How I did it
Add the patch addressing '|' in the prefix and suffix filter to avoid wrong selection.

How to verify it
Add UT.
mdanish-kh pushed a commit to mdanish-kh/sonic-utilities that referenced this pull request Nov 23, 2022
What I did
Fix a bug of JsonPointerFilter in GCU that will make the wrong selection of candidates.

How I did it
Add the patch addressing '|' in the prefix and suffix filter to avoid wrong selection.

How to verify it
Add UT.
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.

5 participants