Merge "first implementation of yang-data-api"
authorAlessandro Boch <aboch@cisco.com>
Tue, 9 Jul 2013 14:53:17 +0000 (14:53 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 9 Jul 2013 14:53:17 +0000 (14:53 +0000)
third-party/openflowj/src/main/java/org/openflow/protocol/action/OFActionDataLayer.java

index 79edf904f176a6f1c533c1e88f82bee2ff814a92..f637b21e1e8f74975858625ce20e20023a03fc26 100644 (file)
@@ -44,7 +44,7 @@ public abstract class OFActionDataLayer extends OFAction {
     @Override
     public void writeTo(ByteBuffer data) {
         super.writeTo(data);
-        data.put(this.dataLayerAddress);
+        data.put(this.dataLayerAddress, 0, OFPhysicalPort.OFP_ETH_ALEN);
         data.putInt(0);
         data.putShort((short) 0);
     }
@@ -74,4 +74,4 @@ public abstract class OFActionDataLayer extends OFAction {
         }
         return true;
     }
-}
\ No newline at end of file
+}