code update: use applytime from existing interface
Use the ApplyTime type in Update interface from existing ApplyTime
interface.
Change-Id: I9360fa4424854becac9dd3a45961c4b4389e67b0
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/yaml/xyz/openbmc_project/Software/Update.interface.yaml b/yaml/xyz/openbmc_project/Software/Update.interface.yaml
index 5bd388f..4191c1f 100644
--- a/yaml/xyz/openbmc_project/Software/Update.interface.yaml
+++ b/yaml/xyz/openbmc_project/Software/Update.interface.yaml
@@ -12,7 +12,7 @@
This property indicates the file descriptor of the firmware
image.
- name: ApplyTime
- type: enum[self.ApplyTimes]
+ type: enum[xyz.openbmc_project.Software.ApplyTime.RequestedApplyTimes]
description: >
This property indicates when the software image update should be
applied.
@@ -31,21 +31,8 @@
properties:
- name: AllowedApplyTimes
- type: set[enum[self.ApplyTimes]]
+ type: set[enum[xyz.openbmc_project.Software.ApplyTime.RequestedApplyTimes]]
description: >
This property indicates the apply times allowed for this device.
flags:
- readonly
-
-enumerations:
- - name: ApplyTimes
- description: >
- The possible values of this property indicate when the newly updated
- software image will be activated.
- values:
- - name: Immediate
- description: >
- Apply immediately.
- - name: OnReset
- description: >
- Apply on reset of device being updated.