[NETVIRT-408] SNAT traffic is sent with VM SMAC Created: 04/Jan/17  Updated: 15/Jan/17  Resolved: 15/Jan/17

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Boron
Fix Version/s: None

Type: Bug
Reporter: Tali Ben-Meir Assignee: Karthikeyan Krishnan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 7478

 Description   

SMAC needs to be replaced to the router GW MAC in NAPT use cases



 Comments   
Comment by Karthikeyan Krishnan [ 05/Jan/17 ]

Please refer the below link for code review

https://git.opendaylight.org/gerrit/#/c/48430/

Comment by Karthikeyan Krishnan [ 05/Jan/17 ]

After this code changes added Router-GW MAC address in table 46 (Outbound NAPT Table) when the SNAT traffic is going out to external network. Please find the below table 46 pipeline flow for the reference.

Outbound Traffic (table=46)
==========================

stack@Openstack-Controller:~$ sudo ovs-ofctl dump-flows -O Openflow13 br-int | grep table=46
cookie=0x8122170, duration=257.666s, table=46, n_packets=7, n_bytes=518, idle_timeout=300, send_flow_rem priority=10,tcp,metadata=0x222e0/0xfffffffe,nw_src=10.0.0.5,tp_src=52446 actions=set_field:172.160.0.3->ip_src,set_field:49152->tcp_src,set_field:fa:16:3e:11:4a:cc->eth_src,write_metadata:0x222ee/0xfffffffe,goto_table:47

Generated at Wed Feb 07 20:21:29 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.