blob: 4aa0aedd847c2468468bca3a0aa8bdf400f2d549 [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301/*
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 SDN Controller model Information.
20 */
21
22/** Interface for SDNControllerModel */
23export interface SDNControllerModel {
24 dpid: string;
kumaran.m3b4814a2020-05-01 19:48:54 +053025 name: string;
26 password: string;
kumaran.m3b4814a2020-05-01 19:48:54 +053027 schema_version: string;
28 'type': string;
29 user: string;
30 version: string;
31 _admin: ADMIN;
32 _id: string;
Barath Kumar R42862ae2020-12-17 20:15:53 +053033 url:string;
kumaran.m3b4814a2020-05-01 19:48:54 +053034}
35
36/** Interface for _ADMIN */
37interface ADMIN {
38 created: number;
39 current_operation: boolean;
40 deployed: Deployed;
41 'detailed-status': string;
42 modified: number;
43 operationalState: string;
44 operations: Operation[];
45 projects_read: string[];
46 projects_write: string[];
47}
48
49/** Interface for Deployed */
50interface Deployed {
51 RO: string;
52}
53
54/** Interface for Operations */
55interface Operation {
56 'detailed-status': string;
57 lcmOperationType: string;
58 operationParams: string;
59 operationState: string;
60 startTime: number;
61 statusEnteredTime: number;
62 worker: string;
63}
64
65/** Interface for SDNControllerList */
66export interface SDNControllerList {
67 name: string;
68 id?: string;
69 identifier: string;
70 'type': string;
71 operationalState: string;
Barath Kumar R42862ae2020-12-17 20:15:53 +053072 url: string;
kumaran.m3b4814a2020-05-01 19:48:54 +053073}