public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Gabriel Goller <g.goller@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager v3 24/28] ui: sdn: add VRF zone selection for fabrics
Date: Thu, 19 Nov 2026 20:41:10 +0100	[thread overview]
Message-ID: <20261119194116.575520-25-g.goller@proxmox.com> (raw)
In-Reply-To: <20261119194116.575520-1-g.goller@proxmox.com>

Allow BGP and OSPF fabrics to select a simple zone with dedicated-vrf
enabled for routing isolation. An empty selection uses the default VRF.

Put the Dedicated VRF checkbox under Advanced in the simple zone editor.
It is unchecked by default to preserve existing behavior.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---
 www/manager6/form/SDNZoneSelector.js   | 16 +++++++++++++++-
 www/manager6/sdn/fabrics/FabricEdit.js | 15 +++++++++++++++
 www/manager6/sdn/zones/SimpleEdit.js   |  9 +++++++++
 3 files changed, 39 insertions(+), 1 deletion(-)

diff --git a/www/manager6/form/SDNZoneSelector.js b/www/manager6/form/SDNZoneSelector.js
index d8a63baeb7bd..dde25371f18d 100644
--- a/www/manager6/form/SDNZoneSelector.js
+++ b/www/manager6/form/SDNZoneSelector.js
@@ -8,6 +8,9 @@ Ext.define(
         valueField: 'zone',
         displayField: 'zone',
 
+        // Only show simple zones which create a dedicated VRF.
+        vrfOnly: false,
+
         initComponent: function () {
             var me = this;
 
@@ -17,6 +20,13 @@ Ext.define(
                     property: 'zone',
                     direction: 'ASC',
                 },
+                filters: me.vrfOnly
+                    ? [
+                          function (record) {
+                              return record.get('type') === 'simple' && record.get('dedicated-vrf');
+                          },
+                      ]
+                    : [],
             });
 
             Ext.apply(me, {
@@ -42,7 +52,11 @@ Ext.define(
     function () {
         Ext.define('pve-sdn-zone', {
             extend: 'Ext.data.Model',
-            fields: ['zone', 'type'],
+            fields: [
+                'zone',
+                'type',
+                { name: 'dedicated-vrf', type: 'boolean', defaultValue: false },
+            ],
             proxy: {
                 type: 'proxmox',
                 url: '/api2/json/cluster/sdn/zones',
diff --git a/www/manager6/sdn/fabrics/FabricEdit.js b/www/manager6/sdn/fabrics/FabricEdit.js
index e9e0d1fa6286..69a865ecd7df 100644
--- a/www/manager6/sdn/fabrics/FabricEdit.js
+++ b/www/manager6/sdn/fabrics/FabricEdit.js
@@ -37,6 +37,16 @@ Ext.define('PVE.sdn.Fabric.Fabric.Edit', {
                 disabled: '{!isCreate}',
             },
         },
+        {
+            xtype: 'pveSDNZoneSelector',
+            fieldLabel: gettext('VRF Zone'),
+            labelWidth: 120,
+            name: 'zone',
+            vrfOnly: true,
+            allowBlank: true,
+            skipEmptyText: true,
+            emptyText: gettext('Default VRF'),
+        },
     ],
 
     additionalItems: [],
@@ -50,6 +60,11 @@ Ext.define('PVE.sdn.Fabric.Fabric.Edit', {
         me.autoLoad = !me.isCreate;
         me.method = me.isCreate ? 'POST' : 'PUT';
 
+        let supportsVrf = ['bgp', 'ospf'].includes(me.extraRequestParams.protocol);
+        let vrfZoneField = me.items.find((item) => item.name === 'zone');
+        vrfZoneField.hidden = !supportsVrf;
+        vrfZoneField.disabled = !supportsVrf || !me.isCreate;
+
         if (!me.isCreate) {
             me.url = `${me.baseUrl}/${me.fabricId}`;
         } else {
diff --git a/www/manager6/sdn/zones/SimpleEdit.js b/www/manager6/sdn/zones/SimpleEdit.js
index ba10bb3616ea..9c88668bb5d6 100644
--- a/www/manager6/sdn/zones/SimpleEdit.js
+++ b/www/manager6/sdn/zones/SimpleEdit.js
@@ -20,6 +20,15 @@ Ext.define('PVE.sdn.zones.SimpleInputPanel', {
 
         me.items = [];
         me.advancedItems = [
+            {
+                xtype: 'proxmoxcheckbox',
+                name: 'dedicated-vrf',
+                fieldLabel: gettext('Dedicated VRF'),
+                checked: false,
+                uncheckedValue: 0,
+                defaultValue: 0,
+                deleteDefaultValue: !me.isCreate,
+            },
             {
                 xtype: 'proxmoxcheckbox',
                 name: 'dhcp',
-- 
2.47.3





  parent reply	other threads:[~2026-11-19 19:43 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 19:40 [PATCH common/manager/network/proxmox{-ve-rs,-perl-rs,-widget-toolkit} v3 00/28] SDN VRF support Gabriel Goller
2026-11-19 19:40 ` [PATCH pve-common v3 01/28] interfaces: preserve VRF membership across address family changes Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-ve-rs v3 02/28] frr: add VRF-aware OSPF rendering Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-ve-rs v3 03/28] sdn: add zone references to OSPF and BGP fabrics Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-ve-rs v3 04/28] sdn: generate fabric routing configuration in zone VRFs Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-ve-rs v3 05/28] sdn: fix VRF route-map scoping and zone ID validation Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-ve-rs v3 06/28] tests: fabrics: add tests for fabrics in VRFs Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-ve-rs v3 07/28] sdn: allow static routes in simple zone VRFs Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-perl-rs v3 08/28] pve-rs: fabrics: assign network interfaces to configured VRFs Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-perl-rs v3 09/28] pve-rs: fabrics: make per-fabric status queries VRF-aware Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-perl-rs v3 10/28] pve-rs: fabrics: include VRF routes in aggregate status Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-perl-rs v3 11/28] pve-rs: fabrics: expose host interface membership Gabriel Goller
2026-11-19 19:40 ` [PATCH proxmox-perl-rs v3 12/28] sdn: expose static routes for simple zone uplinks Gabriel Goller
2026-11-19 19:40 ` [PATCH pve-network v3 13/28] sdn: evpn: add unreachable IPv6 default route to zone VRFs Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 14/28] sdn: add optional VRFs for simple zones Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 15/28] sdn: allow fabrics to use simple zone VRFs Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 16/28] sdn: require underlay fabrics to use the default VRF Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 17/28] sdn: move full range CIDR formats into a separate module Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 18/28] sdn: simple: support static routes in zone routing tables Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 19/28] sdn: dhcp: only configure DHCP for zones on the local node Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 20/28] sdn: dhcp: run dnsmasq in the zone VRF Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 21/28] sdn: dhcp: fix DNS server option for IPv4 subnets without gateway Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-network v3 22/28] sdn: evpn: no exit node null routes for simple zone VRFs Gabriel Goller
2026-11-19 19:41 ` [PATCH proxmox-widget-toolkit v3 23/28] ui: network: allow selecting a VRF for host interfaces Gabriel Goller
2026-11-19 19:41 ` Gabriel Goller [this message]
2026-11-19 19:41 ` [PATCH pve-manager v3 25/28] network: allow setting the VRF of " Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-manager v3 26/28] ui: sdn: allow static routes for Simple zone VRFs Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-manager v3 27/28] network: generate SDN DHCP config after ifreload Gabriel Goller
2026-11-19 19:41 ` [PATCH pve-manager v3 28/28] ui: sdn: subnet: allow setting the DHCP DNS server Gabriel Goller

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=20261119194116.575520-25-g.goller@proxmox.com \
    --to=g.goller@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