1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2020-2021] [HCL Technologies Ltd.] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /* This file contains message handling functionality for DU APP */
21 #ifndef __VES_UTILS_HPP__
22 #define __VES_UTILS_HPP__
25 #include "GlobalDefs.hpp"
28 #define NETCONF_CONFIG "config/netconfConfig.json"
29 #define OAM_VES_CONFIG "config/oamVesConfig.json"
30 #define SMO_VES_CONFIG "config/smoVesConfig.json"
32 //Common Header Macros
35 #define EVENT_TYPE_5G "EventType5G"
36 #define EVENT_TYPE_ORAN_COMPONENT "O_RAN_COMPONENT"
37 #define EVENT_TYPE_CONTROLLER "Controller"
40 #define PRIORITY_LOW "Low"
41 #define PRIORITY_HIGH "High"
44 #define ODU_HIGH "ODU-High"
47 #define NAMING_CODE_ODU "7odu"
50 #define TIME_ZONE_00_00 "+00:00"
53 #define VERSION_4_0_1 "4.0.1"
54 #define VERSION_4_1 "4.1"
56 //Ves Event Listener Version
57 #define VES_EVENT_LISTENER_7_2_1 "7.2.1"
59 //PNF Registration Macros
60 #define PNF_REGISTRATION_VERSION_2_1 "2.1"
61 #define SOFTWARE_VERSION_2_3_5 "2.3.5"
62 #define UNIT_TYPE_7DEV "7DEV"
63 #define VENDER_NAME_VENDORB "VENDORB"
64 #define MODEL_NUMBER_007_DEV "007DEV"
67 //Additional fields macros for PNF Registration
69 #define NETCONF_DEFAULT_PORT "830"
70 #define NETCONF_PROTOCOL_SSH "SSH"
71 #define RECONNECT_ON_SCHEMA_CHANGE_FALSE "false"
72 #define SLEEP_FACTOR_1_5 "1.5"
73 #define TCP_ONLY_FALSE "false"
74 #define CONNECTION_TIMEOUT_20000 "20000"
75 #define MAX_CONNECTION_ATTEMPTS_100 "100"
76 #define BETWEEN_ATTEMPTS_TIMEOUT_2000 "2000"
77 #define KEEPALIVE_DELAY_120 "120"
80 #define PM_EVENT_ID "_1634181300_PM1min"
81 #define PM_REPORTING_ENTITY "ORAN-DEV"
82 #define EVENT_TYPE_ORAN_COMPONENT_PM "O_RAN_COMPONENT_PM1min"
84 enum class VesEventType
93 enum class MessageType
102 /**********************************************************************
104 **********************************************************************/