summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorTorbjörn Lönnemark <ketl@nsc.liu.se>2018-03-19 12:11:21 +0100
committerTorbjörn Lönnemark <ketl@nsc.liu.se>2018-03-19 12:31:21 +0100
commit7c5ca77a2e0349b87128fa6d143f391a9204b0f9 (patch)
treed60701df68006c718f15fbeecd8f1a80ea151731 /lib/oxidized
parente5d2430e1a84274d6fe2d80c5d04cf779c5da67c (diff)
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.
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/aricentiss.rb3
1 files changed, 3 insertions, 0 deletions
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