}
}
+ my $out = $self->command_out("show adsl perf $port");
+ my @lines = split(/\s*[\n\r]+/,$out);
+
+ my $table;
+ foreach my $line ( @lines ) {
+ next if ! $line;
+ if ( $line =~ m/ADSL\s+(\w+)\s+Table/i ) {
+ $table = $1;
+ next;
+ } elsif ( $line =~ m/^(\S+)\s+:\s+(\S)*$/ ) {
+ $hash->{ $table . '_' . $1 } = $2 if defined $2;
+ } else {
+ warn "# IGNORED: $line\n";
+ }
+ }
+
return $hash;
}