sangho
Committed by Gerrit Code Review

[ONOS-5060] Bug fix for pNAT handler in OpenstackRouting

Sets the dst mac address of the packet as DEFAULT_EXTERNAL_ROUTER_MAC when sending out the packet using packetService.

Change-Id: I79d72539db1bb6cd3e88c4349d0f23dbfe4c57b7
...@@ -190,6 +190,7 @@ public class OpenstackPnatHandler { ...@@ -190,6 +190,7 @@ public class OpenstackPnatHandler {
190 iPacket.setSourceAddress(externalIp.toString()); 190 iPacket.setSourceAddress(externalIp.toString());
191 iPacket.resetChecksum(); 191 iPacket.resetChecksum();
192 iPacket.setParent(ethernet); 192 iPacket.setParent(ethernet);
193 + ethernet.setDestinationMACAddress(DEFAULT_EXTERNAL_ROUTER_MAC);
193 ethernet.setPayload(iPacket); 194 ethernet.setPayload(iPacket);
194 195
195 treatment.setOutput(gatewayService.getUplinkPort(deviceId)); 196 treatment.setOutput(gatewayService.getUplinkPort(deviceId));
......