Skip to content
Snippets Groups Projects
Commit 40e39e32 authored by abat's avatar abat
Browse files

Merge into master from pull request #128:

Add @JsonIgore to length fields for OF statistics replies (https://github.com/floodlight/floodlight/pull/128)
parents f759b907 bc3227f0
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
package org.openflow.protocol.statistics;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.netty.buffer.ChannelBuffer;
/**
......@@ -72,6 +73,7 @@ public class OFAggregateStatisticsReply implements OFStatistics {
}
@Override
@JsonIgnore
public int getLength() {
return 24;
}
......
......@@ -19,6 +19,7 @@ package org.openflow.protocol.statistics;
import java.util.List;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.netty.buffer.ChannelBuffer;
import org.openflow.protocol.OFMatch;
import org.openflow.protocol.action.OFAction;
......@@ -195,6 +196,7 @@ public class OFFlowStatisticsReply implements OFStatistics, OFActionFactoryAware
}
@Override
@JsonIgnore
public int getLength() {
return U16.f(length);
}
......
......@@ -18,6 +18,7 @@
package org.openflow.protocol.statistics;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.netty.buffer.ChannelBuffer;
/**
......@@ -222,6 +223,7 @@ public class OFPortStatisticsReply implements OFStatistics {
}
@Override
@JsonIgnore
public int getLength() {
return 104;
}
......
......@@ -18,6 +18,7 @@
package org.openflow.protocol.statistics;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.netty.buffer.ChannelBuffer;
/**
......@@ -102,6 +103,7 @@ public class OFQueueStatisticsReply implements OFStatistics {
}
@Override
@JsonIgnore
public int getLength() {
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