Skip to content

A mixture of range and redis plugin of CoreDHCP, allocating IP in a given range and saving into Redis.

Notifications You must be signed in to change notification settings

wuxiao-ling197/coredhcp-rangeredis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A mixture of range and redis plugin of CoreDHCP, allocating IP in a given range and saving into Redis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%