NAME

NetAddr::BridgeID - Object for BridgeIDs (priority/MAC combos)

SYNOPSIS

   use NetAddr::BridgeID;
    
   my $bid;
   $bid = NetAddr::BridgeID->new( '2#00:11:22:aa:bb:cc' );
   $bid = NetAddr::BridgeID->new( bridge_id => '60#0011.22AA.BBCC' );
   
   use NetAddr::MAC;
   my $mac = NetAddr::MAC->new( mac => '0011.22AA.BBCC' );
   
   $bid = NetAddr::BridgeID->new( priority => '60', mac_obj => $mac );
   $bid = NetAddr::BridgeID->new( priority => '60', mac => '0011.22AA.BBCC' );

DESCRIPTION

This object class simply creates a NetAddr::MAC-like object, with a priority for STP Bridge IDs.

METHODS

original

The original bridge ID string, as it was passed to the constructor. If it was passed in pieces (or if parts were left out), it will fill in the gaps to provide a full bridge ID

bridge_id

The bridge ID, with a Cisco-style MAC address (like 0000.1111.2222).

priority

The priority number.

mac_obj

The NetAddr::MAC object tied to this one.

NetAddr::MAC Methods

All of the is_* / as_* / to_* methods are "handled" to the main BridgeID object, so you can access them directly.

AVAILABILITY

The project homepage is https://github.com/SineSwiper/NetAddr-BridgeID/wiki.

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/NetAddr::BridgeID/.

SUPPORT

Internet Relay Chat

You can get live help by using IRC ( Internet Relay Chat ). If you don't know what IRC is, please read this excellent guide: http://en.wikipedia.org/wiki/Internet_Relay_Chat. Please be courteous and patient when talking to us, as we might be busy or sleeping! You can join those networks/channels and get help:

Bugs / Feature Requests

Please report any bugs or feature requests via https://github.com/SineSwiper/NetAddr-BridgeID/issues.

AUTHOR

Brendan Byrd <BBYRD@CPAN.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2012 by Brendan Byrd.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)