- Implement v_index() and v_name() consistently across classes in support of Netdisco 0.96

- Don't query dynamic VLANs - table may be too large on some devices
This commit is contained in:
Eric Miller
2007-11-04 03:29:47 +00:00
parent b17f04e762
commit e51c9c1da2
3 changed files with 58 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ use vars qw/$VERSION %FUNCS %GLOBALS %MIBS %MUNGE/;
'rc_i_vlan_tag' => 'rcVlanPortPerformTagging',
# From RAPID-CITY::rcVlanTable
'rc_vlan_id' => 'rcVlanId',
'rc_vlan_name' => 'rcVlanName',
'v_name' => 'rcVlanName',
'rc_vlan_color' => 'rcVlanColor',
'rc_vlan_if' => 'rcVlanIfIndex',
'rc_vlan_stg' => 'rcVlanStgId',
@@ -267,6 +267,13 @@ sub set_i_speed_admin {
return undef;
}
sub v_index {
my $rapidcity = shift;
my $partial = shift;
return $rapidcity->rc_vlan_id($partial);
}
sub i_vlan {
my $rapidcity = shift;
my $partial = shift;