#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

#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\n"
                "[DHCP]\nClientIdentifier=mac\n";
        filestream.close();
    }
}

}//namespace network
}//namespace phosphor

Disable zeroconf in factory reset mode
Disable zeroconf in factory reset mode

Will enable it later,Need to enhance the code
of IPMI in the case of ZeroConfigIP.

Change-Id: Ic997c26525c7f4f8be9d5a48f1dbbd9e35bc96f5
Signed-off-by: Ratan Gupta <a42a43504c26cfe5294e3d72712325cd74a43440@in.ibm.com>
