diff options
author | Saku Ytti <saku@ytti.fi> | 2014-08-06 13:51:08 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-08-06 13:51:08 +0300 |
commit | c7bbdd072c74902edda09a442688291b0d7f1c09 (patch) | |
tree | 1874e1aca68ba172f205fdf02027a26b1171e3d8 /lib/oxidized/model/isam.rb | |
parent | 91b7a0de8dfcabf70f777f97fe8045030ce3c5fc (diff) | |
parent | c2609188c4ac5cc4843e5336e9817d1db31a790c (diff) |
Merge branch 'master' of https://github.com/ytti/oxidized
Diffstat (limited to 'lib/oxidized/model/isam.rb')
-rw-r--r-- | lib/oxidized/model/isam.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/oxidized/model/isam.rb b/lib/oxidized/model/isam.rb new file mode 100644 index 0000000..1709500 --- /dev/null +++ b/lib/oxidized/model/isam.rb @@ -0,0 +1,35 @@ +class ISAM < Oxidized::Model + #Alcatel ISAM 7302/7330 FTTN + + prompt /^([\w.:@-]+>#\s)$/ + comment '# ' + + cmd :all do |cfg| + cfg.each_line.to_a[1..-2].join + end + + cfg :telnet do + username /^login:\s*/ + password /^password:\s*/ + end + + cfg :telnet, :ssh do + post_login 'environment prompt "%n># "' + post_login 'environment mode batch' + post_login 'environment inhibit-alarms print no-more' + pre_logout 'logout' + end + + cmd 'show software-mngt oswp detail' do |cfg| + comment cfg + end + + cmd 'show equipment slot detail' do |cfg| + comment cfg + end + + cmd 'info configure flat' do |cfg| + cfg + end + +end |