refactor: Rename cisco-vrf to vrf and enable discovery for junos os (#8033)

* device: Enable cisco-vrf discovery for junos os

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* refactor: Rename cisco-vrf module into vrf

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
This commit is contained in:
Misha Komarovskiy
2018-01-17 15:09:19 +03:00
committed by Neil Lathwood
parent 76587065cc
commit df731c165c
32 changed files with 36 additions and 29 deletions

View File

@@ -63,7 +63,7 @@ $config['discovery_modules']['mempools'] = 1;
$config['discovery_modules']['cisco-vrf-lite'] = 1;
$config['discovery_modules']['cisco-mac-accounting'] = 0;
$config['discovery_modules']['cisco-pw'] = 0;
$config['discovery_modules']['cisco-vrf'] = 0;
$config['discovery_modules']['vrf'] = 0;
$config['discovery_modules']['cisco-cef'] = 0;
$config['discovery_modules']['cisco-sla'] = 0;
$config['discovery_modules']['cisco-cbqos'] = 0;
@@ -152,7 +152,7 @@ $config['os']['linux']['discovery_modules']['discovery-arp'] = 1;
`cisco-pw`: Pseudowires wires detection and support.
`cisco-vrf`: VRF detection and support.
`vrf`: VRF detection and support.
`cisco-cef`: CEF detection and support.

View File

@@ -780,7 +780,7 @@ $config['discovery_modules']['mempools'] = 1;
$config['discovery_modules']['cisco-vrf-lite'] = 1;
$config['discovery_modules']['cisco-mac-accounting'] = 0;
$config['discovery_modules']['cisco-pw'] = 0;
$config['discovery_modules']['cisco-vrf'] = 0;
$config['discovery_modules']['vrf'] = 0;
$config['discovery_modules']['cisco-cef'] = 0;
$config['discovery_modules']['cisco-sla'] = 0;
$config['discovery_modules']['cisco-cbqos'] = 0;

View File

@@ -24,5 +24,5 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1

View File

@@ -26,7 +26,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysObjectID:

View File

@@ -26,7 +26,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysObjectID: .1.3.6.1.4.1.9.1.1291

View File

@@ -23,7 +23,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysObjectID:

View File

@@ -27,7 +27,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -27,7 +27,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysDescr:

View File

@@ -23,7 +23,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysDescr:

View File

@@ -22,7 +22,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -27,7 +27,7 @@ discovery_modules:
cisco-mac-accounting: 0
cisco-otv: 0
cisco-pw: 0
cisco-vrf: 0
vrf: 0
cisco-vrf-lite: 0
mib_dir:
- cisco

View File

@@ -28,7 +28,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -25,7 +25,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -23,7 +23,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysDescr:

View File

@@ -43,7 +43,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
register_mibs:
ciscoAAASessionMIB: CISCO-AAA-SESSION-MIB

View File

@@ -28,7 +28,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
register_mibs:
ciscoAAASessionMIB: CISCO-AAA-SESSION-MIB

View File

@@ -28,7 +28,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
register_mibs:
ciscoAAASessionMIB: CISCO-AAA-SESSION-MIB

View File

@@ -22,7 +22,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -5,6 +5,8 @@ over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery_modules:
vrf: 1
discovery:
- sysObjectID: .1.3.6.1.4.1.2636
- sysDescr:

View File

@@ -27,7 +27,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysDescr:

View File

@@ -24,7 +24,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysDescr:

View File

@@ -38,7 +38,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysDescr:

View File

@@ -23,7 +23,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -25,7 +25,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
discovery:
- sysDescr:

View File

@@ -18,7 +18,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -22,7 +22,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -18,7 +18,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -18,7 +18,7 @@ discovery_modules:
cisco-mac-accounting: 1
cisco-otv: 1
cisco-pw: 1
cisco-vrf: 1
vrf: 1
cisco-vrf-lite: 1
mib_dir:
- cisco

View File

@@ -32,7 +32,7 @@ discovery_modules:
cisco-pw: 0
cisco-sla: 0
cisco-vrf-lite: 0
cisco-vrf: 0
vrf: 0
libvirt-vminfo: 0
ntp: 0
stp: 0

View File

@@ -49,6 +49,10 @@ if (isset($config['fping_options']['millisec']) && is_numeric($config['fping_opt
$config['fping_options']['interval'] = $config['fping_options']['millisec'];
}
if (!empty($config['discovery_modules']['cisco-vrf']) && $config['discovery_modules']['cisco-vrf'] === true) {
$config['discovery_modules']['vrf'] = 1;
}
// make sure we have full path to binaries in case PATH isn't set
foreach (array('fping', 'fping6', 'snmpgetnext') as $bin) {
if (!is_executable(Config::get($bin))) {

1
sql-schema/230.sql Normal file
View File

@@ -0,0 +1 @@
UPDATE `devices_attribs` SET `attrib_type` = REPLACE(attrib_type, 'discover_cisco-vrf', 'discover_vrf');