From d18d81d34a8b9d3e77d3e7085cc03564af29206b Mon Sep 17 00:00:00 2001 From: roedie Date: Thu, 18 Feb 2016 12:32:10 +0100 Subject: Add support for Ericsson Redback --- lib/oxidized/model/redback.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/oxidized/model/redback.rb (limited to 'lib/oxidized') 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 + -- cgit v1.2.1