Let timedate1 to decide on setting time in NTP mode
In NTP mode, let timedate1 to set BMC time, for now, it results in
error.
Change-Id: I2d78cdcfe6868642f43198dd932b20b13fd8523d
Signed-off-by: Lei YU <mine260309@gmail.com>
diff --git a/bmc_epoch.cpp b/bmc_epoch.cpp
index 4c8bf60..bb3872b 100644
--- a/bmc_epoch.cpp
+++ b/bmc_epoch.cpp
@@ -95,21 +95,15 @@
/*
Mode | Owner | Set BMC Time
----- | ----- | -------------
- NTP | BMC | Not allowed
+ NTP | BMC | Fail to set
NTP | HOST | Not allowed
- NTP | SPLIT | Not allowed
- NTP | BOTH | Not allowed
+ NTP | SPLIT | Fail to set
+ NTP | BOTH | Fail to set
MANUAL| BMC | OK
MANUAL| HOST | Not allowed
MANUAL| SPLIT | OK
MANUAL| BOTH | OK
*/
- if (timeMode == Mode::NTP)
- {
- log<level::ERR>("Setting BmcTime with NTP mode is not allowed");
- // TODO: throw NotAllowed exception
- return 0;
- }
if (timeOwner == Owner::Host)
{
log<level::ERR>("Setting BmcTime with HOST owner is not allowed");