Sha256: fa6b051105278fd2c8bc44c20ac60c11b64ef5721e8fad11468e41d28be84322

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

class SAOS < Oxidized::Model
  # Ciena SAOS switch
  # used for 6.x devices

  comment  '! '

  cmd :all do |cfg|
    cfg.each_line.to_a[1..-2].join
  end

  cmd 'configuration show' do |cfg|
    cfg.gsub! /^! Created: [^\n]*\n/, ''
    cfg.gsub! /^! On terminal: [^\n]*\n/, ''
    cfg
  end

  cfg :telnet do
    username /login:/
    password /assword:/
  end

  cfg :telnet, :ssh do
    post_login 'system shell set more off'
    post_login 'system shell session set more off'
    pre_logout 'exit'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oxidized-0.24.0 lib/oxidized/model/saos.rb
oxidized-0.23.0 lib/oxidized/model/saos.rb
oxidized-0.22.0 lib/oxidized/model/saos.rb