From 310a0b1e5eee1a6b5ad7f5d2df061819656c23af Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Wed, 15 Nov 2017 17:40:24 +0530 Subject: 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 --- network_manager_main.cpp | 3 +++ types.hpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 restartTimer = nullptr; /** @brief refresh the network objects. */ void refreshObjects() { + using namespace phosphor::logging; if (manager) { + log("Refreshing the objects."); manager->createChildObjects(); + log("Refreshing complete."); } } diff --git a/types.hpp b/types.hpp index 3fcbe2e..e650d3c 100644 --- a/types.hpp +++ b/types.hpp @@ -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 { -- cgit v1.2.1