Sha256: f5fcb8b6ac3e8bdcb256a7a9e2417c8dbac230926b3821170a9d5a9f4d77da13

Contents?: true

Size: 403 Bytes

Versions: 24

Compression:

Stored size: 403 Bytes

Contents

class Edgeos < Oxidized::Model

  # EdgeOS #

  prompt /\@.*?\:~\$\s/

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

  cmd :secret do |cfg|
    cfg.gsub! /community (\S+) {/, 'community <hidden> {'
    cfg
  end

  cmd 'show configuration | no-more'

  cfg :telnet do
    username  /login:\s/
    password  /^Password:\s/
  end

  cfg :telnet, :ssh do
    pre_logout 'exit'
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
oxidized-0.21.0 lib/oxidized/model/edgeos.rb
oxidized-0.20.0 lib/oxidized/model/edgeos.rb
oxidized-0.19.0 lib/oxidized/model/edgeos.rb
oxidized-0.18.0 lib/oxidized/model/edgeos.rb
oxidized-0.17.0 lib/oxidized/model/edgeos.rb
oxidized-0.16.3 lib/oxidized/model/edgeos.rb
oxidized-0.16.2 lib/oxidized/model/edgeos.rb
oxidized-0.16.1 lib/oxidized/model/edgeos.rb
oxidized-0.16.0 lib/oxidized/model/edgeos.rb
oxidized-0.15.0 lib/oxidized/model/edgeos.rb
oxidized-0.14.3 lib/oxidized/model/edgeos.rb
oxidized-0.14.2 lib/oxidized/model/edgeos.rb
oxidized-0.14.1 lib/oxidized/model/edgeos.rb
oxidized-0.14.0 lib/oxidized/model/edgeos.rb
oxidized-0.13.1 lib/oxidized/model/edgeos.rb
oxidized-0.13.0 lib/oxidized/model/edgeos.rb
oxidized-0.12.2 lib/oxidized/model/edgeos.rb
oxidized-0.12.1 lib/oxidized/model/edgeos.rb
oxidized-0.12.0 lib/oxidized/model/edgeos.rb
oxidized-0.11.0 lib/oxidized/model/edgeos.rb