diff options
author | Nagainos <root@nagainos.net> | 2017-08-15 14:20:57 +0200 |
---|---|---|
committer | Danilo Sousa <danilopopeye@users.noreply.github.com> | 2017-08-21 18:02:46 -0300 |
commit | b13c911751f18165d681610c29f43cb61d631a03 (patch) | |
tree | afa460e3d4b20bba98ebac300d38df66d739dbf0 /lib/oxidized/model | |
parent | c5259b379534fc02a176a857faa7e2fd8f8196a5 (diff) |
Added enable mode support for Ericsson SE100
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/ipos.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/oxidized/model/ipos.rb b/lib/oxidized/model/ipos.rb index 5efd831..938f12d 100644 --- a/lib/oxidized/model/ipos.rb +++ b/lib/oxidized/model/ipos.rb @@ -3,7 +3,7 @@ class IPOS < Oxidized::Model # Ericsson SSR (IPOS) # Redback SE (SEOS) - prompt /^([\[\]\w.@-]+[#>]\s?)$/ + prompt /^([\[\]\w.@-]+[#:>]\s?)$/ comment '! ' cmd 'show chassis' do |cfg| @@ -52,6 +52,12 @@ class IPOS < Oxidized::Model cfg :telnet, :ssh do post_login 'terminal length 0' + if vars :enable + post_login do + cmd "enable" + cmd vars(:enable) + end + end pre_logout do send "exit\n" send "n\n" |