+ } elsif ( $buff =~ m/% Invalid input detected at .* marker/ ) {
+
+ # try to rewrite command differences
+
+ if ( $command =~ m/show lldp neighbors/ ) {
+ unshift @commands_while, 'show lldp remote-device all';
+ undef $command; # don't save this command
+ $buff = '';
+ }
+
+ warn "# commands_while = ",dump( \@commands_while );
+