Method: Cisco::ItdService.itds
- Defined in:
- lib/cisco_node_utils/itd_service.rb
.itds ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/cisco_node_utils/itd_service.rb', line 33 def self.itds hash = {} list = [] services = config_get('itd_service', 'all_itds') return hash if services.nil? services.each do |service| # The show cmd shows more than service, # we get other things like device-groups etc. # so filter it out to just get the service next if service.include?('device-group') next if service.include?('session') next if service.include?('statistics') list << service end list.each do |id| hash[id] = ItdService.new(id, false) end hash end |