diff options
author | SK00552209 <SK00552209@Techmahindra.com> | 2018-07-31 09:04:54 +0530 |
---|---|---|
committer | SK00552209 <SK00552209@Techmahindra.com> | 2018-07-31 09:04:54 +0530 |
commit | 4543021519eedcd60a532061c364ea2fecc52d93 (patch) | |
tree | 66ee00bf04a0930b66af32ebb5cf35db82637fd2 /veslibrary | |
parent | 01666de96d19b5202c9055bb908cfde2ce864d44 (diff) |
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 <SK00552209@Techmahindra.com>
Diffstat (limited to 'veslibrary')
2 files changed, 2 insertions, 2 deletions
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);
|