diff options
author | root <root@ka-ata-killa.panaceas.james.local> | 2021-08-31 17:48:59 +0100 |
---|---|---|
committer | root <root@ka-ata-killa.panaceas.james.local> | 2021-08-31 17:50:15 +0100 |
commit | b6ff4cb4dcc61cb069740b0f0e5098394b4a700d (patch) | |
tree | 5d62291df86e6ce1f64f5659eaf5ec759201c9c3 /INF.pm | |
parent | e8417daed5461bda9fcce0a629bf7c831b070cda (diff) | |
download | inf-b6ff4cb4dcc61cb069740b0f0e5098394b4a700d.tar.gz inf-b6ff4cb4dcc61cb069740b0f0e5098394b4a700d.tar.bz2 inf-b6ff4cb4dcc61cb069740b0f0e5098394b4a700d.zip |
add support for ilo5
(cherry picked from commit 860cff84e4bf068373819bc54bab098a64d3dccb)
Diffstat (limited to 'INF.pm')
-rw-r--r-- | INF.pm | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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); } |