diff options
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/edgeswitch.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/oxidized/model/edgeswitch.rb b/lib/oxidized/model/edgeswitch.rb new file mode 100644 index 0000000..c303fe2 --- /dev/null +++ b/lib/oxidized/model/edgeswitch.rb @@ -0,0 +1,25 @@ +class EdgeSwitch < Oxidized::Model + +# Ubiquiti EdgeSwitch # + + comment '!' + + prompt /[(]\w*\s\w*[)][\s#>]*[\s#>]/ + + cmd 'show running-config' do |cfg| + comment cfg + end + + cfg :telnet do + username /Username:\s/ + passsword /^Password:\s/ + end + + cfg :telnet, :ssh do + post_login 'enable' + post_login 'terminal length 0' + pre_logout 'exit' + pre_logout 'exit' + end + +end |