network_manager: Reloads should be delayed via timer
Our restarts of systemd waited a short amount of time (3s) prior to
triggering in the past and didn't cause it to reconfigure immediately.
This allowed lan users to queue up a bunch of configuration commands
that would reconfigure the network before it applied.
This patch restores that behavior.
Change-Id: I4c3c589c07528a9d90e6d7e5d3b649688fcf4587
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/types.hpp b/src/types.hpp
index 082d588..69a314d 100644
--- a/src/types.hpp
+++ b/src/types.hpp
@@ -27,12 +27,12 @@
using namespace std::chrono_literals;
-// wait for three seconds before restarting the networkd
-constexpr auto restartTimeout = 3s;
+// wait for three seconds before reloading systemd-networkd
+constexpr auto reloadTimeout = 3s;
// refresh the objets after five seconds as network
// configuration takes 3-4 sec after systemd-networkd restart.
-constexpr auto refreshTimeout = restartTimeout + 7s;
+constexpr auto refreshTimeout = reloadTimeout + 7s;
namespace systemd
{