Skip to content

Commit

Permalink
Add src mac for snat bounce
Browse files Browse the repository at this point in the history
- Not having source mac is causing the leaf to get a packet
  with its own mac as src-mac that is causing it to move the
  EP
- this sends a well known mac of the snat-ifc as src mac

Signed-off-by: Madhu Challa <challa@gmail.com>
  • Loading branch information
mchalla committed Jul 2, 2020
1 parent 7199a7d commit 754efb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent-ovs/ovs/IntFlowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4626,6 +4626,7 @@ void IntFlowManager::handleSnatUpdate(const string& snatUuid) {
maskedFlow.action().go(SNAT_REV_TABLE_ID);
} else {
maskedFlow.action().ethDst(dmac)
.ethSrc(ifcMac)
.output(OFPP_IN_PORT);
}
maskedFlow.build(toSnatFlows);
Expand Down

0 comments on commit 754efb5

Please sign in to comment.