Replaced usage of BytebufUtils.padBuffer() as it is deprecated
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / action / OF10AbstractMacAddressActionSerializer.java
index e3cb27e37937cb4caf7098ade83860a5526d9b9f..f8c4735245a9af980a910b0637082f36ab5c07dc 100644 (file)
@@ -26,7 +26,7 @@ public abstract class OF10AbstractMacAddressActionSerializer extends AbstractAct
         super.serialize(action, outBuffer);\r
         outBuffer.writeBytes(ByteBufUtils.macAddressToBytes(action\r
                 .getAugmentation(DlAddressAction.class).getDlAddress().getValue()));\r
-        ByteBufUtils.padBuffer(ActionConstants.PADDING_IN_DL_ADDRESS_ACTION, outBuffer);\r
+        outBuffer.writeZero(ActionConstants.PADDING_IN_DL_ADDRESS_ACTION);\r
     }\r
 \r
 }\r