diff options
author | Gokul Singaraju <gs244f@att.com> | 2018-06-10 13:46:56 -0400 |
---|---|---|
committer | Gokul Singaraju <gs244f@att.com> | 2018-06-10 13:49:32 -0400 |
commit | 14193fcf7c0529eaed7b6197bde976a900db8415 (patch) | |
tree | c1f373d8a5a9ed0afbe4a6b1c7d53b82d195c197 /vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c | |
parent | c7fb887784ce9ec47a44a15be753abc5d1d580a7 (diff) |
Implement sequencing for faults only
Issue-ID: CERT-14
Change-Id: I3f78eb87cc4c6fba3e4fb8d2fe91d31187b4f7f7
Signed-off-by: Gokul Singaraju <gs244f@att.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c')
-rw-r--r-- | vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c index 38b07a74..401e4ad0 100644 --- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c +++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c @@ -92,6 +92,10 @@ EVENT_FAULT * evel_new_fault(const char * ev_name, fault->major_version = EVEL_FAULT_MAJOR_VERSION; fault->minor_version = EVEL_FAULT_MINOR_VERSION; fault->event_severity = severity; + if( severity == EVEL_SEVERITY_NORMAL ) + evel_event_sequence_set(&fault->header,0); + else + evel_event_sequence_set(&fault->header,1); fault->event_source_type = ev_source_type; fault->vf_status = status; fault->alarm_condition = strdup(condition); |