Skip to content

Commit 46cd28f

Browse files
Added ubiquiti as a vendor with its ID (#112)
* Added ubiquiti as a vendor with its ID * Update CHANGES --------- Co-authored-by: Tobias Oetiker <[email protected]>
1 parent 433ebfa commit 46cd28f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/CHANGES

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
From: @BaptisteRichard
2+
* add ubiquity oids to cfgmake
13
From: tobi
24
* fix noHC detection in cfgmaker (interfaces with traffic counter = 0 could still be valid)
35

src/bin/cfgmaker

+6-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ sub InterfaceInfo($$$$$) {
172172

173173
if ($routers->{$router}{deviceinfo}{Vendor} eq 'cisco') {
174174
push @Variables, ("ifAlias", "vmVlan", "vlanTrunkPortDynamicStatus");
175-
} 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) {
175+
} 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) {
176176
push @Variables, "ifAlias";
177177
}
178178

@@ -1015,7 +1015,11 @@ sub DeviceInfo ($$$) {
10151015
'1.3.6.1.4.1.14988.' => 'mikrotik',
10161016
'1.3.6.1.4.1.6486.' => 'alcatel',
10171017
'1.3.6.1.4.1.2011.' => 'huawei',
1018-
'1.3.6.1.4.1.35265.' => 'eltex'
1018+
'1.3.6.1.4.1.35265.' => 'eltex',
1019+
'1.3.6.1.4.1.4413' => 'ubiquiti',
1020+
'1.3.6.1.4.1.41112' => 'ubiquiti'
1021+
1022+
10191023
);
10201024
$DevInfo{Vendor} = 'Unknown Vendor - '.$DevInfo{sysObjectID};
10211025
foreach (keys %vendorIDs) {

0 commit comments

Comments
 (0)