NetAddr::BridgeID - Object for BridgeIDs (priority/MAC combos)
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' );
This object class simply creates a NetAddr::MAC-like object, with a priority for STP Bridge IDs.
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
The bridge ID, with a Cisco-style MAC address (like
The priority number.
The NetAddr::MAC object tied to this one.
All of the
is_* / as_* / to_* methods are "handled" to the main BridgeID object, so you can access them directly.
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/.
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:
You can connect to the server at 'irc.perl.org' and join this channel: #distzilla then talk to this person for help: SineSwiper.
Please report any bugs or feature requests via https://github.com/SineSwiper/NetAddr-BridgeID/issues.
Brendan Byrd <BBYRD@CPAN.org>
This software is Copyright (c) 2013 by Brendan Byrd.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)