remove phone_ouis and wap_ouis code
This commit is contained in:
@@ -853,20 +853,6 @@ sub store_neighbors {
|
|||||||
$device->ip, $remote_ip, ($remote_type || ''), $port;
|
$device->ip, $remote_ip, ($remote_type || ''), $port;
|
||||||
push @to_discover, [$remote_ip, $remote_type];
|
push @to_discover, [$remote_ip, $remote_type];
|
||||||
|
|
||||||
# further device type discovery using MAC OUI
|
|
||||||
# only works once device is fully discovered (so we have a MAC addr)
|
|
||||||
my $neigh = get_device($remote_ip);
|
|
||||||
if (blessed $neigh and $neigh->in_storage and $neigh->mac) {
|
|
||||||
if (match_devicetype($neigh->mac, 'phone_ouis')) {
|
|
||||||
$remote_type = 'IP Phone: '. $remote_type
|
|
||||||
if $remote_type !~ /ip.phone/i;
|
|
||||||
}
|
|
||||||
elsif (match_devicetype($neigh->mac, 'wap_ouis')) {
|
|
||||||
$remote_type = 'AP: '. $remote_type
|
|
||||||
if $remote_type !~ /^AP: /;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$remote_port = $c_port->{$entry};
|
$remote_port = $c_port->{$entry};
|
||||||
if (defined $remote_port) {
|
if (defined $remote_port) {
|
||||||
# clean weird characters
|
# clean weird characters
|
||||||
|
|||||||
@@ -1260,18 +1260,6 @@ To find the received Platforms on an upstream device, run this command:
|
|||||||
|
|
||||||
~netdisco/bin/netdisco-do show -d <IP-of-device> -e c_platform
|
~netdisco/bin/netdisco-do show -d <IP-of-device> -e c_platform
|
||||||
|
|
||||||
=head3 C<phone_ouis>
|
|
||||||
|
|
||||||
Value: List of Strings. Default: Empty List.
|
|
||||||
|
|
||||||
If you can't get C<phone_capabilities> or C<phone_platforms> to match, as a
|
|
||||||
last ditch attempt you can match on the MAC address of the device (if it has
|
|
||||||
one). This is a set of regular expressions matched against the whole MAC
|
|
||||||
address (not only the OUI portion) in IEEE format. For example:
|
|
||||||
|
|
||||||
phone_ouis:
|
|
||||||
- '^a4:0c:c3'
|
|
||||||
|
|
||||||
=head3 C<wap_capabilities>
|
=head3 C<wap_capabilities>
|
||||||
|
|
||||||
Value: List of Strings. Default:
|
Value: List of Strings. Default:
|
||||||
@@ -1304,18 +1292,6 @@ To find the received Platforms on an upstream device, run this command:
|
|||||||
|
|
||||||
~netdisco/bin/netdisco-do show -d <IP-of-device> -e c_platform
|
~netdisco/bin/netdisco-do show -d <IP-of-device> -e c_platform
|
||||||
|
|
||||||
=head3 C<wap_ouis>
|
|
||||||
|
|
||||||
Value: List of Strings. Default: Empty List.
|
|
||||||
|
|
||||||
If you can't get C<wap_capabilities> or C<wap_platforms> to match, as a last
|
|
||||||
ditch attempt you can match on the MAC address of the device (if it has one).
|
|
||||||
This is a set of regular expressions matched against the whole MAC address
|
|
||||||
(not only the OUI portion) in IEEE format. For example:
|
|
||||||
|
|
||||||
wap_ouis:
|
|
||||||
- '^a4:0c:c3'
|
|
||||||
|
|
||||||
=head2 Backend Daemon
|
=head2 Backend Daemon
|
||||||
|
|
||||||
=head3 C<workers>
|
=head3 C<workers>
|
||||||
@@ -1475,6 +1451,14 @@ These settings are from Netdisco 1.x but are yet to be supported in Netdisco
|
|||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
|
C<phone_ouis>
|
||||||
|
|
||||||
|
=item *
|
||||||
|
|
||||||
|
C<wap_ouis>
|
||||||
|
|
||||||
|
=item *
|
||||||
|
|
||||||
C<col_xxx_show>
|
C<col_xxx_show>
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|||||||
@@ -192,14 +192,12 @@ phone_capabilities:
|
|||||||
- '(?i:phone)'
|
- '(?i:phone)'
|
||||||
phone_platforms:
|
phone_platforms:
|
||||||
- '(?i:mitel.5\d{3})'
|
- '(?i:mitel.5\d{3})'
|
||||||
phone_ouis: []
|
|
||||||
wap_capabilities:
|
wap_capabilities:
|
||||||
- 'wlanAccessPoint'
|
- 'wlanAccessPoint'
|
||||||
wap_platforms:
|
wap_platforms:
|
||||||
- '(?i:\bw?ap\b)'
|
- '(?i:\bw?ap\b)'
|
||||||
- 'cisco\s+AIR-[L|C]?AP'
|
- 'cisco\s+AIR-[L|C]?AP'
|
||||||
- '-K9W8-'
|
- '-K9W8-'
|
||||||
wap_ouis: []
|
|
||||||
|
|
||||||
# --------------
|
# --------------
|
||||||
# BACKEND DAEMON
|
# BACKEND DAEMON
|
||||||
|
|||||||
Reference in New Issue
Block a user