Add a provider constant for CloudStack loadbalancer driver and expose it through
get_driver.


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

Branch: refs/heads/0.13.2
Commit: b82afcf492792c4f7fe2858f743d042e9979b5e6
Parents: 0bdaad0
Author: Tomaz Muraus <[email protected]>
Authored: Sat Aug 17 16:59:09 2013 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Fri Sep 13 15:15:32 2013 +0200

----------------------------------------------------------------------
 libcloud/loadbalancer/providers.py | 5 ++++-
 libcloud/loadbalancer/types.py     | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b82afcf4/libcloud/loadbalancer/providers.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/providers.py 
b/libcloud/loadbalancer/providers.py
index cf2411d..3ed140d 100644
--- a/libcloud/loadbalancer/providers.py
+++ b/libcloud/loadbalancer/providers.py
@@ -35,7 +35,10 @@ DRIVERS = {
         Provider.BRIGHTBOX:
             ('libcloud.loadbalancer.drivers.brightbox', 'BrightboxLBDriver'),
         Provider.ELB:
-            ('libcloud.loadbalancer.drivers.elb', 'ElasticLBDriver')
+            ('libcloud.loadbalancer.drivers.elb', 'ElasticLBDriver'),
+        Provider.CLOUDSTACK:
+            ('libcloud.loadbalancer.drivers.cloudstack', 'CloudStackLBDriver')
+
 }
 
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/b82afcf4/libcloud/loadbalancer/types.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/types.py b/libcloud/loadbalancer/types.py
index 95f4a9f..6608ca4 100644
--- a/libcloud/loadbalancer/types.py
+++ b/libcloud/loadbalancer/types.py
@@ -38,6 +38,7 @@ class Provider(object):
     RACKSPACE_UK = 'rackspace_uk'
     BRIGHTBOX = 'brightbox'
     ELB = 'elb'
+    CLOUDSTACK = 'cloudstack'
 
 
 class State(object):

Reply via email to