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