Merged
Conversation
Signed-off-by: Longxiang Lyu <[email protected]>
|
This pull request introduces 3 alerts when merging 8492bd6f60faa85c92dfa1580f9ce2d247594287 into 09a965d - view on LGTM.com new alerts:
|
8492bd6 to
4b012e2
Compare
Signed-off-by: Longxiang Lyu <[email protected]>
4b012e2 to
5ae1b6c
Compare
Collaborator
Author
|
/AZP run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Longxiang Lyu <[email protected]>
Collaborator
Author
|
/AZP run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Longxiang Lyu <[email protected]>
Signed-off-by: Longxiang Lyu <[email protected]>
|
This pull request introduces 1 alert when merging bc017bb into e67fbec - view on LGTM.com new alerts:
|
Signed-off-by: Longxiang Lyu <[email protected]>
yxieca
approved these changes
Apr 14, 2022
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Add
nic_simulatorto act as gRPC server to respond to requests from DUT operates in dualtoractive-activemode.Signed-off-by: Longxiang Lyu [email protected]
How did you do it?
Add script
nic_simulator.pyto start per-port gRPC server for a dualtoractive-activesetup testbed. It should run in the server NiCs namespace, and it basically does the following few things after it starts:eth%d) and finds its corresponding OVS bridge, the bridge will be verified to have the following topology:starts to set up the flows for each OVS bridge collected in step1, the initial forwarding state is
(active, active).FLOW I: for packets fromupper_if, it will be duplicated tohost_ifandserver_nic.FLOW II: for packets fromlower_if, it will be duplicated tohost_ifandserver_nic.FLOW III: for packets fromserver_nic, it will be duplicated toupper_ifandlower_if.FLOW IV: for packets fromhost_if, it will be directed to eitherupper_iforlower_if.starts the gRPC services(one port, one server) to query/set the forwarding state of the bridge.
standby,nic_simulatorwill modifyFLOW IVto let packets fromhost_ifonly be directed to lower ToR(active)TODO
RPCcallQueryOperationPortStateHow did you verify/test it?
nic_simulator.pynic_simulator_client.pyto verifynic_simulatoroperations.Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation