1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
class CiscoNGA < Oxidized::Model comment '# ' prompt /([\w.@-]+[#>]\s?)$/ cmd 'show version' do |cfg| comment cfg end cmd 'show configuration' do |cfg| cfg end cfg :ssh do post_login 'terminal length 0' pre_logout 'exit' end end