Add support to update NTP server list in network files
This provides following APIs:
SetNtpServer takes network device name and list of NTP server IP's or
hostnames and updates the corresponding .network files with NTP= under
[Network] section.
Example:
[Network]
NTP = 1.2.3.4 time.org
UpdateUseNtpField takes a string and updates all the available .network files
with either UseNtp=true or UseNtp=false depending on user input.
Example:
[DHCP]
UseNtp = false
Change-Id: Iead3e6e4cdaf7e12c855c8a7d8e7d57d7037eda2
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
1 file changed