lib/yao/resources/port.rb in yao-0.13.4 vs lib/yao/resources/port.rb in yao-0.14.0

- old
+ new

@@ -7,13 +7,15 @@ friendly_attributes :name, :mac_address, :status, :allowed_address_pairs, :device_owner, :fixed_ips, :security_groups, :device_id, :admin_state_up map_attribute_to_attribute "binding:host_id" => :host_id + # @return [String] def primary_ip fixed_ips.first["ip_address"] end + # @return [Yao::Resources::Subnet] def primary_subnet @subnet ||= Yao::Subnet.find fixed_ips.first["subnet_id"] end self.service = "network"