From 4d53aa41e2b80c19ba752262349bdfc33ca68660 Mon Sep 17 00:00:00 2001 From: Eric Miller <> Date: Tue, 20 Nov 2007 03:48:20 +0000 Subject: [PATCH] Return "zeroDotZero" for slots and containers in e_type() --- Info/Layer3/BayRS.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Info/Layer3/BayRS.pm b/Info/Layer3/BayRS.pm index b38b0bb0..852152b8 100644 --- a/Info/Layer3/BayRS.pm +++ b/Info/Layer3/BayRS.pm @@ -743,7 +743,6 @@ sub root_ip { return undef; } - # Psuedo ENTITY-MIB methods sub e_index { @@ -1004,6 +1003,9 @@ sub e_type { # Handle Processor / Link Modules first foreach my $idx (keys %$wf_mb){ my $index = "$idx"."0000"; + unless ($bp_id =~ /an|arn|asn/) { + $wf_e_type{$index} = "zeroDotZero"; + } foreach my $slot (@slots) { $index ++; $wf_e_type{$index} = $slot->{$idx} if $slot->{$idx}; @@ -1015,6 +1017,7 @@ sub e_type { next unless $main_mod; my $index = join('',map { sprintf "%02d",$_ } split /\./, $iid); $index = "$index"."00"; + $wf_e_type{$index} = "zeroDotZero"; foreach my $mod (@mods) { $index ++; $wf_e_type{$index} = $mod->{$iid} if $mod->{$iid};