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 List<String> hostRoutes;
47 private List<Pool> allocationPools;
49 private List<String> dnsNameServers;
54 public String getSubnetName() {
58 public void setSubnetName(String subnetName) {
59 this.subnetName = subnetName;
62 public List<Pool> getAllocationPools() {
63 return allocationPools;
69 public String getCidr() {
74 * @return the dnsNames
76 public List<String> getDnsNameServers() {
77 return dnsNameServers;
81 public Boolean getEnableDHCP() {
88 public String getGatewayIp() {
93 * @return the hostRoutes
95 public List<String> getHostRoutes() {
100 * @return the NeutronId
103 public String getNeutronId() {
108 * @return the ipversion
110 public String getIpVersion() {
117 public String getSubnetId() {
121 public void setAllocationPools(List<Pool> allocationPools) {
122 this.allocationPools = allocationPools;
129 public void setCidr(String cidr) {
135 * the dnsNames to set
137 public void setDnsNameServers(List<String> dnsNameServers) {
138 this.dnsNameServers = dnsNameServers;
143 * the enableDHCP to set
145 public void setEnableDHCP(Boolean enableDHCP) {
146 this.enableDHCP = enableDHCP;
153 public void setGatewayIp(String gatewayIp) {
154 this.gatewayIp = gatewayIp;
159 * the hostRoutes to set
161 public void setHostRoutes(List<String> hostRoutes) {
162 this.hostRoutes = hostRoutes;
169 public void setNeutronId(String neutronId) {
170 this.neutronId = neutronId;
175 * the ipversion to set
177 public void setIpVersion(String ipVersion) {
178 this.ipVersion = ipVersion;
185 public void setSubnetId(String subnetId) {
186 this.subnetId = subnetId;
191 public String toString() {
192 return "Subnet [subnetName=" + subnetName + ", neutronId=" + neutronId
193 + ", subnetId=" + subnetId + ", cidr=" + cidr + ", gatewayIp="
194 + gatewayIp + ", ipVersion=" + ipVersion + ", enableDHCP="
195 + enableDHCP + ", hostRoutes=" + hostRoutes
196 + ", allocationPools=" + allocationPools + ", dnsNameServers="
197 + dnsNameServers + "]";