From: "Rémi PAETA" <remi.paeta@comaite.com>
To: pve-devel@lists.proxmox.com
Subject: [RFC PATCH v2 manager 13/15] ui: sdn: vnet: add port security for ovn zones
Date: Fri, 27 Nov 2026 11:28:34 +0100 [thread overview]
Message-ID: <20261127102836.313797-14-remi.paeta@comaite.com> (raw)
In-Reply-To: <20261127102836.313797-1-remi.paeta@comaite.com>
Vnets of OVN zones can override the port security level of their zone.
The field is only shown for OVN zones, the only ones supporting it, and
gets removed from the vnet when moving it to another zone type.
Signed-off-by: Rémi PAETA <remi.paeta@comaite.com>
---
Changes since v1:
- port security: add a clear trigger, to go back to the zone default
once a level was selected
www/manager6/sdn/VnetEdit.js | 39 ++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/www/manager6/sdn/VnetEdit.js b/www/manager6/sdn/VnetEdit.js
index b64f8974..bebc337a 100644
--- a/www/manager6/sdn/VnetEdit.js
+++ b/www/manager6/sdn/VnetEdit.js
@@ -32,6 +32,9 @@ Ext.define('PVE.sdn.VnetInputPanel', {
if (me.down('#sdnVnetVlanAwareField').isDisabled()) {
addDelete('vlanaware');
}
+ if (me.down('#sdnVnetPortSecurityField').isDisabled()) {
+ addDelete('port-security');
+ }
return values;
},
@@ -102,6 +105,36 @@ Ext.define('PVE.sdn.VnetInputPanel', {
deleteEmpty: '{!isCreate}',
},
},
+ {
+ xtype: 'proxmoxKVComboBox',
+ itemId: 'sdnVnetPortSecurityField',
+ name: 'port-security',
+ value: '',
+ emptyText: gettext('Zone default'),
+ comboItems: [
+ ['off', gettext('Off')],
+ ['mac', 'MAC'],
+ ['mac-ip', 'MAC + IP'],
+ ],
+ fieldLabel: gettext('Port Security'),
+ allowBlank: true,
+ triggers: {
+ clear: {
+ cls: 'pmx-clear-trigger',
+ weight: -1,
+ hidden: true,
+ handler: function () {
+ this.setValue('');
+ },
+ },
+ },
+ listeners: {
+ change: (field, value) => field.triggers.clear.setVisible(!!value),
+ },
+ cbind: {
+ deleteEmpty: '{!isCreate}',
+ },
+ },
],
advancedItems: [
{
@@ -149,6 +182,12 @@ Ext.define('PVE.sdn.VnetInputPanel', {
} else {
vlanField.setDisabled(false);
}
+
+ // only OVN zones filter the traffic of the guest ports
+ let portSecurityField = me.down('#sdnVnetPortSecurityField');
+ let isOvn = zoneType === 'ovn';
+ portSecurityField.setHidden(!isOvn);
+ portSecurityField.setDisabled(!isOvn);
},
});
--
2.47.3
next prev parent reply other threads:[~2026-11-27 10:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 10:28 [RFC PATCH v2 network/manager/docs 00/15] sdn: add OVN zone and controller plugins Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 01/15] sdn: controllers: add ovn plugin Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 02/15] sdn: zones: " Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 03/15] sdn: ovn: sync the northbound database on reload Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 04/15] sdn: ovn: configure the chassis on boot and on network reload Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 05/15] sdn: ovn: add port security Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 06/15] sdn: ovn: allow overriding the port security per vnet Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 07/15] sdn: subnets: refuse gateway, snat and dhcp on ovn zones Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 08/15] sdn: ovn: support ssl connections to the databases Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 09/15] sdn: ovn: bind guest ports to the chassis of their node Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 10/15] ui: sdn: controller selector: allow filtering by controller type Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 11/15] ui: sdn: add ovn controller Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 12/15] ui: sdn: add ovn zone Rémi PAETA
2026-11-27 10:28 ` Rémi PAETA [this message]
2026-11-27 10:28 ` [RFC PATCH v2 manager 14/15] ui: sdn: vnet: disable isolate ports for ovn zones Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 docs 15/15] sdn: document ovn zones and controllers Rémi PAETA
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=20261127102836.313797-14-remi.paeta@comaite.com \
--to=remi.paeta@comaite.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.