Fixed missing keys in sal-compatibility flows.
[controller.git] / opendaylight / md-sal / compatibility / sal-compatibility / src / main / java / org / opendaylight / controller / sal / compatibility / DataPacketAdapter.xtend
index ce6af6469ef1a55f04b679ef367a6dd797b8359c..8581d4a9da64894c59a84e70544043ea67e1e9d9 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
 package org.opendaylight.controller.sal.compatibility
 
 import org.opendaylight.controller.sal.packet.IPluginOutDataPacketService
@@ -15,8 +22,9 @@ class DataPacketAdapter implements PacketProcessingListener {
         dataPacketPublisher.receiveDataPacket(inPacket);
     }
 
-    public static def RawPacket toRawPacket(PacketReceived received) {
+    public static def RawPacket toRawPacket(PacketReceived received) {        
         val ret = new RawPacket(received.payload);
+        ret.setIncomingNodeConnector(NodeMapping.toADNodeConnector(received.ingress))
         return ret;
     }