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