mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Enable support for POE on IOSXE (#8853)
We match "iosxe" OS as well for POE polling on cisco devices, as they are using the same MIBs. This will add support for Catalyst 3850, as well as probably Cat4500 family as well. DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [X] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
committed by
Neil Lathwood
parent
780e842e58
commit
e66b5ec36b
@@ -25,8 +25,8 @@ if (($device['os'] == 'vrp')) {
|
||||
data_update($device, 'poe', $tags, $fields);
|
||||
echo 'PoE(vrp) ';
|
||||
}
|
||||
} elseif (($device['os'] == 'ios')) {
|
||||
// Code for Cisco IOS, tested on 2960X
|
||||
} elseif (($device['os'] == 'ios') || ($device['os'] == 'iosxe')) {
|
||||
// Code for Cisco IOS and IOSXE, tested on 2960X
|
||||
if (isset($this_port['cpeExtPsePortPwrAllocated'])) {
|
||||
// if we have cpeExtPsePortPwrAllocated, we have the complete array so we can populate the RRD
|
||||
$upd = "$polled:".$port['cpeExtPsePortPwrAllocated'].':'.$port['cpeExtPsePortPwrAvailable'].':'.
|
||||
|
Reference in New Issue
Block a user