Sha256: 95fde107fc6a1aab177e05391b46c045371e40af05a1615ea2858baab7a90815

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

class SAOS < Oxidized::Model
  using Refinements

  # Ciena SAOS switch
  # used for 6.x devices

  comment  '! '

  cmd :all do |cfg|
    cfg.cut_both
  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.30.1 lib/oxidized/model/saos.rb
oxidized-0.30.0 lib/oxidized/model/saos.rb
oxidized-0.29.1 lib/oxidized/model/saos.rb