summaryrefslogtreecommitdiffstats
path: root/network_manager.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-09-22 18:26:11 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2017-10-11 18:17:17 +0530
commit16f12886cc31a81e48ef9ed8cdcef4a1599bdeac (patch)
tree36e201c6623a79f9c0151f74e32657c09b53674c /network_manager.hpp
parente9c9b81c8c01e15306dad27a3281b582e775c44a (diff)
downloadphosphor-networkd-16f12886cc31a81e48ef9ed8cdcef4a1599bdeac.tar.gz
phosphor-networkd-16f12886cc31a81e48ef9ed8cdcef4a1599bdeac.zip
Reduce the number of restarts of systemd-networkd
Start the timer once we get the dbus request and wait for timeout if we get the dbus request in meanwhile, reset the timer and wait for timeout. Listen for ipv6 rtnetlink address also. Resolves openbmc/openbmc#2227 Change-Id: I3f448e84107826defafb9ada523c1ab08ec1b971 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'network_manager.hpp')
-rw-r--r--network_manager.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/network_manager.hpp b/network_manager.hpp
index 70ed8fc..7685ba8 100644
--- a/network_manager.hpp
+++ b/network_manager.hpp
@@ -103,8 +103,8 @@ class Manager : public details::VLANCreateIface
*/
bool createDefaultNetworkFiles(bool force);
- /** @brief restart the systemd networkd. */
- void restartNetwork();
+ /** @brief restart the network timers. */
+ void restartTimers();
private:
/** @brief Persistent sdbusplus DBus bus connection. */
OpenPOWER on IntegriCloud