Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ubiquiti as a vendor with its ID #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
From: @BaptisteRichard
* add ubiquity oids to cfgmake
From: tobi
* fix noHC detection in cfgmaker (interfaces with traffic counter = 0 could still be valid)

Expand Down
8 changes: 6 additions & 2 deletions src/bin/cfgmaker
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ sub InterfaceInfo($$$$$) {

if ($routers->{$router}{deviceinfo}{Vendor} eq 'cisco') {
push @Variables, ("ifAlias", "vmVlan", "vlanTrunkPortDynamicStatus");
} elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|dlink|wwp|foundry|dellLan|force10|3com|extremenetworks|openBSD|arista|enterasys|zyxel|vyatta|dcn|brocade|datacom|alcatel|mikrotik|huawei|eltex)/i) {
} elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|dlink|wwp|foundry|dellLan|force10|3com|extremenetworks|openBSD|arista|enterasys|zyxel|vyatta|dcn|brocade|datacom|alcatel|mikrotik|huawei|eltex|ubiquiti)/i) {
push @Variables, "ifAlias";
}

Expand Down Expand Up @@ -1015,7 +1015,11 @@ sub DeviceInfo ($$$) {
'1.3.6.1.4.1.14988.' => 'mikrotik',
'1.3.6.1.4.1.6486.' => 'alcatel',
'1.3.6.1.4.1.2011.' => 'huawei',
'1.3.6.1.4.1.35265.' => 'eltex'
'1.3.6.1.4.1.35265.' => 'eltex',
'1.3.6.1.4.1.4413' => 'ubiquiti',
'1.3.6.1.4.1.41112' => 'ubiquiti'


);
$DevInfo{Vendor} = 'Unknown Vendor - '.$DevInfo{sysObjectID};
foreach (keys %vendorIDs) {
Expand Down
Loading