Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.4 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.4 KB

coredhcp-rangeredis

rangeredis plugin of CoreDHCP.

Introduction

This repo contains a CoreDHCP plugin, which could allocate IP addresses in a given range and save the address assigning status into Redis.

By utilizing the feature of Redis keyspace notifications, this plugin could be easily integrated into a large system.

The plugin could not run independently. It must be compiled with CoreDHCP and presented in CoreDHCP configuration.

Usage

  1. Generate a customized CoreDHCP source code. The guide to compile CoreDHCP with third-party plugin could be found at here.

  2. After a customized coredhcp.go is generated, you could clone this repo into the directory.

  3. Adjust the import part of coredhcp.go file. Modify the entry of rangeredis plugin.

  4. Run go mod to get dependency for compiling.

go mod init coredhcpcomplie
go mod tidy
  1. Compile:
go build
  1. Add config.yaml & run the CoreDHCP. The example on how to config CoreDHCP with rangeredis is here.

Credit

The implementation of this plugin highly relies on the works of range plugin.