X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Flibraries%2Fmodel%2Fdescriptors%2FNetworkService.js;h=9a27b456f305da40d5059d75810629f8cc3fe28a;hp=b10fcebf6a613a2d0c5866659172e87bb5262591;hb=refs%2Fchanges%2F79%2F5479%2F2;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/plugins/composer/src/src/libraries/model/descriptors/NetworkService.js b/skyquake/plugins/composer/src/src/libraries/model/descriptors/NetworkService.js index b10fcebf6..9a27b456f 100644 --- a/skyquake/plugins/composer/src/src/libraries/model/descriptors/NetworkService.js +++ b/skyquake/plugins/composer/src/src/libraries/model/descriptors/NetworkService.js @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,6 +24,7 @@ import ColorGroups from '../../ColorGroups' import DescriptorModel from '../DescriptorModel' import ForwardingGraph from './ForwardingGraph' +import VirtualNetworkFunctionAccessPointMap from './VirtualNetworkFunctionAccessPointMap' import VirtualLink from './VirtualLink' import ConstituentVnfd from './ConstituentVnfd' import PhysicalNetworkFunction from './PhysicalNetworkFunction' @@ -129,6 +130,45 @@ export default class NetworkService extends DescriptorModel { } +// <<<<<<< Updated upstream +// get configParameterMap() { +// if (!this.model['config-parameter-map']) { +// this.model['config-parameter-map'] = []; +// } +// return this.model['config-parameter-map'].map(d => DescriptorModelFactory.newVirtualNetworkFunctionAccessPointMap(d, this)).map((fg, i) => { +// return fg; +// }); +// } + +// set configParameterMap(obj) { +// const onVirtualNetworkFunctionAccessPointMap = (fg) => { + +// }; +// this.updateModelList('config-parameter-map', obj, VirtualNetworkFunctionAccessPointMap, onVirtualNetworkFunctionAccessPointMap); +// } + +// createConfigParameterMap(model) { +// model = model || DescriptorModelMetaFactory.createModelInstanceForType('nsd.config-parameter-map'); +// return this.configParameterMap = DescriptorModelFactory.newVirtualNetworkFunctionAccessPointMap(model, this); +// } +// ======= + get configParameterMap() { + if (!this.model['config-parameter-map']) { + this.model['config-parameter-map'] = []; + } + return this.model['config-parameter-map'].map(d => DescriptorModelFactory.newVirtualNetworkFunctionAccessPointMap(d, this)) + } + + set configParameterMap(obj) { + this.updateModelList('config-parameter-map', obj, VirtualNetworkFunctionAccessPointMap); + } + + createConfigParameterMap() { + const model = DescriptorModelMetaFactory.createModelInstanceForType('nsd.config-parameter-map'); + return this.configParameterMap = DescriptorModelFactory.newVirtualNetworkFunctionAccessPointMap(model, this); + } +// >>>>>>> Stashed changes + get vnffgd() { if (!this.model.vnffgd) { this.model.vnffgd = []; @@ -159,6 +199,7 @@ export default class NetworkService extends DescriptorModel { } + // NOTE temporarily disable NSD connection points // https://trello.com/c/crVgg2A1/88-do-not-render-nsd-connection-in-the-composer //get connectionPoint() {