X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Fvendorextension%2Fv6extension%2FV6FlowMod.java;h=f7edd30b01cd3424cda925cf29b05ff747020096;hb=d0853adc639de247a097f19868cce0ccaf7c2453;hp=53f4e1d5ad0e73f61219483fc16344d34ed0ca95;hpb=06aa5ce746e29a3760688b2ef2817f50bec5ea7a;p=controller.git diff --git a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/vendorextension/v6extension/V6FlowMod.java b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/vendorextension/v6extension/V6FlowMod.java index 53f4e1d5ad..f7edd30b01 100644 --- a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/vendorextension/v6extension/V6FlowMod.java +++ b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/vendorextension/v6extension/V6FlowMod.java @@ -13,7 +13,6 @@ import java.nio.ByteBuffer; import java.util.LinkedList; import java.util.List; -import org.apache.commons.lang3.builder.ReflectionToStringBuilder; import org.openflow.protocol.OFPacketOut; import org.openflow.protocol.OFPort; import org.openflow.protocol.OFVendor; @@ -24,7 +23,7 @@ import org.slf4j.LoggerFactory; /** * This class is used to create IPv6 Vendor Extension messages. Specfically, It * defines the methods used in creation of Vendor specific IPv6 Flow Mod message. - * + * * */ public class V6FlowMod extends OFVendor implements Cloneable { @@ -49,7 +48,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { private static int IPV6_EXT_MIN_HDR_LEN = 36; /** - * Constructor for the V6FlowMod class. Initializes OFVendor (parent class) + * Constructor for the V6FlowMod class. Initializes OFVendor (parent class) * fields by calling the parent class' constructor. */ public V6FlowMod() { @@ -58,7 +57,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * This method sets the match fields of V6FlowMod object - * @param match V6Match object for this V6FlowMod message + * @param match V6Match object for this V6FlowMod message */ public void setMatch(V6Match match) { this.match = match; @@ -66,7 +65,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Sets the list of actions V6FlowMod message - * @param actions a list of ordered OFAction objects + * @param actions a list of ordered OFAction objects */ public void setActions(List actions) { this.actions = actions; @@ -74,7 +73,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Sets the priority field of V6FlowMod message - * @param priority Priority of the message + * @param priority Priority of the message */ public void setPriority(short priority) { this.priority = priority; @@ -82,7 +81,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Sets the cookie field of V6FlowMod message - * @param cookie Cookie of the message + * @param cookie Cookie of the message */ public void setCookie(long cookie) { this.cookie = cookie; @@ -90,7 +89,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Sets the command field of V6FlowMod message - * @param command Command type of the message (ADD or DELETE) + * @param command Command type of the message (ADD or DELETE) */ public V6FlowMod setCommand(short command) { this.command = command; @@ -99,7 +98,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Sets the outPort field of V6FlowMod message - * @param outPort outPort of the message + * @param outPort outPort of the message */ public V6FlowMod setOutPort(OFPort port) { this.outPort = port.getValue(); @@ -108,7 +107,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Sets the idle_timeout of V6FlowMod message - * @param idleTimeout idle timeout for this message + * @param idleTimeout idle timeout for this message */ public void setIdleTimeout(short idleTimeout) { this.idleTimeout = idleTimeout; @@ -116,7 +115,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Sets the hardTimeout field of V6FlowMod message - * @param hardTimeout hard timeout of the message + * @param hardTimeout hard timeout of the message */ public void setHardTimeout(short hardTimeout) { this.hardTimeout = hardTimeout; @@ -124,21 +123,21 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Returns the Flow Mod message subtype for V6FlowMod message - * @return message subtype + * @return message subtype */ private int getIPv6ExtensionFlowModAddSubType() { return IPV6EXT_ADD_FLOW_MSG_TYPE; } - + /** * Returns the minimum header size for V6Flow Message type - * @return minimum header size + * @return minimum header size */ public int getV6FlowModMinHdrSize() { return IPV6_EXT_MIN_HDR_LEN; } - + /** * Sets the Vendor type in OFVendor message */ @@ -146,7 +145,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { public void setVendor() { super.setVendor(V6StatsRequest.NICIRA_VENDOR_ID); } - + /** * Get flags * @return @@ -162,12 +161,12 @@ public class V6FlowMod extends OFVendor implements Cloneable { public void setFlags(short flags) { this.flags = flags; } - + /** * This method forms the Vendor extension IPv6 Flow Mod message.It uses the - * fields in V6FlowMod class, and writes the data according to vendor + * fields in V6FlowMod class, and writes the data according to vendor * extension format. The fields include flow properties (cookie, timeout, - * priority, etc), flow match, and action list. It also takes care of + * priority, etc), flow match, and action list. It also takes care of * required padding. */ @@ -209,7 +208,7 @@ public class V6FlowMod extends OFVendor implements Cloneable { /** * Forms the clone of V6FlowMod Object. If Object is returned - * successfully, then returns the cloned object. Throws an + * successfully, then returns the cloned object. Throws an * exception if cloning is not supported. */ @Override @@ -229,12 +228,15 @@ public class V6FlowMod extends OFVendor implements Cloneable { } } - /** - * Prints the contents of V6FlowMod in a string format. - */ @Override public String toString() { - return "V6FlowMod[" + ReflectionToStringBuilder.toString(this) + "]"; + return "V6FlowMod [match=" + match + ", cookie=" + cookie + + ", command=" + command + ", idleTimeout=" + idleTimeout + + ", hardTimeout=" + hardTimeout + ", priority=" + priority + + ", bufferId=" + bufferId + ", outPort=" + outPort + + ", flags=" + flags + ", actions=" + actions + ", match_len=" + + match_len + ", actions_len=" + actions_len + ", pad_size=" + + pad_size + "]"; } }