]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
fix #2703: networkedit: limit custom interface name field to 15 characters.
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 14 Oct 2022 07:55:50 +0000 (09:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 14 Oct 2022 13:20:45 +0000 (15:20 +0200)
Linux kernel don't allow interfaces name with more than 15 characters

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
src/node/NetworkEdit.js

index d1ac45407b4b734877602c20255cd6ff65eb3c11..6b254637d80151fca5c97f32febe188bfc324e64 100644 (file)
@@ -246,6 +246,7 @@ Ext.define('Proxmox.node.NetworkEdit', {
            value: me.iface,
            vtype: iface_vtype,
            allowBlank: false,
+           maxLength: 15,
            autoEl: {
                tag: 'div',
                 'data-qtip': gettext('For example, vmbr0.100, vmbr0, vlan0.100, vlan0'),