Bump upstreams
[openflowplugin.git] / openflowjava / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / action / OF10SetDlDstActionSerializer.java
index fc4d993a2fba0e1525c2d213771baa112df5ae0c..5e34a0bbf3ea8d9dcae9c861441790505977cd58 100644 (file)
@@ -19,23 +19,14 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev1
  * @author michal.polkorab
  */
 public class OF10SetDlDstActionSerializer extends AbstractActionSerializer {
+    public OF10SetDlDstActionSerializer() {
+        super(ActionConstants.SET_DL_DST_CODE, ActionConstants.LARGER_ACTION_LENGTH);
+    }
 
     @Override
-    public void serialize(final Action action, final ByteBuf outBuffer) {
-        super.serialize(action, outBuffer);
-        outBuffer.writeBytes(IetfYangUtil.INSTANCE.macAddressBytes(((SetDlDstCase) action.getActionChoice())
+    protected void serializeBody(final Action action, final ByteBuf outBuffer) {
+        outBuffer.writeBytes(IetfYangUtil.macAddressBytes(((SetDlDstCase) action.getActionChoice())
                 .getSetDlDstAction().getDlDstAddress()));
         outBuffer.writeZero(ActionConstants.PADDING_IN_DL_ADDRESS_ACTION);
     }
-
-    @Override
-    protected int getType() {
-        return ActionConstants.SET_DL_DST_CODE;
-    }
-
-    @Override
-    protected int getLength() {
-        return ActionConstants.LARGER_ACTION_LENGTH;
-    }
-
 }