projects
/
dell-switch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use bro if mac is not found in local arp
[dell-switch]
/
dell-switch.pl
diff --git
a/dell-switch.pl
b/dell-switch.pl
index
9b0c3f7
..
efff4ba
100755
(executable)
--- a/
dell-switch.pl
+++ b/
dell-switch.pl
@@
-107,6
+107,8
@@
while() {
} elsif ( $buff =~ m{\QOverwrite file [startup-config] ?[Yes/press any key for no]....\E} ) {
send_pty "y";
$buff = '';
} elsif ( $buff =~ m{\QOverwrite file [startup-config] ?[Yes/press any key for no]....\E} ) {
send_pty "y";
$buff = '';
+ } elsif ( $buff =~ s{Management access will be blocked for the duration of the transfer.*Are you sure you want to start\? \(y/n\) }{}s ) {
+ send_pty 'y';
}
}
}
}