From: Alexandre Derumier <aderumier@odiso.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [WIP pve-network 0/3] dhcp changes
Date: Thu, 9 Nov 2023 01:25:07 +0100 [thread overview]
Message-ID: <20231109002510.470617-1-aderumier@odiso.com> (raw)
Here my current work, based on wip2 Stefan Hanreich
It's not yet completed, I'll try to send a more complete serie next week
- patch1: remove need of dhcp.cfg, and declare dhcp plugin type in zone directly.
each zone is a dhcpserver , that's make sense, as 2 zones can have same subnets in differents vrf.
- patch2/3: need more patches, but my idea is to split the ipam add|del ip && the dhcp server ip-mac reservation file genreation.
at vm|nic create : find a free ip in dhcp range and register ip/mac in ipam
at vm start : search ip from mac in ipam, and add add it to local dhcp reversation file
also reuse currently vnet add_next_free_ip, as it's already plugged with dns too.
Alexandre Derumier (3):
define dhcpplugin in zone
dhcp : add|del_ip_mapping: only add|del dhcp reservervation
vnet|subnet: add_next_free_ip : implement dhcprange ipam search
src/PVE/API2/Network/SDN/Zones.pm | 1 +
src/PVE/Network/SDN.pm | 4 +-
src/PVE/Network/SDN/Dhcp.pm | 166 ++++++----------------
src/PVE/Network/SDN/Dhcp/Dnsmasq.pm | 32 ++---
src/PVE/Network/SDN/Dhcp/Plugin.pm | 28 +---
src/PVE/Network/SDN/Ipams/PVEPlugin.pm | 12 +-
src/PVE/Network/SDN/Ipams/Plugin.pm | 7 +
src/PVE/Network/SDN/SubnetPlugin.pm | 4 -
src/PVE/Network/SDN/Subnets.pm | 22 ++-
src/PVE/Network/SDN/Vnets.pm | 4 +-
src/PVE/Network/SDN/Zones/SimplePlugin.pm | 7 +-
11 files changed, 106 insertions(+), 181 deletions(-)
--
2.39.2
next reply other threads:[~2023-11-09 0:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 0:25 Alexandre Derumier [this message]
2023-11-09 0:25 ` [pve-devel] [WIP pve-network 1/3] define dhcpplugin in zone Alexandre Derumier
2023-11-09 0:25 ` [pve-devel] [WIP pve-network 2/3] dhcp : add|del_ip_mapping: only add|del dhcp reservervation Alexandre Derumier
2023-11-09 0:25 ` [pve-devel] [WIP pve-network 3/3] vnet|subnet: add_next_free_ip : implement dhcprange ipam search Alexandre Derumier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231109002510.470617-1-aderumier@odiso.com \
--to=aderumier@odiso.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.