summaryrefslogtreecommitdiffstats
path: root/ipmid.cpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2018-03-07 12:31:05 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2018-03-20 06:02:53 +0000
commit7a7f0126a7e76d7c455b9de06135a308ac370369 (patch)
tree72495f473f863656c8ef3f1839d06887770e5cd9 /ipmid.cpp
parent32cbd65b41ffd444819c5bcf988ca1f5f1cfe415 (diff)
downloadphosphor-host-ipmid-7a7f0126a7e76d7c455b9de06135a308ac370369.tar.gz
phosphor-host-ipmid-7a7f0126a7e76d7c455b9de06135a308ac370369.zip
SetLan: Apply the network changes once the timer expires
Start the timer once the set in progress parameter set to set complete as part of Set LAN Configuration Parameters command. Resolves openbmc/openbmc#2932 Resolves openbmc/openbmc#2993 Change-Id: Ie6f3b331531da23c74fa44bb52fa1ddccffabd13 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ipmid.cpp')
-rw-r--r--ipmid.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipmid.cpp b/ipmid.cpp
index a05992b..91bbbee 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -42,6 +42,9 @@ sdbusPtr sdbusp;
using cmdManagerPtr = std::unique_ptr<phosphor::host::command::Manager>;
cmdManagerPtr cmdManager;
+// Global timer for network changes
+std::unique_ptr<phosphor::ipmi::Timer> networkTimer = nullptr;
+
// Command and handler tuple. Used when clients ask the command to be put
// into host message queue
using CommandHandler = phosphor::host::command::CommandHandler;
OpenPOWER on IntegriCloud