Class: Copian::Collector::Dell

Inherits:
Generic
  • Object
show all
Defined in:
lib/copian/collector/dell.rb

Instance Method Summary collapse

Methods inherited from Generic

#bandwidth, #descriptions, #initialize, #inspect, #port_stats

Constructor Details

This class inherits a constructor from Copian::Collector::Generic

Instance Method Details

#portsObject

:yields: ifindex, ifname, addresses_array



14
15
16
17
18
19
20
# File 'lib/copian/collector/dell.rb', line 14

def ports # :yields: ifindex, ifname, addresses_array
  load_ifnames

  ports_collector.collect do |port_ifindex, port_addresses|
    yield port_ifindex, @ifnames[port_ifindex], port_addresses
  end
end

#vlansObject

:yields: id, ifindex, name



7
8
9
10
11
12
13
# File 'lib/copian/collector/dell.rb', line 7

def vlans # :yields: id, ifindex, name
  load_ifnames

  vlans_collector.collect do |vlan_id, vlan_index|
    yield vlan_id, vlan_index, @ifnames[vlan_index]
  end
end