From 4543021519eedcd60a532061c364ea2fecc52d93 Mon Sep 17 00:00:00 2001 From: SK00552209 Date: Tue, 31 Jul 2018 09:04:54 +0530 Subject: eventSourceType does not populate right eventSourceType has below example values. Examples: 'other','router','switch','host','card','port','slotThreshold','portThreshold','virtualMachine','virtualNetworkFunction'. Change-Id: I11e3be361d9136e8543f54dd2654169b637f400d Issue-ID: VNFSDK-296 Signed-off-by: SK00552209 --- .../evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelFault.java | 2 +- .../src/main/java/evel_javalibrary/att/com/EvelSyslog.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'veslibrary') diff --git a/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelFault.java b/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelFault.java index d40859c..a369b5e 100644 --- a/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelFault.java +++ b/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelFault.java @@ -292,7 +292,7 @@ public class EvelFault extends EvelHeader { * @param source_type The source type to convert. * @returns The equivalent string. *****************************************************************************/ - String evel_source_type(EVEL_SOURCE_TYPES source_type) + static String evel_source_type(EVEL_SOURCE_TYPES source_type) { String result; diff --git a/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelSyslog.java b/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelSyslog.java index 4b972c4..1bdcaf0 100644 --- a/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelSyslog.java +++ b/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/EvelSyslog.java @@ -435,7 +435,7 @@ public class EvelSyslog extends EvelHeader { /* Mandatory fields */ /***************************************************************************/ JsonObjectBuilder obj = Json.createObjectBuilder() - .add("eventSourceType", event_source_type.toString()) + .add("eventSourceType", EvelFault.evel_source_type(event_source_type)) .add("syslogMsg", syslog_msg) .add("syslogTag", syslog_tag) .add("syslogFieldsVersion",version); -- cgit 1.2.3-korg