From 1d286d8388dabed0123e1ab914278810178baa72 Mon Sep 17 00:00:00 2001 From: Eric Miller <> Date: Mon, 19 Nov 2007 02:50:42 +0000 Subject: [PATCH] Add rc_virt_mask and rc_cpu_mask so that we can get masks on virtual and cpu interfaces --- Info/RapidCity.pm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Info/RapidCity.pm b/Info/RapidCity.pm index 8254c17c..3672822e 100644 --- a/Info/RapidCity.pm +++ b/Info/RapidCity.pm @@ -53,6 +53,7 @@ use vars qw/$VERSION %FUNCS %GLOBALS %MIBS %MUNGE/; 'rc_ch_rev' => 'rcChasHardwareRevision', 'rc_base_mac' => 'rc2kChassisBaseMacAddr', 'rc_virt_ip' => 'rcSysVirtualIpAddr', + 'rc_virt_mask' => 'rcSysVirtualNetMask', ); %FUNCS = ( @@ -68,6 +69,7 @@ use vars qw/$VERSION %FUNCS %GLOBALS %MIBS %MUNGE/; 'rc_cpu_admin' => 'rc2kCpuEthernetPortAdminStatus', 'rc_cpu_oper' => 'rc2kCpuEthernetPortOperStatus', 'rc_cpu_ip' => 'rc2kCpuEthernetPortAddr', + 'rc_cpu_mask' => 'rc2kCpuEthernetPortMask', 'rc_cpu_auto' => 'rc2kCpuEthernetPortAutoNegotiate', 'rc_cpu_duplex_admin' => 'rc2kCpuEthernetPortAdminDuplex', 'rc_cpu_duplex' => 'rc2kCpuEthernetPortOperDuplex', @@ -406,7 +408,7 @@ sub set_remove_i_vlan_tagged { # print "Error: Unable to activate VLAN: $vlan_id\n" if $rapidcity->debug(); # return undef; # } -# my $rv = $rapidcity->set_rc_vlan_name($name, $vlan_id); +# my $rv = $rapidcity->set_v_name($name, $vlan_id); # unless ($rv) { # print "Error: Unable to create VLAN: $vlan_id\n" if $rapidcity->debug(); # return undef; @@ -596,6 +598,10 @@ These are methods that return scalar values from SNMP (B) +=item $rapidcity->rc_virt_mask() + +(B) + =item $rapidcity->tftp_host() (B) @@ -710,6 +716,10 @@ These are the VLANs which are members of the egress list for the port. (B) +=item $rapidcity->rc_cpu_mask() + +(B) + =item $rapidcity->rc_cpu_auto() (B) @@ -774,7 +784,7 @@ These are the VLANs which are members of the egress list for the port. (B) -=item $rapidcity->rc_vlan_name() +=item $rapidcity->v_name() (B)