From 7a7f0126a7e76d7c455b9de06135a308ac370369 Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Wed, 7 Mar 2018 12:31:05 +0530 Subject: 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 --- ipmid.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipmid.cpp') 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; cmdManagerPtr cmdManager; +// Global timer for network changes +std::unique_ptr 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; -- cgit v1.2.1