Skip to content

Add support for IPAM like Whereabouts #103

@kanlkan

Description

@kanlkan

Problem

DRANET currently does not provide a built-in mechanism for managing IP address ranges for network devices.
As a result, IP address allocation must be implemented separately or reimplemented.

Proposal

Add support for the Whereabouts IPAM project in DRANET.

Whereabouts is primarily designed as a CNI-based IPAM plugin. However, its core IP range management logic can also be reused as a library. By importing it as a library, DRANET could leverage its existing functionality for IP allocation without depending on the CNI plugin interface.

Whereabouts is already widely used in Kubernetes environments and provides a well-tested implementation for managing IP address ranges. Reusing it would avoid reimplementing similar functionality in DRANET and provide a familiar IPAM mechanism for users.

Example

I have prepared a sample implementation demonstrating this approach.
Some demonstration manifests are also included to show how the feature could be used.
https://github.com/kanlkan/dranet/blob/feature/whereabouts-ipam/temp/README.md

Feedback on this approach would be appreciated.
If the direction looks reasonable, I can open a PR with the proposed implementation.

Metadata

Metadata

Assignees

Labels

triage/unresolvedIndicates an issue that can not or will not be resolved.
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions