This commit is contained in:
Eric Miller
2007-04-17 03:18:58 +00:00
parent 5d9ac88750
commit 7a40aa02ed

View File

@@ -721,6 +721,29 @@ B<dot1qVlanStaticTable>
These are methods that return tables of information in the form of a reference These are methods that return tables of information in the form of a reference
to a hash. to a hash.
=over
=item $bridge->i_vlan()
Returns a mapping between ifIndex and the PVID or default VLAN.
=item $bridge->i_vlan_membership()
Returns reference to hash of arrays: key = ifIndex, value = array of VLAN IDs.
These are the VLANs which are members of the egress list for the port.
Example:
my $interfaces = $bridge->interfaces();
my $vlans = $bridge->i_vlan_membership();
foreach my $iid (sort keys %$interfaces) {
my $port = $interfaces->{$iid};
my $vlan = join(',', sort(@{$vlans->{$iid}}));
print "Port: $port VLAN: $vlan\n";
}
=back
=head2 Forwarding Table (dot1dTpFdbEntry) =head2 Forwarding Table (dot1dTpFdbEntry)
=over =over