X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fhosttracker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fhosttracker%2Fnorthbound%2FHostTrackerNorthbound.java;h=74c13d11f129943ba45e449411adfbc9f09d41e3;hp=836bfa2d60fdd59b62e14d8d8a2c2d9fd247e898;hb=caee336f062eba4909ba53cbaccdde0714236134;hpb=56b0413f04a5bac58ce3448372c24d54736d7382 diff --git a/opendaylight/northbound/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/northbound/HostTrackerNorthbound.java b/opendaylight/northbound/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/northbound/HostTrackerNorthbound.java index 836bfa2d60..74c13d11f1 100644 --- a/opendaylight/northbound/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/northbound/HostTrackerNorthbound.java +++ b/opendaylight/northbound/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/northbound/HostTrackerNorthbound.java @@ -26,7 +26,6 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.SecurityContext; import javax.ws.rs.core.UriInfo; -import javax.xml.bind.JAXBElement; import org.codehaus.enunciate.jaxrs.ResponseCode; import org.codehaus.enunciate.jaxrs.StatusCodes; @@ -131,11 +130,10 @@ public class HostTrackerNorthbound { * * Example: * - * RequestURL: - * + * Request URL: * http://localhost:8080/controller/nb/v2/hosttracker/default/hosts/active * - * Response in XML + * Response body in XML * * <list> * <hostConfig> @@ -160,7 +158,7 @@ public class HostTrackerNorthbound { * </hostConfig> * </list> * - * Response in JSON: + * Response body in JSON: * * { * "hostConfig":[ @@ -218,11 +216,10 @@ public class HostTrackerNorthbound { * * Example: * - * RequestURL: - * + * Request URL: * http://localhost:8080/controller/nb/v2/hosttracker/default/hosts/inactive * - * Response in XML + * Response body in XML * * <list> * <hostConfig> @@ -247,7 +244,7 @@ public class HostTrackerNorthbound { * </hostConfig> * </list> * - * Response in JSON: + * Response body in JSON: * * { * "hostConfig":[ @@ -306,11 +303,10 @@ public class HostTrackerNorthbound { * * Example: * - * RequestURL: - * + * Request URL: * http://localhost:8080/controller/nb/v2/hosttracker/default/address/1.1.1.1 * - * Response in XML + * Response body in XML * * <hostConfig> * <dataLayerAddress>00:00:00:00:01:01</dataLayerAddress> @@ -323,7 +319,7 @@ public class HostTrackerNorthbound { * <staticHost>false</staticHost> * </hostConfig> * - * Response in JSON: + * Response body in JSON: * * { * "dataLayerAddress":"00:00:00:00:01:01", @@ -386,11 +382,10 @@ public class HostTrackerNorthbound { * * Example: * - * RequestURL: - * + * Request URL: * http://localhost:8080/controller/nb/v2/hosttracker/default/address/1.1.1.1 * - * Request in XML + * Request body in XML * * <hostConfig> * <dataLayerAddress>00:00:00:00:01:01</dataLayerAddress> @@ -399,11 +394,11 @@ public class HostTrackerNorthbound { * <nodeId>00:00:00:00:00:00:00:01</nodeId> * <nodeConnectorType>OF</nodeConnectorType> * <nodeConnectorId>9</nodeConnectorId> - * <vlan>0</vlan> - * <staticHost>false</staticHost> + * <vlan>1</vlan> + * <staticHost>true</staticHost> * </hostConfig> * - * Request in JSON: + * Request body in JSON: * * { * "dataLayerAddress":"00:00:00:00:01:01", @@ -411,8 +406,8 @@ public class HostTrackerNorthbound { * "nodeId":"00:00:00:00:00:00:00:01", * "nodeConnectorType":"OF", * "nodeConnectorId":"9", - * "vlan":"0", - * "staticHost":"false", + * "vlan":"1", + * "staticHost":"true", * "networkAddress":"1.1.1.1" * } * @@ -472,6 +467,12 @@ public class HostTrackerNorthbound { * @param networkAddress * IP Address * @return Response as dictated by the HTTP Response code. + * + * Example: + * + * Request URL: + * http://localhost:8080/controller/nb/v2/hosttracker/default/address/1.1.1.1 + * */ @Path("/{containerName}/address/{networkAddress}")