class OpenStack::Network::Subnet

Attributes

allocation_pools[R]
cidr[R]
dns_nameservers[R]
enable_dhcp[R]
gateway_ip[R]
host_routes[R]
id[R]
ip_version[R]
name[R]
network_id[R]
tenant_id[R]

Public Class Methods

new(subnet_hash={}) click to toggle source
# File lib/openstack/network/subnet.rb, line 17
def initialize(subnet_hash={})
  @id = subnet_hash["id"]
  @network_id = subnet_hash["network_id"]
  @name = subnet_hash["name"]
  @ip_version = subnet_hash["ip_version"]
  @cidr = subnet_hash["cidr"]
  @gateway_ip = subnet_hash["gateway_ip"]
  @dns_nameservers = subnet_hash["dns_nameservers"]
  @allocation_pools = subnet_hash["allocation_pools"]
  @host_routes = subnet_hash["host_routes"]
  @enable_dhcp = subnet_hash["enable_dhcp"]
  @tenant_id = subnet_hash["tenant_id"]
end