diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-08-18 06:12:26 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-24 18:48:00 +0000 |
commit | c35481dbdbd8e99c47f1be5f24e3eef2d8c442e3 (patch) | |
tree | b7a34a2426b4b1bbdce8a181e6932d9080e8cc0c /network_config.cpp | |
parent | 26e87a0eb3568b4aff8dbaa99a18d68f39f75600 (diff) | |
download | phosphor-networkd-c35481dbdbd8e99c47f1be5f24e3eef2d8c442e3.tar.gz phosphor-networkd-c35481dbdbd8e99c47f1be5f24e3eef2d8c442e3.zip |
Change the dhcp configuration parameters default value to true
set the link local addressing to yes so that the interface gets
the zeroconfig ip, if unable to get the ip from DHCP server.
Change-Id: I7e5351662c45863e3d15d49151bfdfb8d9096e11
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'network_config.cpp')
-rw-r--r-- | network_config.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/network_config.cpp b/network_config.cpp index 4540ad8..d0aa2b4 100644 --- a/network_config.cpp +++ b/network_config.cpp @@ -16,7 +16,8 @@ namespace bmc filestream.open(filename); filestream << "[Match]\nName=" << interface << - "\n[Network]\nDHCP=true\n[DHCP]\nClientIdentifier=mac\n"; + "\n[Network]\nDHCP=true\nLinkLocalAddressing=yes\n" + "[DHCP]\nClientIdentifier=mac\n"; filestream.close(); } } |