Merge "User Manager to hash users passwords"
authorGiovanni Meo <gmeo@cisco.com>
Mon, 16 Sep 2013 07:26:44 +0000 (07:26 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 16 Sep 2013 07:26:44 +0000 (07:26 +0000)
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/SecureMessageReadWriteService.java
opendaylight/sal/yang-prototype/sal/model/model-flow-base/src/main/yang/flow-types.yang
opendaylight/web/flows/src/main/java/org/opendaylight/controller/flows/web/Flows.java
opendaylight/web/flows/src/main/resources/js/page.js

index bb4defcecab81bd3f3bdb737b231adfa786981ef..1a9dfdad95d94ea00ad733de6cca8987ced0b535 100644 (file)
@@ -63,6 +63,7 @@ public class SecureMessageReadWriteService implements IMessageReadWrite {
             createSecureChannel(socket);
             createBuffers(sslEngine);
         } catch (Exception e) {
+            logger.warn("Failed to setup TLS connection {} {}", socket, e);
             stop();
             throw e;
         }
index ed92bf499a09061f86f43ff56ac358facdc77a22..cd364b5402425fe63cc7c35bb78fed79b6a519ac 100644 (file)
@@ -76,6 +76,21 @@ module opendaylight-flow-types {
             }
             uses action;
         }
+        leaf priority {
+            type uint16;
+        }
+        
+        leaf idle-timeout {
+            type uint16;
+        }
+        
+        leaf hard-timeout {
+            type uint16;
+        }
+        
+        leaf cookie {
+            type uint64;
+        }
     }
 
     grouping flow-statistics {
index a96d3efcec698d80a243969fd2c1c3df9ee1e2cf..4cd71a37640ba2f303c04570eb9549c845a82816 100644 (file)
@@ -52,8 +52,11 @@ public class Flows implements IDaylightWeb {
     private static final String WEB_ID = "flows";
     private static final short WEB_ORDER = 2;
 
+    private final Gson gson;
+
     public Flows() {
         ServiceHelper.registerGlobalService(IDaylightWeb.class, this, null);
+        gson = new Gson();
     }
 
     @Override
@@ -246,8 +249,8 @@ public class Flows implements IDaylightWeb {
             return null;
         }
 
-        Gson gson = new Gson();
         FlowConfig flow = gson.fromJson(body, FlowConfig.class);
+
         Node node = Node.fromString(nodeId);
         flow.setNode(node);
         Status result = new Status(StatusCode.BADREQUEST, "Invalid request");
@@ -332,7 +335,6 @@ public class Flows implements IDaylightWeb {
             return "Forwarding Rules Manager is not available";
         }
 
-        Gson gson = new Gson();
         List<Map<String, String>> flowList = new ArrayList<Map<String, String>>();
         flowList = gson.fromJson(body, flowList.getClass());
         Status result = new Status(StatusCode.BADREQUEST, "Invalid request");
index 8bc2a9937809491816023d38169af95822d8cba7..f3bbf7559b142b0375ea35e8d3f9c052152d284a 100644 (file)
@@ -420,9 +420,9 @@ one.f.flows = {
         var flows = one.f.flows.registry.flows;
         var flow;
         $(flows).each(function(index, value) {
-            if (value['name'] == id) {
-                flow = value;
-            }
+          if (value.name == id && value.nodeId == node) {
+            flow = value;
+          }
         });
         if (one.f.flows.registry.privilege === 'WRITE') {
             // remove button
@@ -1313,10 +1313,10 @@ one.f.flows = {
                     data: data.flows,
                     formatter: function(items) {
                         $.each(items, function(index, item) {
-                                    var $checkbox = document.createElement("input");
+                            var $checkbox = document.createElement("input");
                             $checkbox.setAttribute("type", "checkbox");
                             $checkbox.setAttribute("name", item.name);
-                            $checkbox.setAttribute("node", item.node);
+                            $checkbox.setAttribute("node", item.nodeId);
                             $checkbox.setAttribute('class','flowEntry')
                             item.selector = $checkbox.outerHTML;
                                   item["name"] = '<span data-installInHw=' + item["flow"]["installInHw"] + 
@@ -1420,4 +1420,4 @@ $('.dash .nav a', '#main').click(function() {
 // activate first tab on each dashlet
 $('.dash .nav').each(function(index, value) {
     $($(value).find('li')[0]).find('a').click();
-});
\ No newline at end of file
+});