>>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" <diet...@proxmox.com>
À: "aderumier" <aderum...@odiso.com>
Cc: "pve-devel" <pve-devel@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? 

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to