r3806 reviewed with the author of the script to make it working again
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 10 Jun 2010 18:52:34 +0000 (18:52 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 10 Jun 2010 18:52:34 +0000 (18:52 +0000)
gateways/deviceconfig/nxos4.connector

index df61f17..a3d8cb4 100755 (executable)
@@ -49,10 +49,8 @@ if ($enable_password ne "-") {
 }
 if ($command eq "get8021q") {
     open(WORKFILE, ">$workfile") || die "$workfile: $!";
-    $session->cmd ('terminal length 0');
-    $session->cmd ('terminal no monitor');
-    $session->cmd ('show running-config vlan 1-4094');
-    $session->cmd ('show running-config interface');
+    $session->put ('terminal length 0');
+    $session->put ('terminal no monitor');
     my @r = $session->cmd ('show running-config vlan 1-4094');
     print WORKFILE @r;
     @r = $session->cmd('show running-config interface');