mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-21 16:05:40 +00:00
toolkit: add MacPrefix vtype
useful for our PVE dc/options panel Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5812914ce5
commit
8f449655ad
@ -53,6 +53,12 @@ Ext.apply(Ext.form.field.VTypes, {
|
||||
MacAddressMask: /[a-fA-F0-9:]/,
|
||||
MacAddressText: gettext('Example') + ': 01:23:45:67:89:ab',
|
||||
|
||||
MacPrefix: function(v) {
|
||||
return (/^[a-f0-9]{2}(?::[a-f0-9]{2}){0,2}:?$/i).test(v);
|
||||
},
|
||||
MacPrefixMask: /[a-fA-F0-9:]/,
|
||||
MacPrefixText: gettext('Example') + ': 02:8f',
|
||||
|
||||
BridgeName: function(v) {
|
||||
return (/^vmbr\d{1,4}$/).test(v);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user