lib/process/cloud/providers/openstack/openstack.rb in lorj_cloud-0.1.3 vs lib/process/cloud/providers/openstack/openstack.rb in lorj_cloud-0.1.4
- old
+ new
@@ -241,9 +241,13 @@
define_obj :port
def_attribute :device_owner
def_attribute :network_id
define_obj :public_ip
+ # Used by floating_ip if needed
+ obj_needs :CloudObject, :network_connection, :for => [:create_e]
+ obj_needs :CloudObject, :external_network, :for => [:create_e]
+
def_attr_mapping :server_id, :instance_id
def_attr_mapping :public_ip, :ip
define_obj :image
def_attr_mapping :image_name, :name