Skip to content
Snippets Groups Projects
Commit bc3227f0 authored by Rob Adams's avatar Rob Adams
Browse files

Add @JsonIgore to length fields for OF statistics replies

parent f759b907
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
package org.openflow.protocol.statistics; package org.openflow.protocol.statistics;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffer;
/** /**
...@@ -72,6 +73,7 @@ public class OFAggregateStatisticsReply implements OFStatistics { ...@@ -72,6 +73,7 @@ public class OFAggregateStatisticsReply implements OFStatistics {
} }
@Override @Override
@JsonIgnore
public int getLength() { public int getLength() {
return 24; return 24;
} }
......
...@@ -19,6 +19,7 @@ package org.openflow.protocol.statistics; ...@@ -19,6 +19,7 @@ package org.openflow.protocol.statistics;
import java.util.List; import java.util.List;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffer;
import org.openflow.protocol.OFMatch; import org.openflow.protocol.OFMatch;
import org.openflow.protocol.action.OFAction; import org.openflow.protocol.action.OFAction;
...@@ -195,6 +196,7 @@ public class OFFlowStatisticsReply implements OFStatistics, OFActionFactoryAware ...@@ -195,6 +196,7 @@ public class OFFlowStatisticsReply implements OFStatistics, OFActionFactoryAware
} }
@Override @Override
@JsonIgnore
public int getLength() { public int getLength() {
return U16.f(length); return U16.f(length);
} }
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
package org.openflow.protocol.statistics; package org.openflow.protocol.statistics;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffer;
/** /**
...@@ -222,6 +223,7 @@ public class OFPortStatisticsReply implements OFStatistics { ...@@ -222,6 +223,7 @@ public class OFPortStatisticsReply implements OFStatistics {
} }
@Override @Override
@JsonIgnore
public int getLength() { public int getLength() {
return 104; return 104;
} }
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
package org.openflow.protocol.statistics; package org.openflow.protocol.statistics;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffer;
/** /**
...@@ -102,6 +103,7 @@ public class OFQueueStatisticsReply implements OFStatistics { ...@@ -102,6 +103,7 @@ public class OFQueueStatisticsReply implements OFStatistics {
} }
@Override @Override
@JsonIgnore
public int getLength() { public int getLength() {
return 32; return 32;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment