mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 04:06:49 +02:00
[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
This commit is contained in:
parent
bee9de83e5
commit
5c8f048200
@ -190,6 +190,7 @@ public class OpenstackPnatHandler {
|
||||
iPacket.setSourceAddress(externalIp.toString());
|
||||
iPacket.resetChecksum();
|
||||
iPacket.setParent(ethernet);
|
||||
ethernet.setDestinationMACAddress(DEFAULT_EXTERNAL_ROUTER_MAC);
|
||||
ethernet.setPayload(iPacket);
|
||||
|
||||
treatment.setOutput(gatewayService.getUplinkPort(deviceId));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user