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 macros and functions to support the preparation of pnf
20 Registration VES Event*/
23 #ifndef __PNF_REGISTRATION_HPP__
24 #define __PNF_REGISTRATION_HPP__
28 #include <cjson/cJSON.h>
31 #include "VesUtils.hpp"
32 #include "VesEvent.hpp"
34 #define MAX_TIME_STR 11
38 class PnfRegistration : public VesEvent
42 /* Default constructor/Destructor */
47 bool prepareEventFields();
50 bool prepareAdditionalFields(cJSON *addFields);
51 string getCurrentDate();
52 string getNetconfMacAddr();
53 string getNetconfV4ServerIP();
54 string getNetconfV6ServerIP();
55 string getNetconfPort();
58 string getSerialNumber();
59 string getUnitFamily();
60 bool readConfigFile();
63 string mNetconfMacAddr;
67 string mNetconfUsername;
68 string mNetconfPassword;
72 /**********************************************************************
74 **********************************************************************/