2 * Copyright 2016 RIFT.IO Inc
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * STANDARD_RIFT_IO_COPYRIGHT
21 * Created by onvelocity on 11/23/15.
26 export default class ClassifierConnectionPointRef {
33 return this.parent.model['member-vnf-index-ref'] + '/' + this.parent.model['vnfd-connection-point-ref'];
37 return this.vnfdConnectionPointName;
41 return this.parent.model['vnfd-id-ref'];
45 return this.parent.model['vnfd-id-ref'] = id;
49 return this.parent.model['member-vnf-index-ref'];
52 set vnfdIndex(index) {
53 return this.parent.model['member-vnf-index-ref'] = index;
56 get vnfdConnectionPointName() {
57 return this.parent.model['vnfd-connection-point-ref'];
60 set vnfdConnectionPointName(name) {
61 return this.parent.model['vnfd-connection-point-ref'] = name;
65 return this.parent.uiState.cpNumber;
69 this.parent.uiState.cpNumber = n;
73 return this.parent.uiState.vnfdRef;
77 this.parent.uiState.vnfdRef = n;
81 return this.parent.removeVnfdConnectionPointRef();