Skip to content

Commit

Permalink
refactor: Watchguard Fireware cleanup (#5015)
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant authored and laf committed Nov 18, 2016
1 parent d389069 commit c840f99
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 46 deletions.
10 changes: 0 additions & 10 deletions includes/definitions.inc.php
Expand Up @@ -1812,16 +1812,6 @@
$config['os'][$os]['text'] = 'Symbol AP';
$config['os'][$os]['icon'] = 'symbol';

$os = 'firebox';
$config['os'][$os]['text'] = 'Watchguard Firebox';
$config['os'][$os]['type'] = 'firewall';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Traffic';
$config['os'][$os]['over'][1]['graph'] = 'device_processor';
$config['os'][$os]['over'][1]['text'] = 'CPU Usage';
$config['os'][$os]['icon'] = 'watchguard';
$config['os'][$os]['group'] = 'watchguard';

$os = 'fireware';
$config['os'][$os]['text'] = 'Watchguard Fireware';
$config['os'][$os]['type'] = 'firewall';
Expand Down
5 changes: 0 additions & 5 deletions includes/discovery/os/firebox.inc.php

This file was deleted.

2 changes: 1 addition & 1 deletion includes/discovery/os/fireware.inc.php
Expand Up @@ -11,6 +11,6 @@
* the source code distribution for details.
*/

if (starts_with($sysDescr, array('XTM', 'FBX'), true)) {
if (starts_with($sysObjectId, array('.1.3.6.1.4.1.3097.1.4', '.1.3.6.1.4.1.3097.1.5'))) {
$os = 'fireware';
}
18 changes: 0 additions & 18 deletions includes/discovery/processors/watchguard.inc.php

This file was deleted.

10 changes: 2 additions & 8 deletions tests/OSDiscoveryTest.php
Expand Up @@ -540,8 +540,8 @@ public function testFiberhome()

public function testFireware()
{
$this->checkOS('fireware', 'fireware-xtm');
$this->checkOS('fireware', 'fireware-fbx');
$this->checkOS('fireware', 'fireware-m400');
$this->checkOS('fireware', 'fireware-xtm26w');
}

public function testFlareos()
Expand Down Expand Up @@ -1378,12 +1378,6 @@ public function testWaas()
$this->checkOS('waas');
}

public function testWatchguard()
{
$this->checkOS('firebox');
$this->checkOS('firebox', 'firebox1');
}

public function testWebpower()
{
$this->checkOS('webpower');
Expand Down
1 change: 0 additions & 1 deletion tests/snmpsim/firebox.snmprec

This file was deleted.

1 change: 0 additions & 1 deletion tests/snmpsim/firebox1.snmprec

This file was deleted.

1 change: 0 additions & 1 deletion tests/snmpsim/fireware-fbx.snmprec

This file was deleted.

2 changes: 2 additions & 0 deletions tests/snmpsim/fireware-m400.snmprec
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|M400
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.3097.1.5.49
1 change: 0 additions & 1 deletion tests/snmpsim/fireware-xtm.snmprec

This file was deleted.

2 changes: 2 additions & 0 deletions tests/snmpsim/fireware-xtm26w.snmprec
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|XTM26-W
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.3097.1.5.21

0 comments on commit c840f99

Please sign in to comment.