Fix for bug 136 and bug 137. 33/2533/1
authorBaohua Yang <baohyang@cn.ibm.com>
Fri, 8 Nov 2013 04:16:09 +0000 (12:16 +0800)
committerBaohua Yang <baohyang@cn.ibm.com>
Fri, 8 Nov 2013 04:16:09 +0000 (12:16 +0800)
Change-Id: I3b8aa0006f2cd342e2ca87abf67cd964e8390f52
Signed-off-by: Baohua Yang <baohyang@cn.ibm.com>
opendaylight/northbound/hosttracker/enunciate.xml
opendaylight/northbound/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/northbound/HostTrackerNorthbound.java

index e0c7dcd2ac7a9e85bc293786b6fd8b1d606fa2cb..df56dbae360654b8252502c19ae3d433a6f5a854 100644 (file)
@@ -3,7 +3,7 @@
     xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
 
   <services>
-    <rest defaultRestSubcontext="/controller/nb/v2/host"/>
+    <rest defaultRestSubcontext="/controller/nb/v2/hosttracker"/>
   </services>
 
   <modules>
index 12a49f0996b2652123ce0eb810a5c685801dbf26..74c13d11f129943ba45e449411adfbc9f09d41e3 100644 (file)
@@ -394,8 +394,8 @@ public class HostTrackerNorthbound {
      * &#x20;&lt;nodeId&gt;00:00:00:00:00:00:00:01&lt;/nodeId&gt;
      * &#x20;&lt;nodeConnectorType&gt;OF&lt;/nodeConnectorType&gt;
      * &#x20;&lt;nodeConnectorId&gt;9&lt;/nodeConnectorId&gt;
-     * &#x20;&lt;vlan&gt;0&lt;/vlan&gt;
-     * &#x20;&lt;staticHost&gt;false&lt;/staticHost&gt;
+     * &#x20;&lt;vlan&gt;1&lt;/vlan&gt;
+     * &#x20;&lt;staticHost&gt;true&lt;/staticHost&gt;
      * &lt;/hostConfig&gt;
      *
      * Request body in JSON:
@@ -406,8 +406,8 @@ public class HostTrackerNorthbound {
      * &#x20;"nodeId":"00:00:00:00:00:00:00:01",
      * &#x20;"nodeConnectorType":"OF",
      * &#x20;"nodeConnectorId":"9",
-     * &#x20;"vlan":"0",
-     * &#x20;"staticHost":"false",
+     * &#x20;"vlan":"1",
+     * &#x20;"staticHost":"true",
      * &#x20;"networkAddress":"1.1.1.1"
      * }
      * </pre>