2 ==================================================================================
3 Copyright (c) 2019 AT&T Intellectual Property.
4 Copyright (c) 2019 Nokia
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ==================================================================================
20 Mnemonic: rtmgr/types.go
21 Abstract: Contains RTMGR (Routing Manager) specific types
31 type RouteTable []RouteTableEntry
32 type EndpointList []Endpoint
34 type Endpoints map[string]*Endpoint
36 type SubscriptionList []Subscription
38 //TODO: uuid is not a real UUID but a string of "ip:port"
39 // this should be changed to real UUID later on which should come from xApp Manager // petszila
40 type Endpoint struct {
53 type RouteTableEntry struct {
56 RxGroups []EndpointList
61 Name string `json:"name"`
62 Status string `json:"status"`
63 Version string `json:"version"`
64 Instances []XAppInstance `json:"instances"`
67 type XAppInstance struct {
68 Name string `json:"name"`
69 Status string `json:"status"`
71 Port uint16 `json:"port"`
72 TxMessages []string `json:"txMessages"`
73 RxMessages []string `json:"rxMessages"`
76 type PlatformComponents []struct {
77 Name string `json:"name"`
78 Fqdn string `json:"fqdn"`
79 Port uint16 `json:"port"`
82 type ConfigRtmgr struct {
83 Pcs PlatformComponents `json:"PlatformComponents"`
86 type RicComponents struct {
88 Pcs PlatformComponents
91 type Subscription struct {