Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-23 Thread dietmar
> >>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 confi

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-23 Thread Alexandre DERUMIER
2: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 m

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-23 Thread dietmar
> >>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? __

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-23 Thread Alexandre DERUMIER
eestlent.com/ | MonSiteEstLent.com ] - Blog dédié à la webperformance et la gestion de pics de trafic De: "dietmar" À: "aderumier" Cc: "pve-devel" Envoyé: Mardi 23 Juin 2020 13:26:10 Objet: Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas > No

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-23 Thread dietmar
> No,no, I don't want to store ips in subnets.cfg, it's done in ipam. (or it > could be done in a localipam database if no ipam exist). You you also do not store the cidr there, and instead store the some pool ID retured by IPAM? ___ pve-devel mail

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-23 Thread Alexandre DERUMIER
;dietmar" À: "aderumier" Cc: "pve-devel" Envoyé: Mardi 23 Juin 2020 11:37:43 Objet: Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas > >>But you already mange subnets and allocation pools in subnets.cfg, so what > >>it the purpose > &g

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-23 Thread dietmar
> >>But you already mange subnets and allocation pools in subnets.cfg, so what > >>it the purpose > >>of those ipam plugins? I am unable to see the point? Keeping those > >>reservations in sync > >>looks hard to me. > > do you mean sync between dhcp && ipam ? No. I mean you store all subnets

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-23 Thread Alexandre DERUMIER
- Mail original - De: "dietmar" À: "aderumier" Cc: "pve-devel" Envoyé: Mardi 23 Juin 2020 06:45:14 Objet: Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas > I'm just dreaming of something easy like for containers ip management :) > > &g

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-22 Thread dietmar
> I'm just dreaming of something easy like for containers ip management :) > > > > >>Also, I like the idea that IPAM has a plugin architecture. So it is up to > >>the plugin to > >>provide a dhcp service? > > I'm still unsure about this. The ipam softwares really only manage subnets, > and

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-22 Thread Alexandre DERUMIER
s vm. Maybe it can be simply manage with ressources pools, where you reserved ips from ipam, and write them a resource pool. - Mail original ----- De: "dietmar" À: "pve-devel" , "aderumier" Envoyé: Dimanche 21 Juin 2020 08:59:22 Objet: Re: [pve-devel] RFC: sdn

Re: [pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-20 Thread Dietmar Maurer
comments inline > When user will create a new vm or add a nic to the vm, he could choose ip > address "auto", > and the next available ip addresse will be returned with the ipam driver. Each NIC may have an associated network allocation pool, where "auto" tries to figure out the correct pool a

[pve-devel] RFC: sdn: add ip management (IPAM -DHCP) ideas

2020-06-15 Thread Alexandre DERUMIER
Hi, the sdn beta seem to works fine currently, I think the model is good enough to handle users need. I'm already thinking about the next step: ip management (ipam) && dhcp. The main idea is to be able to defined subnets with pools of address ip on vnets, and when user create a vm on this vnet