lib/sloe/junos.rb in sloe-0.4.0 vs lib/sloe/junos.rb in sloe-0.5.0

- old
+ new

@@ -2,22 +2,14 @@ require 'sloe/common' module Sloe class Junos < Sloe::Common - # attr_reader :snmp - def initialize(args, &block) - # @snmp_args = {:host => args[:target], :mib_dir => args[:mib_dir], :mib_modules => args[:mib_modules]} - # @snmp = SNMP::Manager.new(@snmp_args) - - # if block_given? super( args, &block ) - # return - # else - # super(args) - # self.open - # self - # end + end + + def cli(cmd_str, attrs = nil) + self.rpc.command(cmd_str, attrs) end end end