[-]
[+]
|
Changed |
rancid.spec
|
|
[-]
[+]
|
Added |
rancid-3.2-brocadevdx.patch
^
|
@@ -0,0 +1,31 @@
+--- bin/clogin.in.orig 2015-05-29 15:06:34.994161664 +0200
++++ bin/clogin.in 2015-05-29 15:08:23.456801912 +0200
+@@ -942,9 +942,14 @@
+ expect -re $prompt {}
+ send "set logging session disable\r"
+ } else {
+- send "terminal length 0\r"
+- expect -re $prompt {}
+- send "terminal width 132\r"
++ if { [string compare "brocadevdx" "$platform"] } {
++ send "terminal length 0\r"
++ expect -re $prompt {}
++ } else {
++ send "terminal length 0\r"
++ expect -re $prompt {}
++ send "terminal width 132\r"
++ }
+ }
+ expect -re $prompt {}
+ } else {
+--- lib/foundry.pm.in.orig 2015-05-29 15:24:49.881449738 +0200
++++ lib/foundry.pm.in 2015-05-29 15:24:59.441461206 +0200
+@@ -350,7 +350,7 @@
+
+ ProcessHistory("","","","$_");
+ # end of config
+- if (/^end$/) {
++ if (/^end$/ || /!$/) {
+ $found_end = 1;
+ return(1);
+ }
|
[-]
[+]
|
Added |
rancid.types.conf
^
|
@@ -0,0 +1,7 @@
+brocadevdx;script;rancid -t foundry
+brocadevdx;login;clogin
+brocadevdx;module;foundry
+brocadevdx;inloop;foundry::inloop
+brocadevdx;command;foundry::ShowVersion;show version all-partitions
+brocadevdx;command;foundry::ShowChassis;show chassis
+brocadevdx;command;foundry::WriteTerm;show running-config
|