Add placeholder method peth_port_power() to PowerEthernet class; overrides

to actually return data in Cisco, Extreme and HP classes.
This commit is contained in:
Jeroen van Ingen
2010-08-23 11:38:55 +00:00
parent bb8fb9d01a
commit 2529305803
5 changed files with 61 additions and 1 deletions

View File

@@ -45,7 +45,10 @@ $VERSION = '2.01';
%GLOBALS = ();
%FUNCS = ( 'cpeth_ent_phy' => 'cpeExtPsePortEntPhyIndex', );
%FUNCS = (
'cpeth_ent_phy' => 'cpeExtPsePortEntPhyIndex',
'peth_port_power' => 'cpeExtPsePortPwrConsumption',
);
%MUNGE = ();
@@ -143,6 +146,11 @@ to a hash.
Maps the C<pethPsePortTable> to C<ifIndex> by way of the F<ENTITY-MIB>.
=item $poe->peth_port_power()
Power supplied by PoE ports, in milliwatts
("cpeExtPsePortPwrConsumption")
=back
=cut