r3809 fix the script once more, "put" method didn't work
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 10 Jun 2010 19:12:37 +0000 (19:12 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 10 Jun 2010 19:12:37 +0000 (19:12 +0000)
gateways/deviceconfig/nxos4.connector

index a3d8cb45e6fd64c40d6b3835214cb6c4a60ff729..14d25b48e5a3662a5c73cd19909d88dff8c1ab8f 100755 (executable)
@@ -49,8 +49,8 @@ if ($enable_password ne "-") {
 }
 if ($command eq "get8021q") {
     open(WORKFILE, ">$workfile") || die "$workfile: $!";
-    $session->put ('terminal length 0');
-    $session->put ('terminal no monitor');
+    $session->cmd ('terminal length 0');
+    $session->cmd ('terminal no monitor');
     my @r = $session->cmd ('show running-config vlan 1-4094');
     print WORKFILE @r;
     @r = $session->cmd('show running-config interface');
@@ -60,7 +60,7 @@ if ($command eq "get8021q") {
 if ($command eq "deploy") {
     open(WORKFILE, "<$workfile") || die "$workfile: $!";
     while (<WORKFILE>) {
-        $session->put($_);
+        $session->cmd($_);
     }
     exit(0);
 }