Add multi-layer RIC instance selector
[portal/ric-dashboard.git] / webapp-frontend / src / app / interfaces / e2-mgr.types.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 AT&T Intellectual Property
6  * %%
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ========================LICENSE_END===================================
19  */
20
21 // Models of data used by the E2 Manager
22
23 export interface E2SetupRequest {
24   ranName: string;
25   ranIp: string;
26   ranPort: string;
27 }
28
29 export interface E2ErrorResponse {
30   errorCode: string;
31   errorMessage: string;
32 }
33
34 export interface E2NodebIdentityGlobalNbId {
35   nbId: string;
36   plmnId: string;
37 }
38
39 export interface E2NodebIdentity {
40   inventoryName: string;
41   globalNbId: E2NodebIdentityGlobalNbId;
42 }
43
44 export interface E2GetNodebResponse {
45   connectionStatus: string; // actually one-of, but model as string
46   enb: object; // don't model this until needed
47   failureType: string; // actually one-of, but model as string
48   gnb: object; // don't model this until needed
49   ip: string;
50   nodeType: string; // actually one-of, but model as string
51   port: number; // actually integer
52   ranName: string;
53   setupFailure: object; // don't model this until needed
54 }
55
56 export interface E2RanDetails {
57   nodebIdentity: E2NodebIdentity;
58   nodebStatus: E2GetNodebResponse;
59 }
60
61 export interface RanDialogFormData {
62   ranIp: string;
63   ranName: string;
64   ranPort: string;
65   ranType: string;
66 }