From 7c5ca77a2e0349b87128fa6d143f391a9204b0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20L=C3=B6nnemark?= Date: Mon, 19 Mar 2018 12:11:21 +0100 Subject: AricentISS: Fix pagination for old OS versions Always issue both 'no cli pagination' and 'no cli pagignation'. Conditionally issuing only the correct variant would require sending the same number of commands to the switch ('show version', 'no cli pagi(g)nation') and also require extra logic in the model. Additionally, always issuing both removes the need for storing information about what OS versions require which command in the model. --- lib/oxidized/model/aricentiss.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/aricentiss.rb b/lib/oxidized/model/aricentiss.rb index 80735c7..8821801 100644 --- a/lib/oxidized/model/aricentiss.rb +++ b/lib/oxidized/model/aricentiss.rb @@ -8,7 +8,10 @@ class AricentISS < Oxidized::Model prompt (/^(\e\[27m)?[ \r]*\w+# ?$/) cfg :ssh do + # "pagination" was misspelled in some (earlier) versions (at least 1.0.16-9) + # 1.0.18-15 is known to include the corrected spelling post_login 'no cli pagination' + post_login 'no cli pagignation' pre_logout 'exit' end -- cgit v1.2.1