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;
24 import java.util.List;
26 import org.openecomp.mso.entity.MsoRequest;
29 * Javabean representing the rollback criteria following a "Create Network"
30 * or "Update Network" operation. This structure can be passed back to the
31 * "Rollback Network" operation to undo the effects of the create/update.
33 * Once a network is created, the only possible update through MSO is to
34 * the set of VLANs supported by the network. The vlans attribute of the
35 * rollback object contains the previous VLANs before update.
39 public class NetworkRollback {
40 private String networkId;
41 private String neutronNetworkId;
42 private String networkStackId;
43 private String tenantId;
44 private String cloudId;
45 private String networkType;
46 private boolean networkCreated = false;
47 // Previous values for updates
48 private String networkName = null;
49 private String physicalNetwork = null;
50 private List<Integer> vlans = null;
51 private MsoRequest msoRequest;
53 public String getNetworkId() {
56 public void setNetworkId(String networkId) {
57 this.networkId = networkId;
60 public String getNeutronNetworkId() {
61 return neutronNetworkId;
63 public void setNeutronNetworkId(String neutronNetworkId) {
64 this.neutronNetworkId = neutronNetworkId;
67 public String getNetworkStackId() {
68 return networkStackId;
70 public void setNetworkStackId(String networkStackId) {
71 this.networkStackId = networkStackId;
73 public String getTenantId() {
76 public void setTenantId(String tenantId) {
77 this.tenantId = tenantId;
80 public String getCloudId() {
83 public void setCloudId(String cloudId) {
84 this.cloudId = cloudId;
87 public String getNetworkType() {
90 public void setNetworkType(String networkType) {
91 this.networkType = networkType;
94 public boolean getNetworkCreated() {
95 return networkCreated;
97 public void setNetworkCreated(boolean networkCreated) {
98 this.networkCreated = networkCreated;
101 public String getNetworkName() {
104 public void setNetworkName(String networkName) {
105 this.networkName = networkName;
108 public String getPhysicalNetwork() {
109 return physicalNetwork;
111 public void setPhysicalNetwork(String physicalNetwork) {
112 this.physicalNetwork = physicalNetwork;
115 public List<Integer> getVlans () {
118 public void setVlans (List<Integer> vlans) {
122 public MsoRequest getMsoRequest() {
125 public void setMsoRequest (MsoRequest msoRequest) {
126 this.msoRequest = msoRequest;
130 public String toString() {
131 return "NetworkRollback [networkId=" + networkId
132 + ", neutronNetworkId=" + neutronNetworkId + ", networkStackId="
133 + networkStackId + ", tenantId=" + tenantId + ", cloudId="
134 + cloudId + ", networkType=" + networkType
135 + ", networkCreated=" + networkCreated + ", networkName=" + networkName
136 + ", physicalNetwork=" + physicalNetwork + "]";