diff options
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/redback.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/oxidized/model/redback.rb b/lib/oxidized/model/redback.rb new file mode 100644 index 0000000..f6847f7 --- /dev/null +++ b/lib/oxidized/model/redback.rb @@ -0,0 +1,22 @@ +class Redback < Oxidized::Model + prompt /^([\[\]\w.@-]+[#>]\s?)$/ + # Ericsson Redback + + cmd 'show chassis' + cmd 'show hardware detail' + cmd 'show release' + cmd 'show config' + + cfg :telnet do + username /^login:/ + password /^\r*password:/ + end + + cfg :telnet, :ssh do + post_login 'terminal length 0' + pre_logout 'exit' + pre_logout 'n' + end + +end + |