Sha256: 2d3178e9f248ab3e5251ac504380d8ebb618a099ce93a3fc713f6a103370b59c
Contents?: true
Size: 895 Bytes
Versions: 2
Compression:
Stored size: 895 Bytes
Contents
require 'netutils/cli/cisco/interface' require 'netutils/cli/cisco/cdp' require 'netutils/cli/cisco/macfib' require 'netutils/cli/cisco/showarp' require 'netutils/cli/cisco/showroute' require 'netutils/cli/cisco/showvrf' module Cisco CONFIG_RE = /^.*Current configuration[^\n]+\n(.*)\n.*$/m def disable_logging_console configure cmd('no loggin console') unconfigure end def acl_definition(type, name) case type when 'ip' when 'mac' "#{type} access-list extended #{name}" else raise(ArgumentError, "Unsupported ACL type: #{type}") end end def acl_type_to_cmd(type) case type when 'ip' when 'mac' # # we here use only ``mac'' even though mac-ip and # mac-ipv6 are available. # type = 'mac' else raise(ArgumentError, "Unsupported ACL type: #{type}") end type end def show_running_config return cmd('show running-config') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
netutils-0.1.2 | lib/netutils/cli/cisco.rb |
netutils-0.1.1 | lib/netutils/cli/cisco.rb |