diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-11-15 17:40:24 +0530 |
---|---|---|
committer | Ratan Gupta <ratagupt@in.ibm.com> | 2017-11-16 21:18:38 +0530 |
commit | 310a0b1e5eee1a6b5ad7f5d2df061819656c23af (patch) | |
tree | 7519bb9579c662971578077b7074b3c0d54e1e0b | |
parent | fe11691f52bae40c3f73ca6a2a2a3d25f97089f0 (diff) | |
download | phosphor-networkd-310a0b1e5eee1a6b5ad7f5d2df061819656c23af.tar.gz phosphor-networkd-310a0b1e5eee1a6b5ad7f5d2df061819656c23af.zip |
Increase the waiting time for refreshing objects
Increase the waiting time for refreshing the objects as
event for link local object comes late by sec or two.
Resolves openbmc/openbmc#2644
Change-Id: I5c767877f437c8538e9af7efde8f04ad088458ab
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
-rw-r--r-- | network_manager_main.cpp | 3 | ||||
-rw-r--r-- | types.hpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/network_manager_main.cpp b/network_manager_main.cpp index 3828c9b..a428bce 100644 --- a/network_manager_main.cpp +++ b/network_manager_main.cpp @@ -26,9 +26,12 @@ std::unique_ptr<phosphor::network::Timer> restartTimer = nullptr; /** @brief refresh the network objects. */ void refreshObjects() { + using namespace phosphor::logging; if (manager) { + log<level::INFO>("Refreshing the objects."); manager->createChildObjects(); + log<level::INFO>("Refreshing complete."); } } @@ -23,7 +23,7 @@ constexpr auto restartTimeout = 3s; // refresh the objets after five seconds as network // configuration takes 3-4 sec after systemd-networkd restart. -constexpr auto refreshTimeout = restartTimeout + 5s; +constexpr auto refreshTimeout = restartTimeout + 7s; namespace systemd { |