Implement network factory reset in network_manager

This commit implements a factory reset interface for the BMC
network. This factory reset is accomplished by removing any
/etc/systemd/network/*.network files, then writing new ones
configured for DHCP for each known interface.

Resolves openbmc/openbmc#1575

Change-Id: Ic006cd43fb336029479cffa783b56ab91e0339bd
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
5 files changed
tree: c1e0c11886d2ed8e89cbb3528d9eceb5100391bc
  1. conf/
  2. xyz/
  3. bootstrap.sh
  4. configure.ac
  5. ethernet_interface.cpp
  6. ethernet_interface.hpp
  7. ipaddress.cpp
  8. ipaddress.hpp
  9. LICENSE
  10. logman.py
  11. Makefile.am
  12. netman.py
  13. netman_watch_dns.c
  14. network_config.cpp
  15. network_config.hpp
  16. network_manager.cpp
  17. network_manager.hpp
  18. network_manager_main.cpp
  19. README.md
  20. types.hpp
  21. userman.py
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.