libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [1/4] libcloud git commit: EC2 provider and node driver for AWS Seoul region
Date Wed, 27 Jan 2016 00:12:53 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 082902efb -> ddfddf5fe
Updated Tags:  refs/tags/v0.20.1-tentative [created] 87deb0449


EC2 provider and node driver for AWS Seoul region


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

Branch: refs/heads/trunk
Commit: 31d9d59ccc92d3e5dccf7acc393a8e32a9871259
Parents: 3246116
Author: Geunwoo Shin <encyphered@gmail.com>
Authored: Tue Jan 26 17:13:59 2016 +0900
Committer: anthony-shaw <anthony.p.shaw@gmail.com>
Committed: Wed Jan 27 11:04:18 2016 +1100

----------------------------------------------------------------------
 libcloud/compute/drivers/ec2.py | 15 +++++++++++++--
 libcloud/compute/providers.py   |  4 ++++
 libcloud/compute/types.py       |  2 ++
 3 files changed, 19 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/31d9d59c/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index e620443..a26295f 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -6359,14 +6359,25 @@ class EC2APSENodeDriver(EC2NodeDriver):
     _region = 'ap-southeast-1'
 
 
-class EC2APNENodeDriver(EC2NodeDriver):
+class EC2APNE1NodeDriver(EC2NodeDriver):
     """
-    Driver class for EC2 in the Northeast Asia Pacific Region.
+    Driver class for EC2 in the Northeast Asia Pacific 1(Tokyo) Region.
     """
     name = 'Amazon EC2 (ap-northeast-1)'
     _region = 'ap-northeast-1'
 
 
+EC2APNENodeDriver = EC2APNE1NodeDriver  # fallback
+
+
+class EC2APNE2NodeDriver(EC2NodeDriver):
+    """
+    Driver class for EC2 in the Northeast Asia Pacific 2(Seoul) Region.
+    """
+    name = 'Amazon EC2 (ap-northeast-2)'
+    _region = 'ap-northeast-2'
+
+
 class EC2SAEastNodeDriver(EC2NodeDriver):
     """
     Driver class for EC2 in the South America (Sao Paulo) Region.

http://git-wip-us.apache.org/repos/asf/libcloud/blob/31d9d59c/libcloud/compute/providers.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/providers.py b/libcloud/compute/providers.py
index f296bc1..8a3793e 100644
--- a/libcloud/compute/providers.py
+++ b/libcloud/compute/providers.py
@@ -43,6 +43,10 @@ DRIVERS = {
     ('libcloud.compute.drivers.ec2', 'EC2APSENodeDriver'),
     Provider.EC2_AP_NORTHEAST:
     ('libcloud.compute.drivers.ec2', 'EC2APNENodeDriver'),
+    Provider.EC2_AP_NORTHEAST1:
+    ('libcloud.compute.drivers.ec2', 'EC2APNE1NodeDriver'),
+    Provider.EC2_AP_NORTHEAST2:
+    ('libcloud.compute.drivers.ec2', 'EC2APNE2NodeDriver'),
     Provider.EC2_SA_EAST:
     ('libcloud.compute.drivers.ec2', 'EC2SAEastNodeDriver'),
     Provider.EC2_AP_SOUTHEAST2:

http://git-wip-us.apache.org/repos/asf/libcloud/blob/31d9d59c/libcloud/compute/types.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/types.py b/libcloud/compute/types.py
index 9d2d08b..0ddb4f1 100644
--- a/libcloud/compute/types.py
+++ b/libcloud/compute/types.py
@@ -167,6 +167,8 @@ class Provider(Type):
     EC2_US_WEST = 'ec2_us_west'
     EC2_AP_SOUTHEAST = 'ec2_ap_southeast'
     EC2_AP_NORTHEAST = 'ec2_ap_northeast'
+    EC2_AP_NORTHEAST1 = 'ec2_ap_northeast_1'
+    EC2_AP_NORTHEAST2 = 'ec2_ap_northeast_2'
     EC2_US_WEST_OREGON = 'ec2_us_west_oregon'
     EC2_SA_EAST = 'ec2_sa_east'
     EC2_AP_SOUTHEAST2 = 'ec2_ap_southeast_2'


Mime
View raw message