Move the restart systemdunit function to network manager
Change-Id: I647741fc3976ca82c39998a518b1de7be5365e80
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp
index 893cd4c..f2ad372 100644
--- a/ethernet_interface.cpp
+++ b/ethernet_interface.cpp
@@ -463,7 +463,7 @@
writeConfigurationFile();
// timesynchd reads the NTP server configuration from the
// network file.
- restartSystemdUnit(networkdService);
+ manager.restartSystemdUnit(networkdService);
return ntpServers;
}
// Need to merge the below function with the code which writes the
@@ -701,7 +701,7 @@
// ip for the changed mac address.
if (dHCPEnabled())
{
- restartSystemdUnit(networkdService);
+ manager.restartSystemdUnit(networkdService);
}
return mac;
}