MacAddress (de)serialization fixed
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / PortModInputMessageFactory.java
index 3264fd0df2c8c936ef1de45e33508a9293e25395..e83cdb7d13394ff12cd2e1a61f84e675515c59e7 100644 (file)
@@ -44,7 +44,7 @@ public class PortModInputMessageFactory implements OFSerializer<PortModInput> {
         ByteBufUtils.writeOFHeader(instance, message, out);\r
         out.writeInt(message.getPortNo().getValue().intValue());\r
         ByteBufUtils.padBuffer(PADDING_IN_PORT_MOD_MESSAGE_01, out);\r
-        out.writeBytes(ByteBufUtils.hexStringToBytes(message.getHwAddress().getValue(), false));\r
+        out.writeBytes(ByteBufUtils.macAddressToBytes(message.getHwAddress().getValue()));\r
         ByteBufUtils.padBuffer(PADDING_IN_PORT_MOD_MESSAGE_02, out);\r
         out.writeInt(createPortConfigBitmask(message.getConfig()));\r
         out.writeInt(createPortConfigBitmask(message.getMask()));\r