NAME

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

VERSION

Version 0.03

SYNOPSIS

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

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

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

kevin brintnall, <kbrint at rufus.net>

COPYRIGHT & LICENSE

Copyright 2008 kevin brintnall, all rights reserved.

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