mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 02:12:10 +00:00
network: fix conditional variable declaration
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
329dfb6488
commit
87ff065c98
@ -1674,12 +1674,10 @@ NETWORKDOC
|
||||
|
||||
my ($rootiface, @rest) = split(/[.:]/, $iface);
|
||||
my $childlevel = scalar(@rest);
|
||||
my $n = $ifaces->{$rootiface};
|
||||
my $type = $ifaces->{$rootiface}->{type};
|
||||
return if !$type || $type eq 'unknown';
|
||||
|
||||
my $pri = $if_type_hash->{$n->{type}} + $childlevel
|
||||
if $n->{type} && $n->{type} ne 'unknown';
|
||||
|
||||
return $pri;
|
||||
return $if_type_hash->{$type} + $childlevel
|
||||
};
|
||||
|
||||
foreach my $iface (sort {
|
||||
|
Loading…
Reference in New Issue
Block a user