summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/redback.rb22
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
+