Convert ServiceProviderNotify to enum
Converted ServiceProviderNotify to an enum.
Supported options are - "NotSupported", "Notify" and "Inhibit".
Changes in phosphor-logging are at the link below
https://gerrit.openbmc.org/c/openbmc/phosphor-logging/+/58815
For more details on the discussion look at the link below.
https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/46886/7/redfish-core/lib/log_services.hpp#1411
Signed-off-by: Vijay F Lobo <vflobo@us.ibm.com>
Change-Id: Iefe95a5531792bc79e363923deb7fc894774ee67
Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
diff --git a/yaml/xyz/openbmc_project/Logging/Entry.interface.yaml b/yaml/xyz/openbmc_project/Logging/Entry.interface.yaml
index 348bb91..8ba6617 100644
--- a/yaml/xyz/openbmc_project/Logging/Entry.interface.yaml
+++ b/yaml/xyz/openbmc_project/Logging/Entry.interface.yaml
@@ -46,13 +46,14 @@
default. Setting this to 'true' will NOT result in the error log being
deleted.
- name: ServiceProviderNotify
- type: boolean
- default: false
+ type: enum[self.Notify]
+ default: NotSupported
description: >
- This property when set to 'true' indicates that this event log should
- be notified to the service provider, if that is implemented on the
- system. An event of this type requires a service action to replace the
- hardware part or update code to correct the error.
+ If this property value is set to 'Notify', the service provider must
+ be notified about the Entry. If the value is set to 'Inhibit' then
+ notification is not sent to the service provider. An event of this
+ type requires a service action to correct the event, such as replacing
+ the hardware part or updating code.
- name: UpdateTimestamp
type: uint64
description: >
@@ -92,6 +93,20 @@
description: >
Information useful to developers for debugging the application.
+ - name: Notify
+ description: >
+ Possible ServiceProviderNotify values for an error log entry.
+ values:
+ - name: NotSupported
+ description: >
+ ServiceProviderNotify property is not supported.
+ - name: Notify
+ description: >
+ The service provider should be notified about the event log.
+ - name: Inhibit
+ description: >
+ The service provider should not be notified about the event log.
+
methods:
- name: GetEntry
description: >