From 9862cff359d6abc7bdc260600acd293d2d85dd2b Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Sat, 17 Mar 2018 13:04:20 +0100 Subject: restore dev comment of @tobbez to aricentiss model --- lib/oxidized/model/aricentiss.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/oxidized/model/aricentiss.rb') diff --git a/lib/oxidized/model/aricentiss.rb b/lib/oxidized/model/aricentiss.rb index 8675263..60c2f48 100644 --- a/lib/oxidized/model/aricentiss.rb +++ b/lib/oxidized/model/aricentiss.rb @@ -1,3 +1,8 @@ +# Developed against: +# #show version +# Switch ID Hardware Version Firmware Version +# 0 SSE-G48-TG4 (P2-01) 1.0.16-9 + class AricentISS < Oxidized::Model prompt (/^(\e\[27m)?[ \r]*\w+# ?$/) -- cgit v1.2.1 From 2978d671a195a024893150cdf27b8a136d18e003 Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Sat, 17 Mar 2018 13:24:02 +0100 Subject: correct typo in command to disable pagination --- lib/oxidized/model/aricentiss.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model/aricentiss.rb') diff --git a/lib/oxidized/model/aricentiss.rb b/lib/oxidized/model/aricentiss.rb index 60c2f48..80735c7 100644 --- a/lib/oxidized/model/aricentiss.rb +++ b/lib/oxidized/model/aricentiss.rb @@ -8,7 +8,7 @@ class AricentISS < Oxidized::Model prompt (/^(\e\[27m)?[ \r]*\w+# ?$/) cfg :ssh do - post_login 'no cli pagignation' + post_login 'no cli pagination' pre_logout 'exit' end -- cgit v1.2.1 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/aricentiss.rb') 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