blob: d0aa2b4ac76f0399d4307a0ac34dd9d02a25a8b4 [file] [log] [blame]
#include "network_config.hpp"
#include <fstream>
#include <string>
namespace phosphor
{
namespace network
{
namespace bmc
{
void writeDHCPDefault(const std::string& filename,
const std::string& interface)
{
std::ofstream filestream;
filestream.open(filename);
filestream << "[Match]\nName=" << interface <<
"\n[Network]\nDHCP=true\nLinkLocalAddressing=yes\n"
"[DHCP]\nClientIdentifier=mac\n";
filestream.close();
}
}
}//namespace network
}//namespace phosphor