Class: Fog::Compute::OpenNebula::Network
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::OpenNebula::Network
- Defined in:
- lib/fog/opennebula/models/compute/network.rb
Instance Method Summary collapse
Instance Method Details
#description ⇒ Object
15 16 17 |
# File 'lib/fog/opennebula/models/compute/network.rb', line 15 def description attributes[:description] || "" end |
#save ⇒ Object
23 24 25 |
# File 'lib/fog/opennebula/models/compute/network.rb', line 23 def save raise Fog::Errors::Error.new('Creating a new network is not yet implemented. Contributions welcome!') end |
#shutdown ⇒ Object
27 28 29 |
# File 'lib/fog/opennebula/models/compute/network.rb', line 27 def shutdown raise Fog::Errors::Error.new('Shutting down a new network is not yet implemented. Contributions welcome!') end |
#to_label ⇒ Object
31 32 33 34 35 36 |
# File 'lib/fog/opennebula/models/compute/network.rb', line 31 def to_label ret = "" ret += "#{description} - " unless description.empty? ret += "VLAN #{vlan} - " unless vlan.empty? ret += "#{name}" end |
#vlan ⇒ Object
19 20 21 |
# File 'lib/fog/opennebula/models/compute/network.rb', line 19 def vlan attributes[:vlan] || "" end |