Sha256: 2dd48250c01ca8035f41f7a68784e82fd6d800acbb97f8ae0536e5eb1552a182
Contents?: true
Size: 432 Bytes
Versions: 31
Compression:
Stored size: 432 Bytes
Contents
class NXOS < Oxidized::Model prompt /^(\r?[\w.@_()-]+[#]\s?)$/ comment '! ' cmd 'show version' do |cfg| cfg = cfg.each_line.take_while { |line| not line.match(/uptime/i) } comment cfg.join "" end cmd 'show inventory' do |cfg| comment cfg end cmd 'show running-config' do |cfg| cfg.gsub! /^!Time:[^\n]*\n/, '' end cfg :ssh do post_login 'terminal length 0' pre_logout 'exit' end end
Version data entries
31 entries across 31 versions & 1 rubygems