Openflow 1.3

I found some bug in the current version when i test the restapi for Device and LinkDiscovery,

Solved
--------
1. Serializer for DPID
    - I modify the type of the dpid from long to DatapathId.
2. LLDP problem-1.
    - I use the "curl -s http://localhost:8080/wm/topology/links/json" to fetch the link's information but get empty result. I have  traced  the code and i think the problem is caused by that the flooldight don't send the correct OFActions  in the LLDP packet. 
3. LLDP problem-2.
    -  I found that there are error message on the function handlePacketIn  in LinkDiscoveryManager. That is caused by the incorrectly function call of pi.getInPort(). The PacketIn message won't has a field name "InPort" In the OpenFlow 1.3. Therefore, i use the OFPort to replace that.


Not yet
---------
1. I use the topology (tree,3) in mininet to perform my experiment, after executing the "pingall" on the mininet prompt. I use the command "curl -s http://127.0.0.1:8080/wm/device/?ipv4=10.0.0.2" to fetch the device information and in the reply messages. It shows that the host2 has 7 attachmentPoint and i think it should be only one, or does the meaning of attachmentPoint has changed in the Floodlight with OF 1.3 ?
2. I try to use the python to parse the json format from the controller, it shows a error message for the json format. I think that is caused by the vlan format "vlan":[0x0], the "0x0" can't be treat as a integer (hexadecimal), maybe we should use the string format or use the decimal ?
Do you have any idea?

Thanks.