NAME

SNMP::Insight::Abstraction - Device Abstraction helper role

VERSION

version 0.002

DESCRIPTION

Abstractions implement high level operation that are specific for a class of devices, e.g. retrieving the mac address table from a bridge or a list a installed software from a host.

if ( $device->provides('Host') ) {
    @packages $device->installed_software;
}

if ( $device->provides('Bridge') ) {
    $interface = $device->mac_address_table->{$vlan}->{$mac_addr};
}

Abstractions should hide all SNMP details.

METHODS

provides($name)

Return true if abstraction $name is implemented by the device.

WARNING

Abstrations are not implented yet. Planned for 0.2

AUTHOR

Gabriele Mambrini <g.mambrini@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Gabriele Mambrini.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.