[GitHub] libcloud pull request: sort dns types

2016-04-12 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/745


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[2/2] libcloud git commit: dns: sort Provider types Closes #745 Sort the list of DNS Providers alphabetically so it is simpler to insert new providers.

2016-04-12 Thread anthonyshaw
dns: sort Provider types
Closes #745
Sort the list of DNS Providers alphabetically so it is simpler to insert
new providers.


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

Branch: refs/heads/trunk
Commit: 48a3fb9067ce424f30599526246f731dee70d7b9
Parents: 53250b0
Author: Ken Dreyer 
Authored: Tue Apr 12 16:22:10 2016 -0600
Committer: anthony-shaw 
Committed: Wed Apr 13 09:52:32 2016 +1000

--
 libcloud/dns/types.py | 34 +-
 1 file changed, 17 insertions(+), 17 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/48a3fb90/libcloud/dns/types.py
--
diff --git a/libcloud/dns/types.py b/libcloud/dns/types.py
index 119bac9..35994e7 100644
--- a/libcloud/dns/types.py
+++ b/libcloud/dns/types.py
@@ -31,29 +31,29 @@ __all__ = [
 
 class Provider(object):
 DUMMY = 'dummy'
-LINODE = 'linode'
-RACKSPACE = 'rackspace'
-ZERIGO = 'zerigo'
-ROUTE53 = 'route53'
-HOSTVIRTUAL = 'hostvirtual'
-GANDI = 'gandi'
-GOOGLE = 'google'
-SOFTLAYER = 'softlayer'
-DIGITAL_OCEAN = 'digitalocean'
 AURORADNS = 'auroradns'
-WORLDWIDEDNS = 'worldwidedns'
+BUDDYNS = 'buddyns'
+CLOUDFLARE = 'cloudflare'
+DIGITAL_OCEAN = 'digitalocean'
 DNSIMPLE = 'dnsimple'
-POINTDNS = 'pointdns'
-VULTR = 'vultr'
-LIQUIDWEB = 'liquidweb'
-ZONOMI = 'zonomi'
 DURABLEDNS = 'durabledns'
+GANDI = 'gandi'
 GODADDY = 'godaddy'
-CLOUDFLARE = 'cloudflare'
-NSONE = 'nsone'
+GOOGLE = 'google'
+HOSTVIRTUAL = 'hostvirtual'
+LINODE = 'linode'
+LIQUIDWEB = 'liquidweb'
 LUADNS = 'luadns'
 NFSN = 'nfsn'
-BUDDYNS = 'buddyns'
+NSONE = 'nsone'
+POINTDNS = 'pointdns'
+RACKSPACE = 'rackspace'
+ROUTE53 = 'route53'
+SOFTLAYER = 'softlayer'
+VULTR = 'vultr'
+WORLDWIDEDNS = 'worldwidedns'
+ZERIGO = 'zerigo'
+ZONOMI = 'zonomi'
 # Deprecated
 RACKSPACE_US = 'rackspace_us'
 RACKSPACE_UK = 'rackspace_uk'



[1/2] libcloud git commit: dns: sort RecordTypes

2016-04-12 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk e69d6da35 -> 48a3fb906


dns: sort RecordTypes

Sort the list of RecordTypes alphabetically. This will make it simpler
to insert new record types.


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

Branch: refs/heads/trunk
Commit: 53250b06b40b1229f7432eaaa970971a553356be
Parents: e69d6da
Author: Ken Dreyer 
Authored: Tue Apr 12 16:20:37 2016 -0600
Committer: anthony-shaw 
Committed: Wed Apr 13 09:52:27 2016 +1000

--
 libcloud/dns/types.py | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/53250b06/libcloud/dns/types.py
--
diff --git a/libcloud/dns/types.py b/libcloud/dns/types.py
index 0ef8417..119bac9 100644
--- a/libcloud/dns/types.py
+++ b/libcloud/dns/types.py
@@ -72,24 +72,24 @@ class RecordType(object):
 A = 'A'
  = ''
 ALIAS = 'ALIAS'
-MX = 'MX'
-NS = 'NS'
 CNAME = 'CNAME'
 DNAME = 'DNAME'
+GEO = 'GEO'
 HINFO = 'HINFO'
-TXT = 'TXT'
+LOC = 'LOC'
+MX = 'MX'
+NAPTR = 'NAPTR'
+NS = 'NS'
 PTR = 'PTR'
+REDIRECT = 'REDIRECT'
+RP = 'RP'
 SOA = 'SOA'
 SPF = 'SPF'
 SRV = 'SRV'
 SSHFP = 'SSHFP'
-RP = 'RP'
-NAPTR = 'NAPTR'
-REDIRECT = 'REDIRECT'
-GEO = 'GEO'
+TXT = 'TXT'
 URL = 'URL'
 WKS = 'WKS'
-LOC = 'LOC'
 
 
 class ZoneError(LibcloudError):



libcloud git commit: Updated provider tables

2016-04-12 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk a971badc7 -> e69d6da35


Updated provider tables


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

Branch: refs/heads/trunk
Commit: e69d6da3567ec049a7488eab0695d203d50aeca1
Parents: a971bad
Author: anthony-shaw 
Authored: Wed Apr 13 09:37:47 2016 +1000
Committer: anthony-shaw 
Committed: Wed Apr 13 09:37:47 2016 +1000

--
 docs/dns/_supported_methods.rst   | 2 ++
 docs/dns/_supported_providers.rst | 2 ++
 2 files changed, 4 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e69d6da3/docs/dns/_supported_methods.rst
--
diff --git a/docs/dns/_supported_methods.rst b/docs/dns/_supported_methods.rst
index 258e51d..ce1f8f1 100644
--- a/docs/dns/_supported_methods.rst
+++ b/docs/dns/_supported_methods.rst
@@ -4,6 +4,7 @@
 Providerlist zones list records create zone update zone create 
record update record delete zone delete record
 === ==  === === 
= = === =
 `AuroraDNS`_yesyes  yes no  yes
   yes   yes yes  
+`BuddyNS DNS`_  yesno   yes no  no 
   noyes no   
 `CloudFlare DNS`_   yesyes  no  no  yes
   yes   no  yes  
 `DigitalOcean`_ yesyes  yes no  yes
   yes   yes yes  
 `DNSimple`_ yesyes  yes no  yes
   yes   yes yes  
@@ -28,6 +29,7 @@ Providerlist zones list records create zone 
update zone create recor
 === ==  === === 
= = === =
 
 .. _`AuroraDNS`: https://www.pcextreme.nl/en/aurora/dns
+.. _`BuddyNS DNS`: https://www.buddyns.com
 .. _`CloudFlare DNS`: https://www.cloudflare.com
 .. _`DigitalOcean`: https://www.digitalocean.com
 .. _`DNSimple`: https://dnsimple.com/

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e69d6da3/docs/dns/_supported_providers.rst
--
diff --git a/docs/dns/_supported_providers.rst 
b/docs/dns/_supported_providers.rst
index 6968077..75232b2 100644
--- a/docs/dns/_supported_providers.rst
+++ b/docs/dns/_supported_providers.rst
@@ -4,6 +4,7 @@
 ProviderDocumentation Provider 
Constant Supported RegionsModule   Class 
Name
 === = 
=   
==
 `AuroraDNS`_:doc:`Click ` AURORADNS
 single region driver :mod:`libcloud.dns.drivers.auroradns`
:class:`AuroraDNSDriver`  
+`BuddyNS DNS`_  :doc:`Click `   BUDDYNS  
 single region driver :mod:`libcloud.dns.drivers.buddyns`  
:class:`BuddyNSDNSDriver` 
 `CloudFlare DNS`_   :doc:`Click `CLOUDFLARE   
 single region driver :mod:`libcloud.dns.drivers.cloudflare`   
:class:`CloudFlareDNSDriver`  
 `DigitalOcean`_ :doc:`Click ` DIGITAL_OCEAN
 single region driver :mod:`libcloud.dns.drivers.digitalocean` 
:class:`DigitalOceanDNSDriver`
 `DNSimple`_ :doc:`Click `  DNSIMPLE 
 single region driver :mod:`libcloud.dns.drivers.dnsimple` 
:class:`DNSimpleDNSDriver`
@@ -28,6 +29,7 @@ ProviderDocumentation 
Provider Constant
 === = 
=   
==
 
 .. _`AuroraDNS`: https://www.pcextreme.nl/en/aurora/dns
+.. _`BuddyNS DNS`: https://www.buddyns.com
 .. _`CloudFlare DNS`: https://www.cloudflare.com
 .. _`DigitalOcean`: https://www.digitalocean.com
 .. _`DNSimple`: https://dnsimple.com/



libcloud git commit: Updated changes.rst for #742

2016-04-12 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk 7b0fc64d4 -> a971badc7


Updated changes.rst for #742


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

Branch: refs/heads/trunk
Commit: a971badc74e7fc8cd0f20a8479d92fde9d87e1e7
Parents: 7b0fc64
Author: anthony-shaw 
Authored: Wed Apr 13 09:33:15 2016 +1000
Committer: anthony-shaw 
Committed: Wed Apr 13 09:33:15 2016 +1000

--
 CHANGES.rst | 7 +++
 1 file changed, 7 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a971badc/CHANGES.rst
--
diff --git a/CHANGES.rst b/CHANGES.rst
index f7f0a9f..2eca5d8 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -15,6 +15,13 @@ Compute
   (GITHUB-727)
   [Lénaïc Huard]
 
+DNS
+~~~
+
+- Added BuddyNS driver
+  (GITHUB-742)
+  [Oltjano Terpollari]
+
 
 Changes with Apache Libcloud in 1.0.0-rc2
 -



[GitHub] libcloud pull request: adds dns support for BuddyDNS

2016-04-12 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/742


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[2/4] libcloud git commit: fixes lint and failing docs

2016-04-12 Thread anthonyshaw
fixes lint and failing docs


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

Branch: refs/heads/trunk
Commit: 2a0e94188bb26e54afbb7352c041b58c67186511
Parents: d102bee
Author: lostbird 
Authored: Sun Apr 10 06:52:53 2016 +0200
Committer: anthony-shaw 
Committed: Wed Apr 13 08:31:18 2016 +1000

--
 docs/dns/drivers/buddyns.rst| 2 +-
 libcloud/dns/drivers/buddyns.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2a0e9418/docs/dns/drivers/buddyns.rst
--
diff --git a/docs/dns/drivers/buddyns.rst b/docs/dns/drivers/buddyns.rst
index 0c577db..d43f7bf 100644
--- a/docs/dns/drivers/buddyns.rst
+++ b/docs/dns/drivers/buddyns.rst
@@ -1,5 +1,5 @@
 BuddyNS Driver Documentation
-==
+
 
 BuddyNS.com is part of FrontDam GmbH, a small swiss company making
 systems for uptime of Internet services, and run by a tribe of passionate

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2a0e9418/libcloud/dns/drivers/buddyns.py
--
diff --git a/libcloud/dns/drivers/buddyns.py b/libcloud/dns/drivers/buddyns.py
index 992b4d1..154ecd7 100644
--- a/libcloud/dns/drivers/buddyns.py
+++ b/libcloud/dns/drivers/buddyns.py
@@ -6,10 +6,10 @@ except ImportError:
 import json
 
 from libcloud.dns.types import Provider, ZoneDoesNotExistError,\
- ZoneAlreadyExistsError
+ZoneAlreadyExistsError
 from libcloud.dns.base import DNSDriver, Zone
 from libcloud.common.buddyns import BuddyNSConnection, BuddyNSResponse,\
- BuddyNSException
+BuddyNSException
 
 __all__ = [
 'BuddyNSDNSDriver'



[4/4] libcloud git commit: Resolve merge conflicts Closes #742

2016-04-12 Thread anthonyshaw
Resolve merge conflicts
Closes #742


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

Branch: refs/heads/trunk
Commit: 7b0fc64d48fc938a44e691a792c4ac5d02438f94
Parents: 440f531
Author: anthony-shaw 
Authored: Wed Apr 13 08:39:47 2016 +1000
Committer: anthony-shaw 
Committed: Wed Apr 13 08:40:33 2016 +1000

--
 libcloud/dns/providers.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/7b0fc64d/libcloud/dns/providers.py
--
diff --git a/libcloud/dns/providers.py b/libcloud/dns/providers.py
index 21871a2..ad55385 100644
--- a/libcloud/dns/providers.py
+++ b/libcloud/dns/providers.py
@@ -71,7 +71,8 @@ DRIVERS = {
 ('libcloud.dns.drivers.nsone', 'NsOneDNSDriver'),
 Provider.LUADNS:
 ('libcloud.dns.drivers.luadns', 'LuadnsDNSDriver'),
-
+Provider.BUDDYNS:
+('libcloud.dns.drivers.buddyns', 'BuddyNSDNSDriver'),
 
 # Deprecated
 Provider.RACKSPACE_US:



[3/4] libcloud git commit: adds dns support for BuddyDNS

2016-04-12 Thread anthonyshaw
adds dns support for BuddyDNS


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

Branch: refs/heads/trunk
Commit: d102beefbe25343102c8e551fb50db8e1f745bf4
Parents: a1f07cf
Author: lostbird 
Authored: Sun Apr 10 06:40:09 2016 +0200
Committer: anthony-shaw 
Committed: Wed Apr 13 08:31:18 2016 +1000

--
 docs/dns/drivers/buddyns.rst|  23 +++
 docs/examples/dns/buddyns/instantiate_driver.py |   5 +
 libcloud/common/buddyns.py  |  62 
 libcloud/dns/drivers/buddyns.py | 135 
 libcloud/dns/types.py   |   1 +
 .../fixtures/buddyns/create_zone_success.json   |   8 +
 .../fixtures/buddyns/delete_zone_success.json   |   0
 .../dns/fixtures/buddyns/empty_zones_list.json  |   1 +
 .../dns/fixtures/buddyns/get_zone_success.json  |   7 +
 .../test/dns/fixtures/buddyns/list_zones.json   |  18 +++
 .../fixtures/buddyns/zone_already_exists.json   |   3 +
 .../fixtures/buddyns/zone_does_not_exist.json   |   1 +
 libcloud/test/dns/test_buddyns.py   | 155 +++
 libcloud/test/secrets.py-dist   |   1 +
 14 files changed, 420 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/d102beef/docs/dns/drivers/buddyns.rst
--
diff --git a/docs/dns/drivers/buddyns.rst b/docs/dns/drivers/buddyns.rst
new file mode 100644
index 000..0c577db
--- /dev/null
+++ b/docs/dns/drivers/buddyns.rst
@@ -0,0 +1,23 @@
+BuddyNS Driver Documentation
+==
+
+BuddyNS.com is part of FrontDam GmbH, a small swiss company making
+systems for uptime of Internet services, and run by a tribe of passionate
+people who work great together.
+
+Read more at: https://www.buddyns.com/about/
+
+Instantiating the driver
+
+
+.. literalinclude:: /examples/dns/buddyns/instantiate_driver.py
+   :language: python
+
+API Docs
+
+
+.. autoclass:: libcloud.dns.drivers.buddyns.BuddyNSDNSDriver
+:members:
+:inherited-members:
+
+.. https://www.buddyns.com/support/api/v2/
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/d102beef/docs/examples/dns/buddyns/instantiate_driver.py
--
diff --git a/docs/examples/dns/buddyns/instantiate_driver.py 
b/docs/examples/dns/buddyns/instantiate_driver.py
new file mode 100644
index 000..c29eb0f
--- /dev/null
+++ b/docs/examples/dns/buddyns/instantiate_driver.py
@@ -0,0 +1,5 @@
+from libcloud.dns.types import Provider
+from libcloud.dns.providers import get_driver
+
+cls = get_driver(Provider.BUDDYNS)
+driver = cls('')

http://git-wip-us.apache.org/repos/asf/libcloud/blob/d102beef/libcloud/common/buddyns.py
--
diff --git a/libcloud/common/buddyns.py b/libcloud/common/buddyns.py
new file mode 100644
index 000..38a589e
--- /dev/null
+++ b/libcloud/common/buddyns.py
@@ -0,0 +1,62 @@
+from libcloud.common.base import ConnectionKey, JsonResponse
+
+
+__all__ = [
+'API_HOST',
+'BuddyNSException',
+'BuddyNSResponse',
+'BuddyNSConnection'
+]
+
+# Endpoint for buddyns api
+API_HOST = 'www.buddyns.com'
+
+
+class BuddyNSResponse(JsonResponse):
+errors = []
+objects = []
+
+def __init__(self, response, connection):
+super(BuddyNSResponse, self).__init__(response=response,
+  connection=connection)
+self.errors, self.objects = self.parse_body_and_errors()
+if not self.success():
+raise BuddyNSException(code=self.status,
+   message=self.errors.pop()['detail'])
+
+def parse_body_and_errors(self):
+js = super(BuddyNSResponse, self).parse_body()
+if 'detail' in js:
+self.errors.append(js)
+else:
+self.objects.append(js)
+
+return self.errors, self.objects
+
+def success(self):
+return len(self.errors) == 0
+
+
+class BuddyNSConnection(ConnectionKey):
+host = API_HOST
+responseCls = BuddyNSResponse
+
+def add_default_headers(self, headers):
+headers['content-type'] = 'application/json'
+headers['Authorization'] = 'Token' + ' ' + self.key
+
+return headers
+
+
+class BuddyNSException(Exception):
+
+def __init__(self, code, message):
+self.code = code
+self.message = message
+self.args = (code, message)
+
+def 

[1/4] libcloud git commit: adds apache license header

2016-04-12 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk a1f07cf59 -> 7b0fc64d4


adds apache license header


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

Branch: refs/heads/trunk
Commit: 440f531833eb06945a62a6a64170f02968641388
Parents: 2a0e941
Author: lostbird 
Authored: Sun Apr 10 07:54:05 2016 +0200
Committer: anthony-shaw 
Committed: Wed Apr 13 08:31:18 2016 +1000

--
 libcloud/common/buddyns.py  | 15 +++
 libcloud/dns/drivers/buddyns.py | 18 ++
 2 files changed, 33 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/440f5318/libcloud/common/buddyns.py
--
diff --git a/libcloud/common/buddyns.py b/libcloud/common/buddyns.py
index 38a589e..ae312ae 100644
--- a/libcloud/common/buddyns.py
+++ b/libcloud/common/buddyns.py
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 from libcloud.common.base import ConnectionKey, JsonResponse
 
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/440f5318/libcloud/dns/drivers/buddyns.py
--
diff --git a/libcloud/dns/drivers/buddyns.py b/libcloud/dns/drivers/buddyns.py
index 154ecd7..02af34d 100644
--- a/libcloud/dns/drivers/buddyns.py
+++ b/libcloud/dns/drivers/buddyns.py
@@ -1,3 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""
+BuddyNS DNS Driver
+"""
+
 import sys
 
 try:



[GitHub] libcloud pull request: sort dns types

2016-04-12 Thread ktdreyer
GitHub user ktdreyer opened a pull request:

https://github.com/apache/libcloud/pull/745

sort dns types

Sort the `Provider` and `RecordType` lists alphabetically. This makes it 
simpler to insert new providers and types.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ktdreyer/libcloud sort-dns-types

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/libcloud/pull/745.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #745


commit 384d4cc3118d42ce6908018f73173dfca170b219
Author: Ken Dreyer 
Date:   2016-04-12T22:20:37Z

dns: sort RecordTypes

Sort the list of RecordTypes alphabetically. This will make it simpler
to insert new record types.

commit 6255963a540cbaa3c22427015fc479a6b7125ef1
Author: Ken Dreyer 
Date:   2016-04-12T22:22:10Z

dns: sort Provider types

Sort the list of DNS Providers alphabetically so it is simpler to insert
new providers.




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] libcloud pull request: Fix openstack v3 authentication

2016-04-12 Thread schaubl
GitHub user schaubl opened a pull request:

https://github.com/apache/libcloud/pull/744

Fix openstack v3 authentication

## Fix openstack v3 authentication

### Description

This PR allows to define the OpenStack `domain` to another value that the 
default `Default`.
It also adds the ability to define the `scope` of the token.

With the code for the OpenStack Identity API v3, [two new parameters were 
added](https://github.com/apache/libcloud/blob/v0.20.1/libcloud/common/openstack_identity.py#L925):
 `domain_name` and `token_scope` but it was impossible to define them to a 
value other than their respective default.

### Status

- done, ready for review

### Checklist (tick everything that applies)

- [x] [Code 
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
 (required, can be done after the PR checks)
- [x] Documentation
- [x] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ] 
~~[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
 (required for bigger changes)~~



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/schaubl/libcloud openstack-fix_auth_v3

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/libcloud/pull/744.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #744


commit 777278ba9762b5a0e7bf4f56412602d1a092848d
Author: lionel 
Date:   2016-04-12T20:58:16Z

Fix openstack v3 authentication




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] libcloud pull request: allow for private IPv4 on NIC addition

2016-04-12 Thread bernard357
GitHub user bernard357 opened a pull request:

https://github.com/apache/libcloud/pull/743

allow for private IPv4 on NIC addition

This change better align with the APi 2.2. It is required in plumbery for 
fittings plan based on fixed IPv4 settings.

### Status

- done, ready for review

### Checklist (tick everything that applies)

- [ ] [Code 
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
 (required, can be done after the PR checks)
- [ ] Documentation
- [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ] 
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
 (required for bigger changes)


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/bernard357/libcloud trunk

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/libcloud/pull/743.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #743


commit c803ebbbcb65fe1c525e1aebd1cc367e5f1773b9
Author: Bernard Paques 
Date:   2015-12-26T17:53:48Z

add ipv6 to node, from primary nic

commit 00a3f6cff61744f563a6291ec0276db763556222
Author: Bernard Paques 
Date:   2015-12-26T18:00:54Z

allow for a firewell to target a single host address

commit a4a6a02164be4590a84e97ed86a3a0db4acd7fec
Author: Bernard Paques 
Date:   2015-12-26T18:24:22Z

fix behaviour when pool does not exist

commit ecba9e25e6c19004710d943d204b0789c1ea7034
Author: Bernard Paques 
Date:   2015-12-27T20:49:09Z

fix contribution

commit 36e864f9e4025fdeb60996e4cee6369ec1883814
Author: Bernard Paques 
Date:   2016-01-04T23:09:21Z

Merge remote-tracking branch 'upstream/trunk' into trunk

incorporate last changes from upstream/trunk to fix tests

commit 638fbb5fe1b18f178ec6d379bf2f8d7807b5f86a
Author: Bernard Paques 
Date:   2016-02-13T07:18:19Z

Merge branch 'trunk' of https://github.com/apache/libcloud into trunk

commit 9929e46a3ab1397a948c06bca0294fbf4306f634
Author: Bernard Paques 
Date:   2016-02-27T15:32:42Z

Merge branch 'trunk' of https://github.com/apache/libcloud into trunk

commit 140334790acb493909a1a75dd3be0d093b4c3f8a
Author: Bernard Paques 
Date:   2016-02-29T20:48:11Z

Merge branch 'trunk' of https://github.com/apache/libcloud into trunk

commit 94ae3feb0d22239e81150a5461e30e7134dea743
Author: Bernard Paques 
Date:   2016-02-29T21:15:46Z

expand test on disk attributes

commit 10d87dd3642bbd147fb3f52158a57a93f16c3879
Author: Bernard Paques 
Date:   2016-04-12T19:46:20Z

Merge branch 'trunk' of https://github.com/apache/libcloud into trunk

commit 0852103196e330e715a5b50c7540c4115e19e4a3
Author: Bernard Paques 
Date:   2016-04-12T20:26:04Z

allow for private IPv4 when adding a NIC




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---