Return "zeroDotZero" for slots and containers in e_type()
This commit is contained in:
@@ -743,7 +743,6 @@ sub root_ip {
|
|||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Psuedo ENTITY-MIB methods
|
# Psuedo ENTITY-MIB methods
|
||||||
|
|
||||||
sub e_index {
|
sub e_index {
|
||||||
@@ -1004,6 +1003,9 @@ sub e_type {
|
|||||||
# Handle Processor / Link Modules first
|
# Handle Processor / Link Modules first
|
||||||
foreach my $idx (keys %$wf_mb){
|
foreach my $idx (keys %$wf_mb){
|
||||||
my $index = "$idx"."0000";
|
my $index = "$idx"."0000";
|
||||||
|
unless ($bp_id =~ /an|arn|asn/) {
|
||||||
|
$wf_e_type{$index} = "zeroDotZero";
|
||||||
|
}
|
||||||
foreach my $slot (@slots) {
|
foreach my $slot (@slots) {
|
||||||
$index ++;
|
$index ++;
|
||||||
$wf_e_type{$index} = $slot->{$idx} if $slot->{$idx};
|
$wf_e_type{$index} = $slot->{$idx} if $slot->{$idx};
|
||||||
@@ -1015,6 +1017,7 @@ sub e_type {
|
|||||||
next unless $main_mod;
|
next unless $main_mod;
|
||||||
my $index = join('',map { sprintf "%02d",$_ } split /\./, $iid);
|
my $index = join('',map { sprintf "%02d",$_ } split /\./, $iid);
|
||||||
$index = "$index"."00";
|
$index = "$index"."00";
|
||||||
|
$wf_e_type{$index} = "zeroDotZero";
|
||||||
foreach my $mod (@mods) {
|
foreach my $mod (@mods) {
|
||||||
$index ++;
|
$index ++;
|
||||||
$wf_e_type{$index} = $mod->{$iid} if $mod->{$iid};
|
$wf_e_type{$index} = $mod->{$iid} if $mod->{$iid};
|
||||||
|
|||||||
Reference in New Issue
Block a user