Add pricing information for Rackspace cloud Sydney region.

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/02705944
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/02705944
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/02705944

Branch: refs/heads/trunk
Commit: 02705944abed25e88dbb300f5e8f90a25d79a38b
Parents: 92f32ff
Author: Tomaz Muraus <[email protected]>
Authored: Sat Oct 12 11:12:11 2013 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Sat Oct 12 11:12:11 2013 +0200

----------------------------------------------------------------------
 CHANGES                               |  3 +++
 libcloud/compute/drivers/rackspace.py |  2 ++
 libcloud/data/pricing.json            | 10 ++++++++++
 3 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/02705944/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 324e7b4..a56f782 100644
--- a/CHANGES
+++ b/CHANGES
@@ -101,6 +101,9 @@ Changes with Apache Libcloud in development
       method in the OpenStack driver. (LIBCLOUD-408)
       [Dave King]
 
+    - Add pricing information for Rackspace Cloud Sydney region.
+      [Tomaz Muraus]
+
   *) Storage
 
     - Allow users to filter objects starting with a prefix by passing ex_prefix

http://git-wip-us.apache.org/repos/asf/libcloud/blob/02705944/libcloud/compute/drivers/rackspace.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/rackspace.py 
b/libcloud/compute/drivers/rackspace.py
index ee6dfa8..fd7ba5b 100644
--- a/libcloud/compute/drivers/rackspace.py
+++ b/libcloud/compute/drivers/rackspace.py
@@ -173,6 +173,8 @@ class RackspaceNodeDriver(OpenStack_1_1_NodeDriver):
 
         if region == 'lon':
             self.api_name = 'rackspacenovalon'
+        elif region == 'syd':
+            self.api_name = 'rackspacenovasyd'
         else:
             self.api_name = 'rackspacenovaus'
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/02705944/libcloud/data/pricing.json
----------------------------------------------------------------------
diff --git a/libcloud/data/pricing.json b/libcloud/data/pricing.json
index 7a9b731..6fc7eb2 100644
--- a/libcloud/data/pricing.json
+++ b/libcloud/data/pricing.json
@@ -38,6 +38,16 @@
             "8": 1.612
         },
 
+        "rackspacenovasyd": {
+            "2": 0.026,
+            "3": 0.072,
+            "4": 0.144,
+            "5": 0.288,
+            "6": 0.576,
+            "7": 1.080,
+            "8": 1.440
+        },
+
         "dreamhost": {
             "minimum": 15,
             "maximum": 200,

Reply via email to