mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 11:26:48 +00:00
dont use undefined var $ifcount
This commit is contained in:
parent
c9030d977c
commit
5ffa7628c5
@ -168,10 +168,10 @@ sub activate_bridge_vlan {
|
||||
my @ifaces = ();
|
||||
my $dir = "/sys/class/net/$bridge/brif";
|
||||
PVE::Tools::dir_glob_foreach($dir, '((eth|bond)\d+)', sub {
|
||||
push(@ifaces, $_[0]);
|
||||
push @ifaces, $_[0];
|
||||
});
|
||||
|
||||
die "no physical interface on bridge '$bridge'\n" if $ifcount == 0;
|
||||
die "no physical interface on bridge '$bridge'\n" if scalar(@ifaces) == 0;
|
||||
|
||||
# add bridgevlan if it doesn't already exist
|
||||
if (! -d "/sys/class/net/$bridgevlan") {
|
||||
|
Loading…
Reference in New Issue
Block a user