X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fweb%2Fdevices%2Fsrc%2Fmain%2Fresources%2Fjs%2Fpage.js;h=b90e5cbfa03c786e504a78f0ce8a0a003a09d8ce;hp=048c9e993eaecc9d17a96541f39f1591bdccd25d;hb=9822a34fdd144aeb9932492e1605715eb472ecad;hpb=5e20076e352bae1f6b0bd0f8ac8f7c85235e4b27 diff --git a/opendaylight/web/devices/src/main/resources/js/page.js b/opendaylight/web/devices/src/main/resources/js/page.js index 048c9e993e..b90e5cbfa0 100644 --- a/opendaylight/web/devices/src/main/resources/js/page.js +++ b/opendaylight/web/devices/src/main/resources/js/page.js @@ -351,7 +351,7 @@ one.f.switchmanager.nodesLearnt = { }, { property: 'mac', - label: 'Mac', + label: 'MAC', sortable: true }, { @@ -714,7 +714,7 @@ one.f.switchmanager.subnetGatewayConfig = { sortable: true }, { - property: 'json', + property: 'nodePorts', label: 'Node/Ports', sortable: false } @@ -723,19 +723,20 @@ one.f.switchmanager.subnetGatewayConfig = { formatter: function(items) { $.each(items, function(index, tableRow) { tableRow["selector"] = ''; - var json = tableRow["json"]; - var subnetConfigObject = JSON.parse(json); + var json = tableRow["nodePorts"]; + var nodePorts = JSON.parse(json); var nodePortHtml = "
"; - $.each(subnetConfigObject.nodePorts, function(index, nodePort) { - nodePortHtml += nodePort; + $.each(nodePorts, function(index, nodePort) { + var nodePortID = nodePort["nodeId"] + "/" + nodePort["nodePortId"]; + nodePortHtml += nodePort["nodeName"] + " / " + nodePort["nodePortName"]; nodePortHtml += " "; - nodePortHtml += 'Delete'; nodePortHtml += "
"; }); nodePortHtml += "
"; - tableRow["json"] = nodePortHtml; + tableRow["nodePorts"] = nodePortHtml; }); },