diff options
author | Ratan Gupta <ratagupt@linux.vnet.ibm.com> | 2018-11-26 20:57:34 +0530 |
---|---|---|
committer | Ratan Gupta <ratagupt@linux.vnet.ibm.com> | 2018-11-30 17:11:46 +0530 |
commit | 895f9e52ff097c5a229dc8ef1fb358a24b9a958f (patch) | |
tree | 576fa50ae0840a6ad405c65b2396f9bb3132c264 /ethernet_interface.cpp | |
parent | 74db23cf883c6eb9d1f10aaff57b9cc167cb0868 (diff) | |
download | phosphor-networkd-895f9e52ff097c5a229dc8ef1fb358a24b9a958f.tar.gz phosphor-networkd-895f9e52ff097c5a229dc8ef1fb358a24b9a958f.zip |
Move the restart systemdunit function to network manager
Change-Id: I647741fc3976ca82c39998a518b1de7be5365e80
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Diffstat (limited to 'ethernet_interface.cpp')
-rw-r--r-- | ethernet_interface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ ServerList EthernetInterface::nTPServers(ServerList servers) 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 @@ std::string EthernetInterface::mACAddress(std::string value) // ip for the changed mac address. if (dHCPEnabled()) { - restartSystemdUnit(networkdService); + manager.restartSystemdUnit(networkdService); } return mac; } |