diff options
author | 2019-01-30 21:20:29 +0000 | |
---|---|---|
committer | 2019-01-30 21:20:29 +0000 | |
commit | 8211d4f128cfb6f2b49d84ab1ef86dddf4f83e5f (patch) | |
tree | 437b45183dc8edb338315d1682fcee460834abe9 /vnfs/VES5.0/evel/evel-library/code/VESreporting_vAFX/afx_ves_reporter.h | |
parent | 3937a2e6a422f5cc6bb012e6c119f61dff76341f (diff) |
VES5.4.1 EVEL Library enhancements
Remove Afxagent
Issue-ID: CERT-17
Change-Id: I3bfca877875cae6c14312d17311a6b0c4cb0c136
Signed-off-by: PrakashH <pbhandar@techmahindra.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/VESreporting_vAFX/afx_ves_reporter.h')
-rw-r--r-- | vnfs/VES5.0/evel/evel-library/code/VESreporting_vAFX/afx_ves_reporter.h | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/VESreporting_vAFX/afx_ves_reporter.h b/vnfs/VES5.0/evel/evel-library/code/VESreporting_vAFX/afx_ves_reporter.h deleted file mode 100644 index cfceca0b..00000000 --- a/vnfs/VES5.0/evel/evel-library/code/VESreporting_vAFX/afx_ves_reporter.h +++ /dev/null @@ -1,85 +0,0 @@ -#ifndef _VES_REPORTER -#define _VES_REPORTER 1 - -#include <pthread.h> -#include <stdio.h> -#include <stdlib.h> -#include <ctype.h> -#include <string.h> -#include <stdint.h> -#include <unistd.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/types.h> - -#define NUM_THREADS 5 -#define MAX_INTERFACES 40 - -#define BUFSIZE 128 -#define BGPBUFSIZE 512 -#define PERF_MONITOR_INTERVAL 300 -#define LINK_MONITOR_INTERVAL 20 - -struct thread_data -{ - int thread_id; - int sum; - char *message; -}; - -#define AFX_MODULES_FILE "afxmodules.conf" - -void *LinkMonitorAfxThread(void *threadarg); -#define AFX_INTERFACE_FILE "afxintf.conf" - -#define OAM_INTERFACE "ens3" - -void *ServiceMonitorAfxThread(void *threadarg); -#define SERVICE_MONITOR_INTERVAL 30 - -void *BgpLoggingAfxThread(void *threadarg); -#define AFX_SYSLOG_FILE "afxfilter.txt" -#define MAX_SYSLOG_WORDS 50 - -void *MeasureAfxThread(void *threadarg); - -typedef struct linkstat { - - char linkname[32]; - char linkdescr[256]; - char linkmode[64]; - int speedmbps; - int linkstat; - -}LINKSTAT; - - -typedef struct dummy_vpp_metrics_struct { - - char linkname[32]; - char linkdescr[256]; - uint64_t rx_bytes; - uint64_t tx_bytes; - uint64_t rx_packets; - uint64_t tx_packets; - uint64_t rx_mcast; - uint64_t delta_rx_bytes; - uint64_t delta_rx_packets; - uint64_t delta_rx_mcast; - uint64_t delta_tx_bytes; - uint64_t delta_tx_packets; - -} VPP_METRICS_STRUCT; - -void report_fault( char* evname, char *evid, EVEL_SEVERITIES sevty, char *categ, char *intf, char *trapname, char *descr, char *rem_router, char *routername, char *router_ip, int status ); - -const char *openstack_vm_uuid(); -char *get_oam_intfaddr(); - -int file_is_modified(const char *path, time_t *oldMTime); -void remove_spaces(char* source); -char *escape_json(char *in); - -extern char hostname[BUFSIZE]; -extern char oam_intfaddr[BUFSIZE]; -#endif |