Skip to content

Commit 45d0572

Browse files
Remove whitespaces and override default iftype
1 parent 2ed339d commit 45d0572

File tree

1 file changed

+7
-2
lines changed
  • lib/GLPI/Agent/SNMP/MibSupport

1 file changed

+7
-2
lines changed

lib/GLPI/Agent/SNMP/MibSupport/Ubnt.pm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ our $mibSupport = [
3333

3434
sub getFirmware {
3535
my ($self) = @_;
36-
36+
3737
return getCanonicalString($self->get(unifiApSystemVersion));
3838
}
3939

4040
sub getModel {
4141
my ($self) = @_;
42-
42+
4343
return getCanonicalString($self->get(unifiApSystemModel));
4444
}
4545

@@ -99,6 +99,11 @@ sub run {
9999
$device->{PORTS}->{PORT}->{$port}->{IFNAME} .= " (5GHz)";
100100
}
101101

102+
# Replaces the port iftype from "Ethernet" (6) to "WiFi" (71)
103+
if($device->{PORTS}->{PORT}->{$port}->{IFTYPE} == 6) {
104+
$device->{PORTS}->{PORT}->{$port}->{IFTYPE} = 71
105+
}
106+
102107
last;
103108
}
104109
}

0 commit comments

Comments
 (0)