From 76297426b9c0f462f6ef973e1ede37bdbdf1ee2a Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Tue, 18 Mar 2014 13:57:22 +0200 Subject: Be more liberal about username prompt ^\r? was too strict Also move non-config above of config, rancid-style. Also Procurve is unbelievably shitty crapbox, screen drawing is shit, telnet password is maximum 17 chars, ssh password maximum 16 chars, que? --- lib/oxidized/model/procurve.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index b431629..9654806 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -22,8 +22,6 @@ class Procurve < Oxidized::Model new_cfg end - cmd 'show running-config' - cmd 'show version' do |cfg| comment cfg end @@ -32,9 +30,11 @@ class Procurve < Oxidized::Model comment cfg end + cmd 'show running-config' + cfg :telnet do - username /^\r?Username:/ - password /Password: / + username /Username:/ + password /Password:/ end cfg :telnet, :ssh do -- cgit v1.2.1