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"
29 #define NETCONF_CONFIG "config/netconfConfig.json"
30 #define OAM_VES_CONFIG "config/oamVesConfig.json"
31 #define SMO_VES_CONFIG "config/smoVesConfig.json"
33 //Common Header Macros
34 #define STND_DEFINED_NAMESPACE "3GPP-FaultSupervision"
35 #define COMMON_HEADER_VERSION "4.0.1"
36 #define VES_EVENT_LISNERT_VERSION "7.2.1"
39 #define EVENT_TYPE_5G "EventType5G"
40 #define EVENT_TYPE_ORAN_COMPONENT "O_RAN_COMPONENT"
41 #define EVENT_TYPE_CONTROLLER "Controller"
44 #define PRIORITY_LOW "Low"
45 #define PRIORITY_HIGH "High"
48 #define ODU_HIGH "ODU-High"
49 #define SOURCE_ID "device_id_cc305d54-75b4-431b-adb2-eb6b9e541234"
52 #define NAMING_CODE_ODU "7odu"
53 #define NFC_NAMING_CODE "NFC"
56 #define TIME_ZONE_00_00 "+00:00"
59 #define VERSION_4_0_1 "4.0.1"
60 #define VERSION_4_1 "4.1"
62 //Ves Event Listener Version
63 #define VES_EVENT_LISTENER_7_2_1 "7.2.1"
65 //PNF Registration Macros
66 #define PNF_REGISTRATION_VERSION_2_1 "2.1"
67 #define SOFTWARE_VERSION_2_3_5 "2.3.5"
68 #define UNIT_TYPE_7DEV "7DEV"
69 #define VENDER_NAME_VENDORB "VENDORB"
70 #define MODEL_NUMBER_007_DEV "007DEV"
73 //Additional fields macros for PNF Registration
75 #define NETCONF_DEFAULT_PORT "830"
76 #define NETCONF_PROTOCOL_SSH "SSH"
77 #define RECONNECT_ON_SCHEMA_CHANGE_FALSE "false"
78 #define SLEEP_FACTOR_1_5 "1.5"
79 #define TCP_ONLY_FALSE "false"
80 #define CONNECTION_TIMEOUT_20000 "20000"
81 #define MAX_CONNECTION_ATTEMPTS_100 "100"
82 #define BETWEEN_ATTEMPTS_TIMEOUT_2000 "2000"
83 #define KEEPALIVE_DELAY_120 "120"
86 #define PM_EVENT_ID "_1634181300_PM1min"
87 #define PM_REPORTING_ENTITY "ORAN-DEV"
88 #define EVENT_TYPE_ORAN_COMPONENT_PM "O_RAN_COMPONENT_PM1min"
91 #define FAULT_EVENTID "Alarm000000001"
92 #define FAULT_TYPE "alarm"
93 #define FAULT_EVENT_NAME "COMMUNICATIONS_ALARM"
95 enum class VesEventType
104 enum class MessageType
113 /**********************************************************************
115 **********************************************************************/