Sha256: b074cff7ec709fc0fa7aab575bfe75cca17749dd6ec32b992925aff95d602d71
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
module Yao::Resources class Network < Base include TenantAssociationable friendly_attributes :name, :status, :shared, :subnets, :admin_state_up map_attribute_to_attribute "provider:physical_network" => :physical_network map_attribute_to_attribute "provider:network_type" => :type map_attribute_to_attribute "provider:segmentation_id" => :segmentation_id alias shared? shared self.service = "network" self.resource_name = "network" self.resources_name = "networks" # @return [Array<Yao::Resources::Port>] def ports @ports ||= Yao::Port.list(network_id: id) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yao-0.15.0 | lib/yao/resources/network.rb |
yao-0.14.0 | lib/yao/resources/network.rb |