From: "Rémi PAETA" <remi.paeta@comaite.com>
To: pve-devel@lists.proxmox.com
Subject: [RFC PATCH v2 manager 12/15] ui: sdn: add ovn zone
Date: Fri, 27 Nov 2026 11:28:33 +0100 [thread overview]
Message-ID: <20261127102836.313797-13-remi.paeta@comaite.com> (raw)
In-Reply-To: <20261127102836.313797-1-remi.paeta@comaite.com>
Allow creating and editing OVN zones, with the port security level of
the guest ports. Only OVN controllers can be selected for them.
Vnets of OVN zones support neither VLAN tags nor VLAN awareness, so
disable these fields, as the tag would otherwise be required.
Signed-off-by: Rémi PAETA <remi.paeta@comaite.com>
---
Changes since v1:
- port security: add a clear trigger, to go back to the default once a
level was selected
www/manager6/Makefile | 1 +
www/manager6/Utils.js | 5 ++++
www/manager6/sdn/VnetEdit.js | 4 +--
www/manager6/sdn/zones/OvnEdit.js | 47 +++++++++++++++++++++++++++++++
4 files changed, 55 insertions(+), 2 deletions(-)
create mode 100644 www/manager6/sdn/zones/OvnEdit.js
diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 4fd06f90..4434cb6c 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -345,6 +345,7 @@ JSSRC= \
sdn/dns/PowerdnsEdit.js \
sdn/zones/Base.js \
sdn/zones/EvpnEdit.js \
+ sdn/zones/OvnEdit.js \
sdn/zones/QinQEdit.js \
sdn/zones/SimpleEdit.js \
sdn/zones/VlanEdit.js \
diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index 734fe2e0..aa13be60 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -981,6 +981,11 @@ Ext.define('PVE.Utils', {
ipanel: 'EvpnInputPanel',
faIcon: 'th',
},
+ ovn: {
+ name: 'OVN',
+ ipanel: 'OvnInputPanel',
+ faIcon: 'th',
+ },
},
sdncontrollerSchema: {
diff --git a/www/manager6/sdn/VnetEdit.js b/www/manager6/sdn/VnetEdit.js
index dd1ae329..b64f8974 100644
--- a/www/manager6/sdn/VnetEdit.js
+++ b/www/manager6/sdn/VnetEdit.js
@@ -131,7 +131,7 @@ Ext.define('PVE.sdn.VnetInputPanel', {
let me = this;
let tagField = me.down('#sdnVnetTagField');
- if (!zoneType || zoneType === 'simple') {
+ if (!zoneType || zoneType === 'simple' || zoneType === 'ovn') {
tagField.setDisabled(true);
tagField.setValue('');
tagField.allowBlank = true;
@@ -143,7 +143,7 @@ Ext.define('PVE.sdn.VnetInputPanel', {
tagField.validate();
let vlanField = me.down('#sdnVnetVlanAwareField');
- if (!zoneType || zoneType === 'evpn') {
+ if (!zoneType || zoneType === 'evpn' || zoneType === 'ovn') {
vlanField.setDisabled(true);
vlanField.setValue('');
} else {
diff --git a/www/manager6/sdn/zones/OvnEdit.js b/www/manager6/sdn/zones/OvnEdit.js
new file mode 100644
index 00000000..ca05a970
--- /dev/null
+++ b/www/manager6/sdn/zones/OvnEdit.js
@@ -0,0 +1,47 @@
+Ext.define('PVE.sdn.zones.OvnInputPanel', {
+ extend: 'PVE.panel.SDNZoneBase',
+
+ initComponent: function () {
+ let me = this;
+
+ me.items = [
+ {
+ xtype: 'pveSDNControllerSelector',
+ fieldLabel: gettext('Controller'),
+ name: 'controller',
+ controllerType: 'ovn',
+ value: '',
+ allowBlank: false,
+ },
+ {
+ xtype: 'proxmoxKVComboBox',
+ name: 'port-security',
+ value: '',
+ emptyText: Proxmox.Utils.defaultText + ' (' + gettext('Off') + ')',
+ 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),
+ },
+ deleteEmpty: !me.isCreate,
+ },
+ ];
+
+ me.callParent();
+ },
+});
--
2.47.3
next prev parent reply other threads:[~2026-11-27 10:39 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 ` Rémi PAETA [this message]
2026-11-27 10:28 ` [RFC PATCH v2 manager 13/15] ui: sdn: vnet: add port security for ovn zones Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 14/15] ui: sdn: vnet: disable isolate ports " 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-13-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.