| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 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 |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 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. |
| 15 | |
| 16 | Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| 17 | */ |
| 18 | /** |
| 19 | * @file Model for VNF Instance related information. |
| 20 | */ |
| 21 | |
| 22 | /** Interface for VNFInstanceDetails */ |
| 23 | export interface VNFInstanceDetails { |
| 24 | id: string; |
| 25 | 'ip-address': string; |
| 26 | 'vnfd-id': string; |
| 27 | 'created-time': string; |
| 28 | 'vim-account-id': string; |
| 29 | vdur: VDUR[]; |
| 30 | 'vnfd-ref': string; |
| 31 | 'member-vnf-index-ref': string; |
| 32 | _id: string; |
| 33 | additionalParamsForVnf: string; |
| 34 | _admin: Admin; |
| 35 | 'connection-point': ConnectionPoint[]; |
| 36 | 'nsr-id-ref': string; |
| 37 | } |
| 38 | |
| 39 | /** Interface for VDUR */ |
| 40 | interface VDUR { |
| 41 | 'ip-address': string; |
| 42 | 'vim-id': string; |
| 43 | 'internal-connection-point': string[]; |
| 44 | name: string; |
| 45 | 'vdu-id-ref': string; |
| 46 | 'status-detailed': string; |
| 47 | 'count-index': number; |
| 48 | interfaces: VDURInterface[]; |
| 49 | _id: string; |
| 50 | status: string; |
| 51 | } |
| 52 | |
| 53 | /** Interface for VDURInterface */ |
| 54 | interface VDURInterface { |
| 55 | 'mac-address': string; |
| 56 | name: string; |
| 57 | 'ns-vld-id': string; |
| 58 | 'mgmt-vnf': string; |
| 59 | 'ip-address': string; |
| 60 | } |
| 61 | |
| 62 | /** Interface for _Admin */ |
| 63 | interface Admin { |
| 64 | created: number; |
| 65 | projects_read: string[]; |
| 66 | modified: string; |
| 67 | projects_write: string[]; |
| 68 | } |
| 69 | |
| 70 | /** Interface for ConnectionPoint */ |
| 71 | interface ConnectionPoint { |
| 72 | id: string; |
| 73 | name: string; |
| 74 | 'connection-point-id': string; |
| 75 | } |
| 76 | /** interface for the History nsdInstanceData */ |
| 77 | export interface VNFInstanceData { |
| 78 | identifier: string; |
| 79 | VNFD?: string; |
| 80 | VNFID?: string; |
| 81 | } |