Fixed openflow uri to be openflow:# instead of openflow://# 14/2614/2
authorEd Warnicke <eaw@cisco.com>
Mon, 11 Nov 2013 15:56:51 +0000 (09:56 -0600)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 13 Nov 2013 09:30:03 +0000 (09:30 +0000)
The reason for this is a bug in the JAXRS spec where it
doesn't correctly handle escaped / characters:

https://java.net/jira/browse/JAX_RS_SPEC-70

Signed-off-by: Ed Warnicke <eaw@cisco.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/SalRegistrationManager.java

index 8851a16c01080948eaff1638c76906f9e0682173..c8694858ab2c838a3a437c03ffb7c3912da1595d 100644 (file)
@@ -103,7 +103,7 @@ public class SalRegistrationManager implements SessionListener, SwitchInventory
     public static NodeId nodeIdFromDatapathId(BigInteger datapathId) {
         // FIXME: Convert to textual representation of datapathID
         String current = datapathId.toString();
-        return new NodeId("openflow://" + current);
+        return new NodeId("openflow:" + current);
     }
 
     public SessionManager getSessionManager() {