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.onap.so.openstack.beans;
24 import java.io.Serializable;
25 import java.util.List;
26 import org.onap.so.entity.MsoRequest;
27 import com.fasterxml.jackson.annotation.JsonInclude;
28 import com.fasterxml.jackson.annotation.JsonInclude.Include;
31 * Javabean representing the rollback criteria following a "Create Network" or "Update Network" operation. This
32 * structure can be passed back to the "Rollback Network" operation to undo the effects of the create/update.
34 * Once a network is created, the only possible update through MSO is to the set of VLANs supported by the network. The
35 * vlans attribute of the rollback object contains the previous VLANs before update.
39 @JsonInclude(Include.NON_EMPTY)
40 public class NetworkRollback implements Serializable {
44 private static final long serialVersionUID = 11949663223019185L;
45 private String networkId;
46 private String neutronNetworkId;
47 private String networkStackId;
48 private String tenantId;
49 private String cloudId;
50 private String networkType;
51 private String modelCustomizationUuid;
52 private boolean networkCreated = false;
53 // Previous values for updates
54 private String networkName = null;
55 private String physicalNetwork = null;
56 private List<Integer> vlans = null;
57 private MsoRequest msoRequest;
59 public String getNetworkId() {
63 public void setNetworkId(String networkId) {
64 this.networkId = networkId;
67 public String getNeutronNetworkId() {
68 return neutronNetworkId;
71 public void setNeutronNetworkId(String neutronNetworkId) {
72 this.neutronNetworkId = neutronNetworkId;
75 public String getNetworkStackId() {
76 return networkStackId;
79 public void setNetworkStackId(String networkStackId) {
80 this.networkStackId = networkStackId;
83 public String getTenantId() {
87 public void setTenantId(String tenantId) {
88 this.tenantId = tenantId;
91 public String getCloudId() {
95 public void setCloudId(String cloudId) {
96 this.cloudId = cloudId;
99 public String getNetworkType() {
103 public void setNetworkType(String networkType) {
104 this.networkType = networkType;
107 public String getModelCustomizationUuid() {
108 return this.modelCustomizationUuid;
111 public void setModelCustomizationUuid(String modelCustomizationUuid) {
112 this.modelCustomizationUuid = modelCustomizationUuid;
115 public boolean getNetworkCreated() {
116 return networkCreated;
119 public void setNetworkCreated(boolean networkCreated) {
120 this.networkCreated = networkCreated;
123 public String getNetworkName() {
127 public void setNetworkName(String networkName) {
128 this.networkName = networkName;
131 public String getPhysicalNetwork() {
132 return physicalNetwork;
135 public void setPhysicalNetwork(String physicalNetwork) {
136 this.physicalNetwork = physicalNetwork;
139 public List<Integer> getVlans() {
143 public void setVlans(List<Integer> vlans) {
147 public MsoRequest getMsoRequest() {
151 public void setMsoRequest(MsoRequest msoRequest) {
152 this.msoRequest = msoRequest;
156 public String toString() {
157 return "NetworkRollback [networkId=" + networkId + ", neutronNetworkId=" + neutronNetworkId
158 + ", networkStackId=" + networkStackId + ", tenantId=" + tenantId + ", cloudId=" + cloudId
159 + ", networkType=" + networkType + ", networkCreated=" + networkCreated + ", networkName=" + networkName
160 + ", physicalNetwork=" + physicalNetwork + "]";