Alternative simpler and (i hope) usable method
i've searched the entire filesystem where PVE uses vmbr
this can be an alternative patch
In this case i've changed only
m/^vmbr\d+$/
in
m/^vmbr\d+\w*$/
and changed the js verification
You can use:
vmbr0
or
vmbr0lan
and this does not affect none of the ip or route commands
nor the ifconfig,
We have an intuitive name,
i think that
vmbr0lan
vmbr1dmz
vmbr2wifi
vmbr3vpn
vmbr4net
is better than
vmbr0
vmbr1
vmbr2
vmbr3
vmbr4
Of course this is only a proposal...
You are free to trash the entire patch
Ciao, Diaolin
---
S’à destacà l’ultima föia dal bósch nét
crodàda l’ei, solàgna, ‘n mèzz ai sàssi
e ‘ntant fis-ciava ‘n zìfol de oseleti
a tegnìr vìo ‘l pensér che vèn matìna
[Diaolin]
diff -r change/perl5/PVE/INotify.pm real/perl5/PVE/INotify.pm
705c705
< if ($line =~ m/^[a-f0-9]{32}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+(lo|eth\d+|vmbr\d+\w*|bond\d+)$/) {
---
> if ($line =~ m/^[a-f0-9]{32}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+(lo|eth\d+|vmbr\d+|bond\d+)$/) {
799c799
< } elsif ($iface =~ m/^vmbr\d+\w*$/) {
---
> } elsif ($iface =~ m/^vmbr\d+$/) {
845c845
< if ($d->{bridge_ports} || ($iface =~ m/^vmbr\d+\w*$/)) {
---
> if ($d->{bridge_ports} || ($iface =~ m/^vmbr\d+$/)) {
850c850
< if ($d->{bridge_stp} || ($iface =~ m/^vmbr\d+\w*$/)) {
---
> if ($d->{bridge_stp} || ($iface =~ m/^vmbr\d+$/)) {
856c856
< if (defined ($d->{bridge_fd}) || ($iface =~ m/^vmbr\d+\w*$/)) {
---
> if (defined ($d->{bridge_fd}) || ($iface =~ m/^vmbr\d+$/)) {
924c924
< } elsif ($iface =~ m/^vmbr\d+\w*$/) {
---
> } elsif ($iface =~ m/^vmbr\d+$/) {
diff -r change/pve-manager/ext4/pvemanagerlib.js real/pve-manager/ext4/pvemanagerlib.js
71c71
< return (/^vmbr\d{1,4}\w*$/).test(v);
---
> return (/^vmbr\d{1,4}$/).test(v);
73c73
< BridgeNameText: gettext('Format') + ': vmbr<b>N</b>MnemonicName, where 0 <= <b>N</b> <= 9999',
---
> BridgeNameText: gettext('Format') + ': vmbr<b>N</b>, where 0 <= <b>N</b> <= 9999',
_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user