Class: Fog::Proxmox::Compute::Interfaces
- Inherits:
-
Collection
- Object
- Collection
- Fog::Proxmox::Compute::Interfaces
- Defined in:
- lib/fog/compute/proxmox/models/interfaces.rb
Overview
class Interfaces Collection of nodes of cluster
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
30 31 32 |
# File 'lib/fog/compute/proxmox/models/interfaces.rb', line 30 def all self end |
#get(id) ⇒ Object
34 35 36 |
# File 'lib/fog/compute/proxmox/models/interfaces.rb', line 34 def get(id) all.find { |interface| interface.identity === id } end |
#next_nicid ⇒ Object
38 39 40 |
# File 'lib/fog/compute/proxmox/models/interfaces.rb', line 38 def next_nicid Fog::Proxmox::ControllerHelper.last_index(Fog::Proxmox::Compute::Interface::NAME, self) + 1 end |