mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-25 06:11:05 +02:00
Adding "id" to the link messages to the GUI.
Change-Id: I4ce4b7e4a643307cb05ead6c544a8531d516af4e
This commit is contained in:
parent
690e5f6286
commit
70c16adc2b
@ -352,6 +352,7 @@ public class TopologyWebSocket implements WebSocket.OnTextMessage {
|
|||||||
private ObjectNode linkMessage(LinkEvent event) {
|
private ObjectNode linkMessage(LinkEvent event) {
|
||||||
Link link = event.subject();
|
Link link = event.subject();
|
||||||
ObjectNode payload = mapper.createObjectNode()
|
ObjectNode payload = mapper.createObjectNode()
|
||||||
|
.put("id", compactLinkString(link))
|
||||||
.put("type", link.type().toString().toLowerCase())
|
.put("type", link.type().toString().toLowerCase())
|
||||||
.put("linkWidth", 2)
|
.put("linkWidth", 2)
|
||||||
.put("src", link.src().deviceId().toString())
|
.put("src", link.src().deviceId().toString())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user