From 20877f5bad4f28eefc6a52b5c69e3914270fd90b Mon Sep 17 00:00:00 2001 From: roedie Date: Sat, 20 Feb 2016 10:49:01 +0100 Subject: Rename to IPOS --- lib/oxidized/model/ipos.rb | 35 +++++++++++++++++++++++++++++++++++ lib/oxidized/model/redback.rb | 34 ---------------------------------- 2 files changed, 35 insertions(+), 34 deletions(-) create mode 100644 lib/oxidized/model/ipos.rb delete mode 100644 lib/oxidized/model/redback.rb (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/ipos.rb b/lib/oxidized/model/ipos.rb new file mode 100644 index 0000000..e20cf40 --- /dev/null +++ b/lib/oxidized/model/ipos.rb @@ -0,0 +1,35 @@ +class IPOS < Oxidized::Model + + # Ericsson SSR (IPOS) + # Redback SE (SEOS) + + prompt /^([\[\]\w.@-]+[#>]\s?)$/ + comment '! ' + + cmd 'show chassis' do |cfg| + comment cfg + end + + cmd 'show hardware detail' do |cfg| + comment cfg + end + + cmd 'show release' do |cfg| + comment cfg + end + + 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 + diff --git a/lib/oxidized/model/redback.rb b/lib/oxidized/model/redback.rb deleted file mode 100644 index fcb370d..0000000 --- a/lib/oxidized/model/redback.rb +++ /dev/null @@ -1,34 +0,0 @@ -class Redback < Oxidized::Model - - # Ericsson Redback - - prompt /^([\[\]\w.@-]+[#>]\s?)$/ - comment '! ' - - cmd 'show chassis' do |cfg| - comment cfg - end - - cmd 'show hardware detail' do |cfg| - comment cfg - end - - cmd 'show release' do |cfg| - comment cfg - end - - 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