You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/08/17 18:06:11 UTC
[2/6] git commit: Add a provider constant for CloudStack loadbalancer
driver and expose it through get_driver.
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/670ef066
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/670ef066
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/670ef066
Branch: refs/heads/trunk
Commit: 670ef06615e989b936569eb0903e8a62877597e6
Parents: b7252c5
Author: Tomaz Muraus <to...@apache.org>
Authored: Sat Aug 17 16:59:09 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sat Aug 17 16:59:09 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/670ef066/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/670ef066/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):