mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-11 14:00:17 +00:00
Fix syntax of newmib
It has to be referenced as a hash element.
This commit is contained in:
@@ -339,7 +339,7 @@ sub outletpower {
|
||||
|
||||
my $oid = ".1.3.6.1.4.1.2.6.223.8.2.2.1.11";
|
||||
my $type = "INTEGER";
|
||||
if ($session->newmib) {
|
||||
if ($session->{newmib}) {
|
||||
$oid = ".1.3.6.1.4.1.2.6.223.8.2.2.1.13";
|
||||
}
|
||||
|
||||
@@ -393,7 +393,7 @@ sub outletstat {
|
||||
my $oid = ".1.3.6.1.4.1.2.6.223.8.2.2.1.11";
|
||||
my $output;
|
||||
my $statstr;
|
||||
if ($session->newmib) {
|
||||
if ($session->{newmib}) {
|
||||
$oid = ".1.3.6.1.4.1.2.6.223.8.2.2.1.13";
|
||||
}
|
||||
|
||||
@@ -435,11 +435,11 @@ sub connectTopdu {
|
||||
unless ($session) {
|
||||
return;
|
||||
}
|
||||
$session->newmib = 0;
|
||||
$session->{newmib} = 0;
|
||||
my $pduversion = $session->get(".1.3.6.1.4.1.2.6.223.7.3.0");
|
||||
if ($pduversion =~ /(\d+)\.(\d+)_(\d+)/) {
|
||||
if ($1 >= 1 and $2 >= 3 and $3 >= 3) {
|
||||
$session->newmib = 1;
|
||||
$session->{newmib} = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user