You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2010/11/29 14:16:54 UTC
[PATCH core 2/6] Added public_ip feature for EC2 (Set public IP for instance)
From: Michal Fojtik <mf...@redhat.com>
---
server/lib/deltacloud/base_driver/features.rb | 6 ++++++
server/lib/deltacloud/drivers/ec2/ec2_driver.rb | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/server/lib/deltacloud/base_driver/features.rb b/server/lib/deltacloud/base_driver/features.rb
index de055de..f229fe6 100644
--- a/server/lib/deltacloud/base_driver/features.rb
+++ b/server/lib/deltacloud/base_driver/features.rb
@@ -185,5 +185,11 @@ module Deltacloud
end
end
+ declare_feature :instances, :public_ip do
+ operation :create do
+ param :public_ip, :string, :optional
+ end
+ end
+
end
end
diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index 29ea78e..59206d7 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -41,6 +41,7 @@ module Deltacloud
feature :instances, :user_data
feature :instances, :authentication_key
+ feature :instances, :public_ip
feature :instances, :security_group
feature :images, :owner_id
feature :buckets, :bucket_location
--
1.7.3.2