Cisco::Abbrev - Translate to/from Cisco Interface Abbreviations


Cisco-Abbrev documentation  | view source Contained in the Cisco-Abbrev distribution.

Index


NAME

Top

Cisco::Abbrev - Translate to/from Cisco Interface Abbreviations

VERSION

Top

Version 0.03

SYNOPSIS

Top

This module converts between Cisco canonical interface names (i.e. GigabitEthernet0/1) and the abbreviated forms often output by their devices (i.e. Gi0/1).

    use Cisco::Abbrev;

    my $long  = cisco_long_int('Gi0/1');      ## $long='GigabitEthernet0/1';
    my $short = cisco_abbrev_int('GigabitEthernet0/1');   ## $short='Gi0/1';

FUNCTIONS

Top

cisco_long_int($abbrev)

Returns the canonical interface name for an abbreviated form. If the interface type is not recognized, returns undef.

cisco_abbrev_int($long)

Returns the abbreviated form of the canonical interface name. If the interface type is not recognized, returns undef.

OTHER INTERFACE TYPES

Top

If you find any interface types that this module does not handle correctly, please notify the author via CPAN's request system:

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cisco-Abbrev

AUTHOR

Top

kevin brintnall, <kbrint at rufus.net>

COPYRIGHT & LICENSE

Top


Cisco-Abbrev documentation  | view source Contained in the Cisco-Abbrev distribution.