Skip to content

Commit

Permalink
Added ubiquiti as a vendor with its ID (#112)
Browse files Browse the repository at this point in the history
* Added ubiquiti as a vendor with its ID

* Update CHANGES

---------

Co-authored-by: Tobias Oetiker <[email protected]>
  • Loading branch information
BaptisteRichard and oetiker authored Nov 6, 2024
1 parent 433ebfa commit 46cd28f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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

0 comments on commit 46cd28f

Please sign in to comment.