Re: [pve-devel] [PATCH ifupdown2] patch: fix bond mac address at boot.

2023-09-13 Thread DERUMIER, Alexandre
Hi, is it possible to apply this patch ? (Just to avoid to forget it) Thanks ! Alexandre Le vendredi 01 septembre 2023 à 11:12 +0200, Alexandre Derumier a écrit : > since systemd v241, like for bridge, the bond mac is setup > randomly at boot, instead inherit from first slave. > > Then, on nex

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread Stefan Hanreich
On 9/13/23 15:48, Stefan Hanreich wrote: On 9/13/23 15:21, DERUMIER, Alexandre wrote: Can't we have simply an infinite lease time, and simply remove leases manually from dhcp + delete ip from ipam at vm stop/delete ? Wouldn't this cause problems if we remove the lease at stop? * VM 1 get

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread Stefan Hanreich
On 9/13/23 15:21, DERUMIER, Alexandre wrote: Can't we have simply an infinite lease time, and simply remove leases manually from dhcp + delete ip from ipam at vm stop/delete ? Wouldn't this cause problems if we remove the lease at stop? * VM 1 gets IP X via DHCP on start * We stop VM 1 and

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread DERUMIER, Alexandre
> > But it's avoid to call ipam at vm_start. (and could be used for > > firewall to auto generate ip filtering) > > > > Maybe setting it there could just be an interface for setting it in > the > IPAM manually? > yes, use should be able to define his own ip too. (maybe directly in a ipam gui on

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread Stefan Hanreich
On 9/13/23 14:50, DERUMIER, Alexandre wrote: Le mercredi 13 septembre 2023 à 13:50 +0200, Stefan Hanreich a écrit : That way we could also easily add a IP configuration section to the VM I really don't known if it's the best/easiest way to have ip both in ipam && vm config. I have sent i

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread DERUMIER, Alexandre
Le mercredi 13 septembre 2023 à 13:50 +0200, Stefan Hanreich a écrit : > > > That way we could also easily add a IP configuration section to the > VM I really don't known if it's the best/easiest way to have ip both in ipam && vm config. I have sent ipam vm|ct 1 or 2 year ago, and their are a

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread Thomas Lamprecht
Am 13/09/2023 um 13:50 schrieb Stefan Hanreich: > On 9/13/23 13:37, Thomas Lamprecht wrote: >> Am 13/09/2023 um 10:54 schrieb Stefan Hanreich: >>> With dnsmasq there is even the possibility of running scripts (via >>> --dhcp-script, see the docs [1]) when a lease is added / changed / deleted. >>>

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread Stefan Hanreich
On 9/13/23 13:37, Thomas Lamprecht wrote: Am 13/09/2023 um 10:54 schrieb Stefan Hanreich: With dnsmasq there is even the possibility of running scripts (via --dhcp-script, see the docs [1]) when a lease is added / changed / deleted. But as far as I can tell this can not be used to override t

[pve-devel] applied: [PATCH pve-common] readme: update mentions of bullseye to bookworm

2023-09-13 Thread Thomas Lamprecht
Am 11/09/2023 um 13:55 schrieb Stefan Lendl: > Signed-off-by: Stefan Lendl > --- > README.dev | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > applied, thanks! ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.pro

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread DERUMIER, Alexandre
Le mercredi 13 septembre 2023 à 13:37 +0200, Thomas Lamprecht a écrit : > Am 13/09/2023 um 10:54 schrieb Stefan Hanreich: > > With dnsmasq there is even the possibility of running scripts (via > > --dhcp-script, see the docs [1]) when a lease is added / changed / > > deleted. But as far as I can te

[pve-devel] [PATCH pve-docs 2/2] sdn: add isis controller documentation

2023-09-13 Thread Alexandre Derumier
--- pvesdn.adoc | 21 + 1 file changed, 21 insertions(+) diff --git a/pvesdn.adoc b/pvesdn.adoc index 4ac0911..401cc6f 100644 --- a/pvesdn.adoc +++ b/pvesdn.adoc @@ -379,6 +379,27 @@ ebgp-mutltihop:: Increase the number of hops to reach peers, in case they are bgp-multipat

[pve-devel] [PATCH pve-manager 1/1] sdn: controllers: add isis controller

2023-09-13 Thread Alexandre Derumier
--- www/manager6/Makefile| 1 + www/manager6/Utils.js| 5 ++ www/manager6/sdn/controllers/IsisEdit.js | 61 3 files changed, 67 insertions(+) create mode 100644 www/manager6/sdn/controllers/IsisEdit.js diff --git a/www/manager6/M

[pve-devel] [PATCH-SERIES pve-network/pve-manager/pve-docs] sdn: add isis controller

2023-09-13 Thread Alexandre Derumier
Hi, This patch serie add support for the isis routing protocol for underlay network, instead bgp. This was a request of a proxmox user, the implementation has been tested https://forum.proxmox.com/threads/integrating-proxmox-sdn-with-existing-sdn-network.131946 pve-network: Alexandre Derumier (

[pve-devel] [PATCH pve-network 3/3] controllers: add isis router plugin

2023-09-13 Thread Alexandre Derumier
--- src/PVE/Network/SDN/Controllers.pm| 2 + src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 28 +++- src/PVE/Network/SDN/Controllers/IsisPlugin.pm | 123 ++ src/PVE/Network/SDN/Controllers/Makefile | 2 +- src/PVE/Network/SDN/Zones/EvpnPlugin.pm | 10 +

[pve-devel] [PATCH pve-network 2/3] controllers: frr: add parsing of "interfaces" section

2023-09-13 Thread Alexandre Derumier
--- src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm index fd4b801..f1dd20f 100644 --- a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm

[pve-devel] [PATCH pve-docs 1/2] sdn: add notes about bgp controller

2023-09-13 Thread Alexandre Derumier
--- pvesdn.adoc | 4 1 file changed, 4 insertions(+) diff --git a/pvesdn.adoc b/pvesdn.adoc index 8b1fe33..4ac0911 100644 --- a/pvesdn.adoc +++ b/pvesdn.adoc @@ -353,6 +353,10 @@ The BGP controller is not used directly by a zone. You can use it to configure FRR to manage BGP peers. For B

[pve-devel] [PATCH pve-network 1/3] controller: evpn: fix find_bgp_controller

2023-09-13 Thread Alexandre Derumier
--- src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm index 6da9c40..fd4b801 100644 --- a/src/PVE/Network/SDN/Controllers/Evp

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread Thomas Lamprecht
Am 13/09/2023 um 10:54 schrieb Stefan Hanreich: > With dnsmasq there is even the possibility of running scripts (via > --dhcp-script, see the docs [1]) when a lease is added / changed / deleted. > But as far as I can tell this can not be used to override the IP that dnsmasq > provides via DHCP,

Re: [pve-devel] [PATCH pve-zsync] parse disks: improve error messages

2023-09-13 Thread Thomas Lamprecht
Am 12/09/2023 um 14:18 schrieb Stefan Sterz: > On Tue Sep 12, 2023 at 11:31 AM CEST, Fiona Ebner wrote: >> The one with the backup flag was reported in the community forum: >> https://forum.proxmox.com/threads/77254/ >> >> Signed-off-by: Fiona Ebner >> --- >> pve-zsync | 5 +++-- >> 1 file change

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread DERUMIER, Alexandre
Le mercredi 13 septembre 2023 à 10:54 +0200, Stefan Hanreich a écrit : > Sorry for my late reply, I was a bit busy the last two days and I > also > wanted some time to think about your suggestions. > > On 9/11/23 05:53, DERUMIER, Alexandre wrote: > > Hi, > > > > I think we should think how we wa

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread Stefan Hanreich
Sorry for my late reply, I was a bit busy the last two days and I also wanted some time to think about your suggestions. On 9/11/23 05:53, DERUMIER, Alexandre wrote: Hi, I think we should think how we want to attribute ips to the vms before continue the implementation. > I think they are 2 mod

Re: [pve-devel] [RFC pve-network 4/6] sdn: dhcp: subnet: add DHCP options to subnet configuration

2023-09-13 Thread Stefan Hanreich
On 9/11/23 06:03, DERUMIER, Alexandre wrote: I think that some common options could also be declared at subnet level or even at zone level. (I'm think about static routes for example, they could be defined at subnet level, maybe dnsserver,ntpserver could be defined at zone level, ) to a

Re: [pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN

2023-09-13 Thread DERUMIER, Alexandre
Hi, I'm going to do a POC with kea dhcp and host reservations It seem possible to dynamically inject reservations with need to reload the daemon (and only 1 daemon is needed for all interfaces/bridges) https://ftp.iij.ad.jp/pub/network/isc/kea/1.5.0-P1/doc/kea-guide.html#host-cmds I'll try to d