Skip to content

[request parser] Allow request parser to parse multiple values#1758

Merged
shi-su merged 1 commit intosonic-net:masterfrom
shi-su:req_par
Jun 3, 2021
Merged

[request parser] Allow request parser to parse multiple values#1758
shi-su merged 1 commit intosonic-net:masterfrom
shi-su:req_par

Conversation

@shi-su
Copy link
Contributor

@shi-su shi-su commented May 26, 2021

What I did
Add an option for request parser to parse strings that contains multiple IP address, MAC address, or unsigned int. Return the values in a vector.

Why I did it
To enable overlay ECMP, the request may contain values with multiple nexthops. This PR aims to properly parse the request in such a scenario.

How I verified it

Details if related

@shi-su
Copy link
Contributor Author

shi-su commented May 27, 2021

/Azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shi-su shi-su marked this pull request as ready for review May 28, 2021 01:44
@shi-su shi-su requested a review from prsunny May 28, 2021 01:44
@prsunny
Copy link
Collaborator

prsunny commented Jun 2, 2021

Can you check tests/request_parser_ut.cpp and add some unit test?

@shi-su shi-su merged commit ba30abc into sonic-net:master Jun 3, 2021
@shi-su shi-su deleted the req_par branch June 3, 2021 01:36
shi-su added a commit that referenced this pull request Jun 14, 2021
#1766)

What I did
Add unit tests for request parser to parse multiple values.

Why I did it
Add unit tests for the feature added in PR #1758.

How I verified it
Run unit tests locally and confirm the tests pass with the given conditions and constraints.
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
sonic-net#1766)

What I did
Add unit tests for request parser to parse multiple values.

Why I did it
Add unit tests for the feature added in PR sonic-net#1758.

How I verified it
Run unit tests locally and confirm the tests pass with the given conditions and constraints.
@VenkatCisco
Copy link
Contributor

Can this be double committed to 202012 branch

qiluo-msft pushed a commit that referenced this pull request Dec 20, 2021
#1766)

What I did
Add unit tests for request parser to parse multiple values.

Why I did it
Add unit tests for the feature added in PR #1758.

How I verified it
Run unit tests locally and confirm the tests pass with the given conditions and constraints.
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
sonic-net#1766)

What I did
Add unit tests for request parser to parse multiple values.

Why I did it
Add unit tests for the feature added in PR sonic-net#1758.

How I verified it
Run unit tests locally and confirm the tests pass with the given conditions and constraints.
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