Skip to content
Snippets Groups Projects
Commit 2270a2ec authored by Vishnu Emmadi's avatar Vishnu Emmadi
Browse files

display dpid as HexString in SwitchPort

parent c9804a84
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@
package net.floodlightcontroller.devicemanager;
import org.openflow.util.HexString;
import net.floodlightcontroller.core.web.serializers.DPIDSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
......@@ -130,8 +132,8 @@ public class SwitchPort {
@Override
public String toString() {
return "SwitchPort [switchDPID=" + switchDPID + ", port=" + port
+ ", errorStatus=" + errorStatus + "]";
return "SwitchPort [switchDPID=" + HexString.toHexString(switchDPID) +
", port=" + port + ", errorStatus=" + errorStatus + "]";
}
}
\ No newline at end of file
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