public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Hannes Laimer <h.laimer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager v5 12/13] ui: sdn: ipam: add the zone namespace options
Date: Wed,  4 Nov 2026 10:55:19 +0100	[thread overview]
Message-ID: <20261104095520.398544-13-h.laimer@proxmox.com> (raw)
In-Reply-To: <20261104095520.398544-1-h.laimer@proxmox.com>

The NetBox and phpIPAM dialogs show both options in an advanced
section. The namespace per zone is off by default, and the namespace
prefix is pve when left empty.

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
 www/manager6/sdn/ipams/Base.js        | 25 +++++++++++++++++++++++++
 www/manager6/sdn/ipams/NetboxEdit.js  |  2 ++
 www/manager6/sdn/ipams/PhpIpamEdit.js |  2 ++
 3 files changed, 29 insertions(+)

diff --git a/www/manager6/sdn/ipams/Base.js b/www/manager6/sdn/ipams/Base.js
index 1f6eab296c20..e7b607497e25 100644
--- a/www/manager6/sdn/ipams/Base.js
+++ b/www/manager6/sdn/ipams/Base.js
@@ -15,6 +15,31 @@ Ext.define('PVE.panel.SDNIpamBase', {
         return values;
     },
 
+    // the external IPAMs keep each zone's subnets in a namespace of their
+    // own once the option is on, named with the prefix
+    zoneNamespaceFields: function () {
+        let me = this;
+
+        return [
+            {
+                xtype: 'proxmoxcheckbox',
+                name: 'zone-namespaces',
+                fieldLabel: gettext('Namespace per Zone'),
+                uncheckedValue: null,
+                checked: false,
+                deleteEmpty: !me.isCreate,
+            },
+            {
+                xtype: 'proxmoxtextfield',
+                name: 'zone-namespace-prefix',
+                fieldLabel: gettext('Namespace Prefix'),
+                emptyText: 'pve',
+                skipEmptyText: true,
+                deleteEmpty: !me.isCreate,
+            },
+        ];
+    },
+
     initComponent: function () {
         var me = this;
 
diff --git a/www/manager6/sdn/ipams/NetboxEdit.js b/www/manager6/sdn/ipams/NetboxEdit.js
index 17971026c93e..8183aa5a5618 100644
--- a/www/manager6/sdn/ipams/NetboxEdit.js
+++ b/www/manager6/sdn/ipams/NetboxEdit.js
@@ -53,6 +53,8 @@ Ext.define('PVE.sdn.ipams.NetboxInputPanel', {
             },
         ];
 
+        me.advancedColumnB = me.zoneNamespaceFields();
+
         me.callParent();
     },
 });
diff --git a/www/manager6/sdn/ipams/PhpIpamEdit.js b/www/manager6/sdn/ipams/PhpIpamEdit.js
index b28232ab67b7..b74da37596a2 100644
--- a/www/manager6/sdn/ipams/PhpIpamEdit.js
+++ b/www/manager6/sdn/ipams/PhpIpamEdit.js
@@ -58,6 +58,8 @@ Ext.define('PVE.sdn.ipams.PhpIpamInputPanel', {
             },
         ];
 
+        me.advancedColumnB = me.zoneNamespaceFields();
+
         me.callParent();
     },
 });
-- 
2.47.3





  parent reply	other threads:[~2026-11-04  9:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04  9:55 [PATCH docs/manager/network/qemu-server v5 00/13] sdn: improve MAC cache, DHCP reservations and scope both to the vnet Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 01/13] sdn: ipam: stop caching IPAM misses Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 02/13] sdn: ipam: cache a MAC lookup's answer under the cluster lock Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 03/13] sdn: ipam: read the MAC cache case-insensitively Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 04/13] sdn: dhcp: replace a stale dnsmasq reservation instead of dropping it Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 05/13] sdn: ipam: release an address the built-in IPAM no longer holds Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 06/13] sdn: dhcp: update reservations when IP mappings change Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 07/13] sdn: ipam: look a MAC up within the vnet's subnets Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 08/13] sdn: ipam: keep the MAC cache per vnet Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-network v5 09/13] sdn: ipam: give each zone a VRF in NetBox and a section in phpIPAM Hannes Laimer
2026-11-04  9:55 ` [PATCH qemu-server v5 10/13] network: sdn: push the DHCP mappings of a guest when it resumes Hannes Laimer
2026-11-04  9:55 ` [PATCH pve-manager v5 11/13] ui: sdn: dhcp tree: do not merge the same subnet in different zones Hannes Laimer
2026-11-04  9:55 ` Hannes Laimer [this message]
2026-11-04  9:55 ` [PATCH pve-docs v5 13/13] sdn: ipam: document zone namespaces in NetBox and phpIPAM Hannes Laimer
2026-11-05  9:36 ` superseded: [PATCH docs/manager/network/qemu-server v5 00/13] sdn: improve MAC cache, DHCP reservations and scope both to the vnet Hannes Laimer

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=20261104095520.398544-13-h.laimer@proxmox.com \
    --to=h.laimer@proxmox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal