diff options
author | roedie <github@roedie.nl> | 2016-02-18 12:32:10 +0100 |
---|---|---|
committer | roedie <github@roedie.nl> | 2016-02-18 12:32:10 +0100 |
commit | d18d81d34a8b9d3e77d3e7085cc03564af29206b (patch) | |
tree | 24a0c597b773cc9a1721b7ea0034ef0a61210edc /lib/oxidized/model/redback.rb | |
parent | 2e7dd813f8659e9418b65983b661b48a1aaf832e (diff) |
Add support for Ericsson Redback
Diffstat (limited to 'lib/oxidized/model/redback.rb')
-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 + |