Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croft1
floodlight
Commits
0481a98f
Commit
0481a98f
authored
12 years ago
by
Saurav Das
Browse files
Options
Downloads
Patches
Plain Diff
Handling portnum correctly in portstats reply when serializing for json
in response to a rest call
parent
7a1dde42
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/openflow/protocol/statistics/OFPortStatisticsReply.java
+5
-1
5 additions, 1 deletion
...g/openflow/protocol/statistics/OFPortStatisticsReply.java
with
5 additions
and
1 deletion
src/main/java/org/openflow/protocol/statistics/OFPortStatisticsReply.java
+
5
−
1
View file @
0481a98f
/**
* Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior
* University
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
...
...
@@ -18,7 +18,10 @@
package
org.openflow.protocol.statistics
;
import
net.floodlightcontroller.core.web.serializers.UShortSerializer
;
import
org.codehaus.jackson.annotate.JsonIgnore
;
import
org.codehaus.jackson.map.annotate.JsonSerialize
;
import
org.jboss.netty.buffer.ChannelBuffer
;
/**
...
...
@@ -43,6 +46,7 @@ public class OFPortStatisticsReply implements OFStatistics {
/**
* @return the portNumber
*/
@JsonSerialize
(
using
=
UShortSerializer
.
class
)
public
short
getPortNumber
()
{
return
portNumber
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment