Revert "TS GUI does not show ToS field in flow stats" 70/6970/2
authorEd Warnicke <eaw@cisco.com>
Tue, 13 May 2014 16:29:07 +0000 (11:29 -0500)
committerEd Warnicke <eaw@cisco.com>
Thu, 15 May 2014 00:44:17 +0000 (19:44 -0500)
This reverts commit 7d7f86f108c85b5325f8bea5d3dbf60efca776ce.

Change-Id: I662df9f1548697ff27ba5d9093da98efccef5df1
Signed-off-by: Ed Warnicke <eaw@cisco.com>
opendaylight/web/troubleshoot/src/main/java/org/opendaylight/controller/troubleshoot/web/Troubleshoot.java
opendaylight/web/troubleshoot/src/main/resources/js/page.js

index 6d79f3cb05cc7faf2469e3144fb6be44d9d21e81..e46b89ac2afe3fa2f46604f5a7f3fde2298181b3 100644 (file)
@@ -62,7 +62,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
 public class Troubleshoot implements IDaylightWeb {
     private static final UserLevel AUTH_LEVEL = UserLevel.CONTAINERUSER;
     private static final List<String> flowStatsColumnNames = Arrays.asList("Node", "In Port",
-            "DL Src", "DL Dst", "DL Type", "DL Vlan", "NW Src", "NW Dst","ToS Bits",
+            "DL Src", "DL Dst", "DL Type", "DL Vlan", "NW Src", "NW Dst",
             "NW Proto", "TP Src", "TP Dst", "Actions", "Bytes", "Packets",
             "Time (s)", "Timeout (s)",
             "Priority");
@@ -229,7 +229,6 @@ public class Troubleshoot implements IDaylightWeb {
 
     private Map<String, String> convertPortsStatistics(
             NodeConnectorStatistics ncStats, String containerName) {
-
         Map<String, String> row = new HashMap<String, String>();
 
         ISwitchManager switchManager = (ISwitchManager) ServiceHelper
@@ -326,12 +325,6 @@ public class Troubleshoot implements IDaylightWeb {
         } else {
             row.put(MatchType.NW_DST.id(), "*");
         }
-        if (match.isPresent(MatchType.NW_TOS)) {
-            row.put(MatchType.NW_TOS.id(), ((Byte) flow.getMatch()
-                        .getField(MatchType.NW_TOS).getValue()).toString());
-        } else {
-            row.put(MatchType.NW_TOS.id(), "*");
-        }
         if (match.isPresent(MatchType.NW_PROTO)) {
             row.put(MatchType.NW_PROTO.id(),
                     IPProtocols.getProtocolName(((Byte) flow.getMatch()
index 4b5e51a0718377e449c799dd807cc2cf798992ec..a8673b0031d7246bedcfb3285a90519694b48efb 100644 (file)
@@ -373,11 +373,6 @@ one.f.troubleshooting.existingNodes = {
                             label: 'NW Dst',
                             sortable: true
                         },
-                        {
-                            property: 'nwTOS',
-                            label: 'ToS Bits',
-                            sortable: true
-                        },
                         {
                             property: 'nwProto',
                             label: 'NW Proto',
@@ -442,7 +437,6 @@ 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"]);