[pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas
Alexandre DERUMIER
aderumier at odiso.com
Wed Jun 24 08:50:55 CEST 2020
>>Do you want to allocate IPs on VM creation time, or VM start time?
I think at vm creation time, or nic hotplug/unplug.
the ipam api is called, return free ip address, and we write somewhere in vm config the ip address.
(for nic hotplug/unplug, we need to handle ipam removal on config revert)
Like this, user can generate cloudinit if needed with the ip address, can do custom firewall rules, we could generate dhcp... before starting the vm.
----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mercredi 24 Juin 2020 07:42:07
Objet: Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas
> >>You you also do not store the cidr there, and instead
> >>store the some pool ID retured by IPAM?
>
> cidr should be the key/id of the subnet. Almost all ipam use the cidr as key.
Ok, that makes sense now.
Do you want to allocate IPs on VM creation time, or VM start time?
More information about the pve-devel
mailing list