X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fweb%2Ftroubleshoot%2Fsrc%2Fmain%2Fresources%2Fjs%2Fpage.js;h=4bc4c76fc4c7edadf6f8e4994890a162044d76b7;hp=a8b6860d10926cce6c925131948626ce573e6dad;hb=7c5788de6364886747dc616940d5eddbbd615034;hpb=1b88ac1cf4cca6c7b5b371f3d11ef50e8dc9aacf diff --git a/opendaylight/web/troubleshoot/src/main/resources/js/page.js b/opendaylight/web/troubleshoot/src/main/resources/js/page.js index a8b6860d10..4bc4c76fc4 100644 --- a/opendaylight/web/troubleshoot/src/main/resources/js/page.js +++ b/opendaylight/web/troubleshoot/src/main/resources/js/page.js @@ -192,7 +192,7 @@ one.f.troubleshooting.existingNodes = { }, { property: 'nodeId', - label: 'Static Route', + label: 'Node ID', sortable: true }, { @@ -207,13 +207,26 @@ one.f.troubleshooting.existingNodes = { item["statistics"] = "Flows" + " Ports"; }); - }, delay: 0 }); return source; }, portsGrid: function(data) { + $.each(data.nodeData, function(index, item) { + item.rxPkts = one.lib.helper.parseInt(item.rxPkts); + item.txPkts = one.lib.helper.parseInt(item.txPkts); + item.rxBytes = one.lib.helper.parseInt(item.rxBytes); + item.txBytes = one.lib.helper.parseInt(item.txBytes); + item.rxDrops = one.lib.helper.parseInt(item.rxDrops); + item.txDrops = one.lib.helper.parseInt(item.txDrops); + item.rxErrors = one.lib.helper.parseInt(item.rxErrors); + item.txErrors = one.lib.helper.parseInt(item.txErrors); + item.rxFrameErrors = one.lib.helper.parseInt(item.rxFrameErrors); + item.rxOverRunErrors = one.lib.helper.parseInt(item.rxOverRunErrors); + item.rxCRCErrors = one.lib.helper.parseInt(item.rxCRCErrors); + item.collisions = one.lib.helper.parseInt(item.collisions); + }); var source = new StaticDataSource({ columns: [ { @@ -311,6 +324,13 @@ one.f.troubleshooting.existingNodes = { return result; }, flowsGrid: function(data) { + $.each(data.nodeData, function(index, item) { + item.byteCount = one.lib.helper.parseInt(item.byteCount); + item.packetCount = one.lib.helper.parseInt(item.packetCount); + item.durationSeconds = one.lib.helper.parseInt(item.durationSeconds); + item.idleTimeout = one.lib.helper.parseInt(item.idleTimeout); + item.priority = one.lib.helper.parseInt(item.priority); + }); var source = new StaticDataSource({ columns: [ { @@ -343,6 +363,11 @@ one.f.troubleshooting.existingNodes = { label: 'DL Vlan', sortable: true }, + { + property: 'dlVlanPriority', + label: 'Vlan PCP', + sortable: true + }, { property: 'nwSrc', label: 'NW Src', @@ -353,6 +378,11 @@ one.f.troubleshooting.existingNodes = { label: 'NW Dst', sortable: true }, + { + property: 'nwTOS', + label: 'ToS Bits', + sortable: true + }, { property: 'nwProto', label: 'NW Proto', @@ -417,6 +447,7 @@ one.f.troubleshooting.existingNodes = { entry.push(value["dlVlan"]); entry.push(value["nwSrc"]); entry.push(value["nwDst"]); + entry.push(value["nwTOS"]); entry.push(value["nwProto"]); entry.push(value["tpSrc"]); entry.push(value["tpDst"]);