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=95331a212110bc3ae27553222eb9c48940464e37;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/models/NSDModel.ts b/src/models/NSDModel.ts index 95331a2..48e7387 100644 --- a/src/models/NSDModel.ts +++ b/src/models/NSDModel.ts @@ -18,38 +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 */ @@ -58,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; @@ -109,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 { @@ -166,3 +135,50 @@ export interface NSICREATEPARAMS { 'netslice-vld': string; ssh_keys: string[]; } + +/** Interface for the VDU Primitive Levels */ +export interface VDUPRIMITIVELEVEL { + id: string; + name: string; + 'vdu-configuration': {}; +} + +/** Interface for the KDU Primitive Levels */ +export interface KDUPRIMITIVELEVEL { + name: string; + '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[]; +}