diff options
Diffstat (limited to 'quantum-model/src/main/java')
-rw-r--r-- | quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routes.java | 59 | ||||
-rw-r--r-- | quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnet.java | 6 |
2 files changed, 62 insertions, 3 deletions
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routes.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routes.java new file mode 100644 index 0000000..4a93253 --- /dev/null +++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routes.java @@ -0,0 +1,59 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package com.woorea.openstack.quantum.model; + +import java.io.Serializable; + +public class Routes implements Serializable { + + private String destination; + private String nexthop; + + /** + * @return the destination + */ + public String getDestination() { + return destination; + } + + /** + * @param destination the destination to set + */ + public void setDestination(String destination) { + this.destination = destination; + } + + /** + * @return the nexthop + */ + public String getNexthop() { + return nexthop; + } + + /** + * @param nexthop the nexthop to set + */ + public void setNexthop(String nexthop) { + this.nexthop = nexthop; + } + + @Override + public String toString() { + return "host_routes [destination=" + destination + ", nexthop=" + nexthop + "]"; + } + +} diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnet.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnet.java index f47f25d..38485a3 100644 --- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnet.java +++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnet.java @@ -53,7 +53,7 @@ public class Subnet implements Serializable { private List<Pool> list; @JsonProperty("host_routes") - private List<String> hostRoutes; + private List<Routes> hostRoutes; @JsonProperty("service_types") private List<String> serviceTypes; @@ -202,14 +202,14 @@ public class Subnet implements Serializable { /** * @return the hostRoutes */ - public List<String> getHostRoutes() { + public List<Routes> getHostRoutes() { return hostRoutes; } /** * @param hostRoutes the hostRoutes to set */ - public void setHostRoutes(List<String> hostRoutes) { + public void setHostRoutes(List<Routes> hostRoutes) { this.hostRoutes = hostRoutes; } |