Sha256: dc5a58a8fd671875c96218f24275e68dd808d598a0a3ed7fb92626c3dd83c672
Contents?: true
Size: 541 Bytes
Versions: 41
Compression:
Stored size: 541 Bytes
Contents
module Yao::Resources class Subnet < Base friendly_attributes :name, :cidr, :gateway_ip, :network_id, :tenant_id, :ip_version, :dns_nameservers, :host_routes, :enable_dhcp def allocation_pools self["allocation_pools"].map do |pool| pool["start"]..pool["end"] end end def network Yao::Network.find network_id end alias dhcp_enabled? enable_dhcp self.service = "network" self.resource_name = "subnet" self.resources_name = "subnets" end end
Version data entries
41 entries across 41 versions & 1 rubygems