forked from fusioninventory/fusioninventory-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
79 changed files
with
3,238 additions
and
753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: 2 | ||
|
||
general: | ||
branches: | ||
only: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
macos: | ||
xcode: "9.0" | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: Install cpanminus | ||
command: | | ||
curl -L https://cpanmin.us | perl - App::cpanminus | ||
$HOME/perl5/bin/cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) | ||
echo 'export PERL5LIB="$HOME/perl5/lib/perl5"' >> $BASH_ENV | ||
- run: | ||
name: Install deps | ||
command: | | ||
echo $PERL5LIB | ||
$HOME/perl5/bin/cpanm -L ~/perl5 Module::Install | ||
touch Makefile.PL | ||
$HOME/perl5/bin/cpanm -L ~/perl5 --installdeps --verbose --notest . | ||
- run: perl Makefile.PL | ||
- run: make | ||
- run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ notifications: | |
branches: | ||
only: | ||
- master | ||
- 2.4.x | ||
- develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ CVS/ | |
^.travis.yml$ | ||
^appveyor.yml$ | ||
^circle.yml$ | ||
.circleci | ||
.svn | ||
.merge | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
branches: | ||
only: | ||
- 2.4.x | ||
- develop | ||
|
||
notifications: | ||
- provider: Email | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package FusionInventory::Agent::SNMP::MibSupport::Brocade; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use parent 'FusionInventory::Agent::SNMP::MibSupportTemplate'; | ||
|
||
use FusionInventory::Agent::Tools; | ||
use FusionInventory::Agent::Tools::SNMP; | ||
|
||
use constant brocade => '.1.3.6.1.4.1.1991' ; | ||
use constant serial => brocade .'.1.1.1.1.2.0' ; | ||
use constant fw_pri => brocade . '.1.1.2.1.11.0' ; | ||
|
||
our $mibSupport = [ | ||
{ | ||
name => "brocade-switch", | ||
sysobjectid => getRegexpOidMatch(brocade) | ||
} | ||
]; | ||
|
||
sub getSerial { | ||
my ($self) = @_; | ||
|
||
return $self->get(serial); | ||
} | ||
|
||
|
||
sub getFirmware { | ||
my ($self) = @_; | ||
|
||
return $self->get(fw_pri); | ||
} | ||
|
||
1; | ||
|
||
__END__ | ||
=head1 NAME | ||
Inventory module for Brocade Switches | ||
=head1 DESCRIPTION | ||
The module enhances Brocade Switches devices support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.