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

Latest commit

 

History

History
41 lines (34 loc) · 1000 Bytes

README.md

File metadata and controls

41 lines (34 loc) · 1000 Bytes

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"
      ]
    }
  ]
}