From b6ff4cb4dcc61cb069740b0f0e5098394b4a700d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Aug 2021 17:48:59 +0100 Subject: add support for ilo5 (cherry picked from commit 860cff84e4bf068373819bc54bab098a64d3dccb) --- INF.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'INF.pm') diff --git a/INF.pm b/INF.pm index 20b41b8..58a5964 100644 --- a/INF.pm +++ b/INF.pm @@ -1,8 +1,9 @@ package INF; use INF::APC; use INF::DSRx020; -use INF::ILO; use INF::ILO2; +use INF::ILO; #ilo 4 confusingly +use INF::ILO5; use INF::SuperMicro; use INF::Cyclades; @@ -35,10 +36,14 @@ sub new ($;$) { return INF::APC->new($inf); } elsif ( $inf->{inf_type} eq 'supermicro' ) { return INF::SuperMicro->new($inf); - } elsif ( $inf->{inf_type} eq 'ilo' ) { - return INF::ILO->new($inf); } elsif ( $inf->{inf_type} eq 'ilo2' ) { return INF::ILO2->new($inf); + } elsif ( $inf->{inf_type} eq 'ilo' ) { + return INF::ILO->new($inf); + } elsif ( $inf->{inf_type} eq 'ilo4' ) { + return INF::ILO->new($inf); + } elsif ( $inf->{inf_type} eq 'ilo5' ) { + return INF::ILO5->new($inf); } elsif ( $inf->{inf_type} eq 'cyclades' ) { return INF::Cyclades->new($inf); } -- cgit v1.2.3