-/*\r
- * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.openflowjava.protocol.impl.deserialization.action;\r
-\r
-import io.netty.buffer.ByteBuf;\r
-\r
-import org.opendaylight.openflowjava.util.ByteBufUtils;\r
-import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;\r
-import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.IpAddressAction;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.IpAddressActionBuilder;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.Action;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.ActionBuilder;\r
-import org.opendaylight.yangtools.yang.binding.Augmentation;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public abstract class OF10AbstractIpAddressActionDeserializer extends AbstractActionDeserializer {\r
-\r
- @Override\r
- public Action deserialize(final ByteBuf input) {\r
- ActionBuilder builder = new ActionBuilder();\r
- input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);\r
- builder.setType(getType());\r
- input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);\r
- builder.addAugmentation(IpAddressAction.class,\r
- createNwAddressAugmentationAndPad(input));\r
- return builder.build();\r
- }\r
-\r
- private static Augmentation<Action> createNwAddressAugmentationAndPad(final ByteBuf input) {\r
- IpAddressActionBuilder ipBuilder = new IpAddressActionBuilder();\r
- ipBuilder.setIpAddress(new Ipv4Address(ByteBufUtils.readIpv4Address(input)));\r
- return ipBuilder.build();\r
- }\r
-\r
-}\r
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. 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.openflowjava.protocol.impl.deserialization.action;
+
+import io.netty.buffer.ByteBuf;
+
+import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
+import org.opendaylight.openflowjava.util.ByteBufUtils;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.IpAddressAction;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.IpAddressActionBuilder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.Action;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.ActionBuilder;
+import org.opendaylight.yangtools.yang.binding.Augmentation;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public abstract class OF10AbstractIpAddressActionDeserializer extends AbstractActionDeserializer {
+
+ @Override
+ public Action deserialize(final ByteBuf input) {
+ ActionBuilder builder = new ActionBuilder();
+ input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);
+ builder.setType(getType());
+ input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);
+ builder.addAugmentation(IpAddressAction.class,
+ createNwAddressAugmentationAndPad(input));
+ return builder.build();
+ }
+
+ private static Augmentation<Action> createNwAddressAugmentationAndPad(final ByteBuf input) {
+ IpAddressActionBuilder ipBuilder = new IpAddressActionBuilder();
+ ipBuilder.setIpAddress(new Ipv4Address(ByteBufUtils.readIpv4Address(input)));
+ return ipBuilder.build();
+ }
+
+}