2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.mso.openstack.beans;
25 import java.util.List;
27 import javax.xml.bind.annotation.XmlTransient;
31 private String subnetName;
33 private String neutronId;
35 private String subnetId; // value from aai
37 private String cidr; //Only field required
39 private String gatewayIp="";
41 private String ipVersion="4";
43 private Boolean enableDHCP=false;
45 private Boolean addrFromStart=true;
47 private List<HostRoute> hostRoutes;
49 private List<Pool> allocationPools;
51 private List<String> dnsNameServers;
56 public String getSubnetName() {
60 public void setSubnetName(String subnetName) {
61 this.subnetName = subnetName;
64 public List<Pool> getAllocationPools() {
65 return allocationPools;
71 public String getCidr() {
76 * @return the dnsNames
78 public List<String> getDnsNameServers() {
79 return dnsNameServers;
83 public Boolean getEnableDHCP() {
87 public Boolean getAddrFromStart() {
91 public void setAddrFromStart(Boolean addrFromStart) {
92 this.addrFromStart = addrFromStart;
98 public String getGatewayIp() {
103 * @return the hostRoutes
105 public List<HostRoute> getHostRoutes() {
110 * @return the NeutronId
113 public String getNeutronId() {
118 * @return the ipversion
120 public String getIpVersion() {
127 public String getSubnetId() {
131 public void setAllocationPools(List<Pool> allocationPools) {
132 this.allocationPools = allocationPools;
139 public void setCidr(String cidr) {
145 * the dnsNames to set
147 public void setDnsNameServers(List<String> dnsNameServers) {
148 this.dnsNameServers = dnsNameServers;
153 * the enableDHCP to set
155 public void setEnableDHCP(Boolean enableDHCP) {
156 this.enableDHCP = enableDHCP;
163 public void setGatewayIp(String gatewayIp) {
164 this.gatewayIp = gatewayIp;
169 * the hostRoutes to set
171 public void setHostRoutes(List<HostRoute> hostRoutes) {
172 this.hostRoutes = hostRoutes;
179 public void setNeutronId(String neutronId) {
180 this.neutronId = neutronId;
185 * the ipversion to set
187 public void setIpVersion(String ipVersion) {
188 this.ipVersion = ipVersion;
195 public void setSubnetId(String subnetId) {
196 this.subnetId = subnetId;
200 public String toString() {
201 return "Subnet [subnetName=" + subnetName + ", neutronId=" + neutronId + ", subnetId=" + subnetId + ", cidr="
202 + cidr + ", gatewayIp=" + gatewayIp + ", ipVersion=" + ipVersion + ", enableDHCP=" + enableDHCP
203 + ", addrFromStart=" + addrFromStart + ", hostRoutes=" + hostRoutes + ", allocationPools="
204 + allocationPools + ", dnsNameServers=" + dnsNameServers + "]";