Class: VagrantPlugins::Openstack::Domain::Subnet

Inherits:
Item
  • Object
show all
Defined in:
lib/vagrant-openstack-provider/client/domain.rb

Instance Attribute Summary collapse

Attributes inherited from Item

#id, #name

Instance Method Summary collapse

Methods inherited from Item

#==

Constructor Details

#initialize(id, name, cidr, enable_dhcp, network_id) ⇒ Subnet

Returns a new instance of Subnet.



145
146
147
148
149
150
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 145

def initialize(id, name, cidr, enable_dhcp, network_id)
  @cidr = cidr
  @enable_dhcp = enable_dhcp
  @network_id = network_id
  super(id, name)
end

Instance Attribute Details

#cidrObject

Returns the value of attribute cidr.



141
142
143
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 141

def cidr
  @cidr
end

#enable_dhcpObject

Returns the value of attribute enable_dhcp.



142
143
144
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 142

def enable_dhcp
  @enable_dhcp
end

#network_idObject

Returns the value of attribute network_id.



143
144
145
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 143

def network_id
  @network_id
end