2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2019 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.vid.model;
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import org.onap.sdc.toscaparser.api.RequirementAssignments;
26 import java.util.List;
28 public class PortMirroringConfig extends Node {
30 /** The model customization name. */
31 private String modelCustomizationName;
33 /** The port miroring requirements for source/collector */
35 private RequirementAssignments requirementAssignments;
37 private List<String> sourceNodes;
39 private List<String> collectorNodes;
41 private boolean configurationByPolicy;
43 public PortMirroringConfig() {
45 this.configurationByPolicy = false;
48 public String getModelCustomizationName() {
49 return modelCustomizationName;
52 public void setModelCustomizationName(String modelCustomizationName) {
53 this.modelCustomizationName = modelCustomizationName;
56 public RequirementAssignments getRequirementAssignments() {
57 return requirementAssignments;
60 public void setRequirementAssignments(RequirementAssignments requirementAssignments) {
61 this.requirementAssignments = requirementAssignments;
64 public List<String> getSourceNodes() {
68 public void setSourceNodes(List<String> sourceNodes) {
69 this.sourceNodes = sourceNodes;
72 public List<String> getCollectorNodes() {
73 return collectorNodes;
76 public void setCollectorNodes(List<String> collectorNodes) {
77 this.collectorNodes = collectorNodes;
80 public void setConfigurationByPolicy(boolean configurationByPolicy) {
81 this.configurationByPolicy = configurationByPolicy;
84 public boolean isConfigurationByPolicy() {
85 return configurationByPolicy;