mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
76587065cc
commit
df731c165c
@@ -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.
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
1
sql-schema/230.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `devices_attribs` SET `attrib_type` = REPLACE(attrib_type, 'discover_cisco-vrf', 'discover_vrf');
|
Reference in New Issue
Block a user