X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fmodels%2FNSDModel.ts;h=48e7387269bfe4a16faf33b25e308791bd029ae1;hb=refs%2Fchanges%2F65%2F10565%2F9;hp=354ccde5c0b5ad3ba3e2c26e2cbcc37c62b18a63;hpb=79971eb04102e22baa15da92888bed74899e7d90;p=osm%2FNG-UI.git diff --git a/src/models/NSDModel.ts b/src/models/NSDModel.ts index 354ccde..48e7387 100644 --- a/src/models/NSDModel.ts +++ b/src/models/NSDModel.ts @@ -18,39 +18,36 @@ /** * @file Model for NSD related information. */ - +// tslint:disable: completed-docs import { VNFDAdminDetails } from './VNFDModel'; /** Interface for NSData */ export interface NSData { - shortName?: string; - identifier: string; - description: string; - vendor?: string; + id?: string; + identifier?: string; + description?: string; version: string; - page?: string; name?: string; - projectName?: string; - userName?: string; - username?: string; + designer?: string; } /** Interface for the nscompose descriptors content */ export interface NSDDetails { 'connection-point': CONNECTIONPOINT[]; - 'constituent-vnfd': CONSTITUENTVNFD[]; description: string; id: string; logo: string; name: string; - 'short-name': string; - vendor: string; version: string; vld: VLD[]; _admin: VNFDAdminDetails; _id: string; _links?: string; 'constituent-vnfr-ref': string[]; + 'virtual-link-desc': VLD[]; + df: DF[]; + 'vnfd-id': string[]; + designer?: string; } /** Interface for the connection-point */ @@ -59,36 +56,19 @@ export interface CONNECTIONPOINT { 'vld-id-ref': string; } -/** Interface for the constituent-vnfd */ -export interface CONSTITUENTVNFD { - 'member-vnf-index': number; - 'vnfd-id-ref': string; -} - /** Interface for the vld */ export interface VLD { id: string; - 'mgmt-network': boolean; - name: string; - 'short-name'?: string; - 'type': string; - 'vnfd-connection-point-ref'?: VNFDCONNECTIONPOINTREF[]; - 'vim-network-name': string; + 'mgmt-network'?: boolean; } -/** Interface for VNFDCONNECTIONPOINTREF */ -export interface VNFDCONNECTIONPOINTREF { - 'member-vnf-index-ref': number; - 'vnfd-connection-point-ref': string; - 'vnfd-id-ref': string; -} /** Interface Nodes Creation */ export interface COMPOSERNODES { id: string; reflexive: Boolean; 'type': string; name?: string; - nodeIndex?: number; + nodeIndex?: string; selectorId?: string; x?: number; y?: number; @@ -110,20 +90,8 @@ export interface TickPath { y: number; id: string; 'type'?: string; -} - -/** Interface for the NSD */ -interface NSD { - 'constituent-vnfd': CONSTITUENTVNFD[]; - description: string; - id: string; - name: string; - 'short-name': string; - vendor: string; - version: string; - vld: VLD[]; - _admin: VNFDAdminDetails; - _id: string; + name?: string; + nodeIndex?: string; } /** Interface for the GRAPHDETAILS */ export interface GRAPHDETAILS { @@ -181,3 +149,36 @@ export interface KDUPRIMITIVELEVEL { 'juju-bundle': string; 'kdu-configuration': {}; } + +/** Interface for the DF */ +export interface DF { + id: string; + 'vnf-profile': VNFPROFILE[]; +} + +/** Interface for the DF */ +export interface VNFPROFILE { + id: string; + 'virtual-link-connectivity': VLC[]; + 'vnfd-id': string; +} + +/** Interface for the VLC */ +export interface VLC { + 'constituent-cpd-id': CCI[]; + 'virtual-link-profile-id': string; +} + +/** Interface for the CCI */ +export interface CCI { + 'constituent-base-element-id': string; + 'constituent-cpd-id': string; +} +/** Interface for NSDATACREATION */ +export interface NSDATACREATION { + nsd: NSDETAILDATA; +} +/** Interface for NSDETAILDATA */ +export interface NSDETAILDATA { + nsd: NSDDetails[]; +}