Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

a DHCP module service which leverages serverservice as it's backend

License

Notifications You must be signed in to change notification settings

metal-toolbox/hollow-dhcpserver

Repository files navigation

Hollow CoreDHCP Plugin & DHCP Server Build

codecov

This provides a plugin that can be used for serving dhcp request from hollow data sources.

How to use

You will need to store the DHCP information on a server or instance attribute with the namespace sh.hollow.dhcpserver.lease.

The format of this data needs to look like:

{
  "ipv4": [
    {
      "boot_file": "ipxe.efi",
      "boot_server": "10.0.0.1",
      "cidr": "10.0.0.20/24",
      "gateway": "10.0.0.1",
      "mac_address": "02:42:ac:13:00:05",
      "resolvers": [
        "1.1.1.1",
        "8.8.8.8"
      ]
    },
    {
      "boot_file": "",
      "boot_server": "",
      "cidr": "10.0.0.100/24",
      "gateway": "10.0.0.1",
      "mac_address": "02:42:ac:13:00:01",
      "resolvers": [
        "1.1.1.1",
        "8.8.8.8"
      ]
    }
  ]
}