[GitHub] libcloud pull request #980: Add Security Token Service (STS) support for Rou...

2017-02-21 Thread asfgit
Github user asfgit closed the pull request at:

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


---
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.
---


[jira] [Commented] (LIBCLOUD-893) Having certifi installed breaks libcloud.security.py for 2.0.0rc1

2017-02-21 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/LIBCLOUD-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15876257#comment-15876257
 ] 

ASF GitHub Bot commented on LIBCLOUD-893:
-

Github user asfgit closed the pull request at:

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


> Having certifi installed breaks libcloud.security.py for 2.0.0rc1
> -
>
> Key: LIBCLOUD-893
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-893
> Project: Libcloud
>  Issue Type: Bug
>Reporter: Michael Bennett
>Priority: Minor
>
> This change: 
> https://github.com/apache/libcloud/commit/a4ad8d4a44dbf6069d924cdadabfff522ed703e6
> Causes libcloud.security to fail on import when the certifi package is 
> installed. CA_CERTS_PATH was initialized to None however with certifi 
> installed, line 58 attempts to insert the certifi_ca_bundle_path and throws a 
> NoneType error



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (LIBCLOUD-893) Having certifi installed breaks libcloud.security.py for 2.0.0rc1

2017-02-21 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LIBCLOUD-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15876254#comment-15876254
 ] 

ASF subversion and git services commented on LIBCLOUD-893:
--

Commit 516018d050a5470afe4a07d33d1fcb26d0e1df18 in libcloud's branch 
refs/heads/trunk from [~bennettaur]
[ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=516018d ]

Fixed a NoneType error being thrown in libcloud.security when certify is 
installed (LIBCLOUD-893)
Closes #982


> Having certifi installed breaks libcloud.security.py for 2.0.0rc1
> -
>
> Key: LIBCLOUD-893
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-893
> Project: Libcloud
>  Issue Type: Bug
>Reporter: Michael Bennett
>Priority: Minor
>
> This change: 
> https://github.com/apache/libcloud/commit/a4ad8d4a44dbf6069d924cdadabfff522ed703e6
> Causes libcloud.security to fail on import when the certifi package is 
> installed. CA_CERTS_PATH was initialized to None however with certifi 
> installed, line 58 attempts to insert the certifi_ca_bundle_path and throws a 
> NoneType error



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


libcloud git commit: Fixed a NoneType error being thrown in libcloud.security when certify is installed (LIBCLOUD-893) Closes #982

2017-02-21 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk 92b8a0700 -> 516018d05


Fixed a NoneType error being thrown in libcloud.security when certify is 
installed (LIBCLOUD-893)
Closes #982


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

Branch: refs/heads/trunk
Commit: 516018d050a5470afe4a07d33d1fcb26d0e1df18
Parents: 92b8a07
Author: Michael Bennett 
Authored: Sat Feb 4 12:54:28 2017 -0500
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:35:01 2017 +0100

--
 libcloud/security.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/516018d0/libcloud/security.py
--
diff --git a/libcloud/security.py b/libcloud/security.py
index bb8a303..afd9a93 100644
--- a/libcloud/security.py
+++ b/libcloud/security.py
@@ -55,7 +55,7 @@ else:
 
 if has_certifi and USE_CERTIFI:
 certifi_ca_bundle_path = certifi.where()
-CA_CERTS_PATH.insert(0, certifi_ca_bundle_path)
+CA_CERTS_PATH = certifi_ca_bundle_path
 
 # Allow user to explicitly specify which CA bundle to use, using an environment
 # variable



[GitHub] libcloud pull request #982: Fix for LIBCLOUD-893

2017-02-21 Thread asfgit
Github user asfgit closed the pull request at:

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


---
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.
---


libcloud git commit: Add Security Token Service support for Route 53 Closes #980

2017-02-21 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk b439b161c -> 92b8a0700


Add Security Token Service support for Route 53
Closes #980


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

Branch: refs/heads/trunk
Commit: 92b8a07006a05c9b6fb88921c6d105a66d8f349b
Parents: b439b16
Author: Vlad Glagolev 
Authored: Thu Jan 26 18:02:03 2017 -0500
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:31:15 2017 +0100

--
 libcloud/dns/drivers/route53.py | 17 +++--
 1 file changed, 15 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/92b8a070/libcloud/dns/drivers/route53.py
--
diff --git a/libcloud/dns/drivers/route53.py b/libcloud/dns/drivers/route53.py
index 040cdbc..0cb8707 100644
--- a/libcloud/dns/drivers/route53.py
+++ b/libcloud/dns/drivers/route53.py
@@ -38,7 +38,7 @@ from libcloud.dns.types import Provider, RecordType
 from libcloud.dns.types import ZoneDoesNotExistError, RecordDoesNotExistError
 from libcloud.dns.base import DNSDriver, Zone, Record
 from libcloud.common.types import LibcloudError
-from libcloud.common.aws import AWSGenericResponse
+from libcloud.common.aws import AWSGenericResponse, AWSTokenConnection
 from libcloud.common.base import ConnectionUserAndKey
 
 
@@ -67,7 +67,7 @@ class Route53DNSResponse(AWSGenericResponse):
 }
 
 
-class Route53Connection(ConnectionUserAndKey):
+class BaseRoute53Connection(ConnectionUserAndKey):
 host = API_HOST
 responseCls = Route53DNSResponse
 
@@ -96,6 +96,10 @@ class Route53Connection(ConnectionUserAndKey):
 return b64_hmac.decode('utf-8')
 
 
+class Route53Connection(AWSTokenConnection, BaseRoute53Connection):
+pass
+
+
 class Route53DNSDriver(DNSDriver):
 type = Provider.ROUTE53
 name = 'Route53 DNS'
@@ -115,6 +119,10 @@ class Route53DNSDriver(DNSDriver):
 RecordType.TXT: 'TXT',
 }
 
+def __init__(self, *args, **kwargs):
+self.token = kwargs.pop('token', None)
+super(Route53DNSDriver, self).__init__(*args, **kwargs)
+
 def iterate_zones(self):
 return self._get_more('zones')
 
@@ -546,3 +554,8 @@ class Route53DNSDriver(DNSDriver):
 return items, last_key, exhausted
 else:
 return [], None, True
+
+def _ex_connection_class_kwargs(self):
+kwargs = super(Route53DNSDriver, self)._ex_connection_class_kwargs()
+kwargs['token'] = self.token
+return kwargs



[GitHub] libcloud pull request #974: Bug fix for deletion against asynchronous Google...

2017-02-21 Thread asfgit
Github user asfgit closed the pull request at:

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


---
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.
---


[1/2] libcloud git commit: Patch for deletion against asynchronous Google subnetwork API

2017-02-21 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk 7366122bc -> b439b161c


Patch for deletion against asynchronous Google subnetwork API


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

Branch: refs/heads/trunk
Commit: 1b7e87b84785bbc19892555d77f62472a5e582d2
Parents: 7366122
Author: John Baublitz 
Authored: Tue Jan 10 11:29:20 2017 -0500
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:25:27 2017 +0100

--
 libcloud/compute/drivers/gce.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/1b7e87b8/libcloud/compute/drivers/gce.py
--
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 1195170..5eccac5 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -6906,7 +6906,7 @@ class GCENodeDriver(NodeDriver):
 region_name = region.name
 
 request = '/regions/%s/subnetworks/%s' % (region_name, subnet_name)
-self.connection.request(request, method='DELETE').object
+self.connection.async_request(request, method='DELETE').object
 return True
 
 def ex_get_subnetwork(self, name, region=None):



[2/2] libcloud git commit: Fix test case for ex_destroy_subnetwork Closes #974

2017-02-21 Thread anthonyshaw
Fix test case for ex_destroy_subnetwork
Closes #974


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

Branch: refs/heads/trunk
Commit: b439b161cdc1a795ad45cb4c72f146ae83cefc6e
Parents: 1b7e87b
Author: John Baublitz 
Authored: Tue Jan 10 19:40:39 2017 -0500
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:25:33 2017 +0100

--
 .../gce/regions_us-central1_subnetworks_cf_972cf02e6ad49112.json| 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b439b161/libcloud/test/compute/fixtures/gce/regions_us-central1_subnetworks_cf_972cf02e6ad49112.json
--
diff --git 
a/libcloud/test/compute/fixtures/gce/regions_us-central1_subnetworks_cf_972cf02e6ad49112.json
 
b/libcloud/test/compute/fixtures/gce/regions_us-central1_subnetworks_cf_972cf02e6ad49112.json
index 855eda5..1b19b3d 100644
--- 
a/libcloud/test/compute/fixtures/gce/regions_us-central1_subnetworks_cf_972cf02e6ad49112.json
+++ 
b/libcloud/test/compute/fixtures/gce/regions_us-central1_subnetworks_cf_972cf02e6ad49112.json
@@ -1,4 +1,5 @@
 {
+ "status": "DONE",
  "kind": "compute#subnetwork",
  "id": "4297043163355844284",
  "creationTimestamp": "2016-03-25T05:34:27.209-07:00",



libcloud git commit: Ensure that request_path is restored on exception raise when requesting a license. Closes #968

2017-02-21 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk 57913fceb -> 7366122bc


Ensure that request_path is restored on exception raise when requesting a 
license.
Closes #968


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

Branch: refs/heads/trunk
Commit: 7366122bc0266039a7e59c0cdce516cb4af7d1f5
Parents: 57913fc
Author: Peter Amstutz 
Authored: Fri Jan 6 10:10:04 2017 -0500
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:21:22 2017 +0100

--
 libcloud/compute/drivers/gce.py | 18 --
 1 file changed, 12 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/7366122b/libcloud/compute/drivers/gce.py
--
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 3bfe9ee..1195170 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -325,13 +325,19 @@ class GCELicense(UuidMixin, LazyObject):
 # connection thread-safe? Saving, modifying, and restoring
 # driver.connection.request_path is really hacky and thread-unsafe.
 saved_request_path = self.driver.connection.request_path
-new_request_path = saved_request_path.replace(self.driver.project,
-  self.project)
-self.driver.connection.request_path = new_request_path
+try:
+new_request_path = saved_request_path.replace(self.driver.project,
+  self.project)
+self.driver.connection.request_path = new_request_path
 
-request = '/global/licenses/%s' % self.name
-response = self.driver.connection.request(request, method='GET').object
-self.driver.connection.request_path = saved_request_path
+request = '/global/licenses/%s' % self.name
+response = self.driver.connection.request(request,
+  method='GET').object
+except:
+raise
+finally:
+# Restore the connection request_path
+self.driver.connection.request_path = saved_request_path
 
 self.extra = {
 'selfLink': response.get('selfLink'),



[GitHub] libcloud pull request #966: unit test and documentation for deploy uncustomi...

2017-02-21 Thread asfgit
Github user asfgit closed the pull request at:

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


---
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/7] libcloud git commit: Removed unwanted space

2017-02-21 Thread anthonyshaw
Removed unwanted space


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

Branch: refs/heads/trunk
Commit: 003190054d8cf937ad1acf6752b30af5731a6854
Parents: 096b606
Author: Samuel Chong 
Authored: Thu Jan 5 11:38:28 2017 +1100
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:17:27 2017 +0100

--
 libcloud/test/compute/test_dimensiondata_v2_4.py | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/00319005/libcloud/test/compute/test_dimensiondata_v2_4.py
--
diff --git a/libcloud/test/compute/test_dimensiondata_v2_4.py 
b/libcloud/test/compute/test_dimensiondata_v2_4.py
index 8193622..d746d05 100644
--- a/libcloud/test/compute/test_dimensiondata_v2_4.py
+++ b/libcloud/test/compute/test_dimensiondata_v2_4.py
@@ -2095,9 +2095,9 @@ class DimensionData_v2_4_Tests(unittest.TestCase, 
TestCaseMixin):
 ex_primary_nic_vlan=vlan,
 ex_primary_nic_network_adapter=None,
 ex_additional_nics=None,
-ex_disks = None,
-ex_tagid_value_pairs = None,
-ex_tagname_value_pairs = None)
+ex_disks=None,
+ex_tagid_value_pairs=None,
+ex_tagname_value_pairs=None)
 self.assertEqual(node.id, 'e75ead52-692f-4314-8725-c8a4f4d13a87')
 
 def test_ex_create_node_uncustomized_mcp2_using_ipv4(self):
@@ -2114,9 +2114,9 @@ class DimensionData_v2_4_Tests(unittest.TestCase, 
TestCaseMixin):
 ex_primary_nic_vlan=None,
 ex_primary_nic_network_adapter=None,
 ex_additional_nics=None,
-ex_disks = None,
-ex_tagid_value_pairs = None,
-ex_tagname_value_pairs = None)
+ex_disks=None,
+ex_tagid_value_pairs=None,
+ex_tagname_value_pairs=None)
 self.assertEqual(node.id, 'e75ead52-692f-4314-8725-c8a4f4d13a87')
 
 



[3/7] libcloud git commit: Add 1 blank line to fix lint issue

2017-02-21 Thread anthonyshaw
Add 1 blank line to fix lint issue


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

Branch: refs/heads/trunk
Commit: 5cb945ac4577a4c3f625a984391461854231e1e2
Parents: 8d52e9f
Author: Samuel Chong 
Authored: Thu Jan 5 10:51:23 2017 +1100
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:17:27 2017 +0100

--
 libcloud/test/compute/test_dimensiondata_v2_4.py | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5cb945ac/libcloud/test/compute/test_dimensiondata_v2_4.py
--
diff --git a/libcloud/test/compute/test_dimensiondata_v2_4.py 
b/libcloud/test/compute/test_dimensiondata_v2_4.py
index 12e4b63..8193622 100644
--- a/libcloud/test/compute/test_dimensiondata_v2_4.py
+++ b/libcloud/test/compute/test_dimensiondata_v2_4.py
@@ -2119,6 +2119,7 @@ class DimensionData_v2_4_Tests(unittest.TestCase, 
TestCaseMixin):
 ex_tagname_value_pairs = None)
 self.assertEqual(node.id, 'e75ead52-692f-4314-8725-c8a4f4d13a87')
 
+
 class InvalidRequestError(Exception):
 def __init__(self, tag):
 super(InvalidRequestError, self).__init__("Invalid Request - %s" % tag)



[1/7] libcloud git commit: fix lint issue

2017-02-21 Thread anthonyshaw
Repository: libcloud
Updated Branches:
  refs/heads/trunk 419c69441 -> 57913fceb


fix lint issue


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

Branch: refs/heads/trunk
Commit: c778f1d42816575198759eb97a33c63855269971
Parents: 0031900
Author: Samuel Chong 
Authored: Thu Jan 5 13:30:38 2017 +1100
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:17:27 2017 +0100

--
 .../compute/dimensiondata/Nodes_Create_mcp2_Uncustomised.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/c778f1d4/docs/examples/compute/dimensiondata/Nodes_Create_mcp2_Uncustomised.py
--
diff --git 
a/docs/examples/compute/dimensiondata/Nodes_Create_mcp2_Uncustomised.py 
b/docs/examples/compute/dimensiondata/Nodes_Create_mcp2_Uncustomised.py
index f0b4042..5abb3cd 100644
--- a/docs/examples/compute/dimensiondata/Nodes_Create_mcp2_Uncustomised.py
+++ b/docs/examples/compute/dimensiondata/Nodes_Create_mcp2_Uncustomised.py
@@ -6,7 +6,7 @@ import libcloud.security
 # Get dimension data driver
 libcloud.security.VERIFY_SSL_CERT = True
 cls = get_driver(Provider.DIMENSIONDATA)
-driver = cls('myusername','mypassword', region='dd-au')
+driver = cls('myusername', 'mypassword', region='dd-au')
 
 # Get location
 location = driver.ex_get_location_by_id(id='AU9')
@@ -14,7 +14,8 @@ location = driver.ex_get_location_by_id(id='AU9')
 # Get network domain by location
 networkDomainName = "Test Apache Libcloud"
 network_domains = driver.ex_list_network_domains(location=location)
-my_network_domain = [d for d in network_domains if d.name == 
networkDomainName][0]
+my_network_domain = [d for d in network_domains if d.name ==
+ networkDomainName][0]
 
 vlan = driver.ex_list_vlans(name='Libcloud Test VLAN')[0]
 



[4/7] libcloud git commit: unit test and documentation for deploy uncustomised server

2017-02-21 Thread anthonyshaw
unit test and documentation for deploy uncustomised server


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

Branch: refs/heads/trunk
Commit: 8d52e9f66924bbc8317dcf74b4c9c0eec2e0c7f3
Parents: 419c694
Author: Samuel Chong 
Authored: Wed Jan 4 14:36:27 2017 +1100
Committer: Anthony Shaw 
Committed: Tue Feb 21 17:17:27 2017 +0100

--
 libcloud/compute/drivers/dimensiondata.py   | 60 
 .../2.4/deploy_customised_server.xml|  7 +++
 .../test/compute/test_dimensiondata_v2_4.py | 48 
 3 files changed, 115 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/8d52e9f6/libcloud/compute/drivers/dimensiondata.py
--
diff --git a/libcloud/compute/drivers/dimensiondata.py 
b/libcloud/compute/drivers/dimensiondata.py
index c47eedd..e172958 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -3830,6 +3830,66 @@ class DimensionDataNodeDriver(NodeDriver):
 
 Create Node in MCP2 Data Center
 
+>>> from pprint import pprint
+>>> from libcloud.compute.types import Provider
+>>> from libcloud.compute.providers import get_driver
+>>> import libcloud.security
+>>>
+>>> # Get dimension data driver
+>>> libcloud.security.VERIFY_SSL_CERT = True
+>>> cls = get_driver(Provider.DIMENSIONDATA)
+>>> driver = cls('schong_platcaas', 'T3stst@r!', region='dd-au')
+>>> # driver = cls('myusername','mypassword', region='dd-au')
+>>>
+>>> # Get location
+>>> location = driver.ex_get_location_by_id(id='AU9')
+>>>
+>>> # Get network domain by location
+>>> networkDomainName = "Test Apache Libcloud"
+>>> network_domains = driver.ex_list_network_domains(location=location)
+>>> my_network_domain = [d for d in network_domains if d.name ==
+>>> networkDomainName][0]
+>>>
+>>> vlan = driver.ex_list_vlans(name='Libcloud Test VLAN')[0]
+>>>
+>>> # Get Image
+>>> images = driver.ex_list_customer_images(location=location)
+>>> image = images[1]
+>>>
+>>> tags = driver.ex_list_tags()
+>>> pprint(tags)
+>>>
+>>> ex_tagname_value_pairs = {}
+>>> ex_tagname_value_pairs['AA_Tag1'] = 'demo 1'
+>>> ex_tagname_value_pairs['AA_Tag2'] = 'demo 2'
+>>>
+>>> ex_tagid_value_pairs = {}
+>>> ex_tagid_value_pairs['4927c8fd-7f41-4206-a7d5-c5def927c6d2'] =
+>>>  'demo 1'
+>>> ex_tagid_value_pairs['2579fc7c-a89c-47cd-ac3b-67999dded93b'] =
+>>>  'demo 2'
+>>>
+>>>
+>>> # Create node using vlan instead of private IPv4
+>>> node = driver.ex_create_node_uncustomized(
+>>> name='test_server_05',
+>>> image=image,
+>>> ex_network_domain=my_network_domain,
+>>> ex_is_started=False,
+>>> ex_description=None,
+>>> ex_cluster_id=None,
+>>> ex_cpu_specification=None,
+>>> ex_memory_gb=None,
+>>> ex_primary_nic_private_ipv4=None,
+>>> ex_primary_nic_vlan=vlan,
+>>> ex_primary_nic_network_adapter=None,
+>>> ex_additional_nics=None,
+>>> ex_disks=None,
+>>> ex_tagid_value_pairs=ex_tagid_value_pairs,
+>>> ex_tagname_value_pairs=None
+>>> )
+>>>
+>>> pprint(node)
 
 :keywordname:   (required) String with a name for this new node
 :type   name:   ``str``

http://git-wip-us.apache.org/repos/asf/libcloud/blob/8d52e9f6/libcloud/test/compute/fixtures/dimensiondata/2.4/deploy_customised_server.xml
--
diff --git 
a/libcloud/test/compute/fixtures/dimensiondata/2.4/deploy_customised_server.xml 
b/libcloud/test/compute/fixtures/dimensiondata/2.4/deploy_customised_server.xml
new file mode 100644
index 000..d849494
--- /dev/null
+++ 
b/libcloud/test/compute/fixtures/dimensiondata/2.4/deploy_customised_server.xml
@@ -0,0 +1,7 @@
+
+
+  DEPLOY_UNCUSTOMIZED_SERVER
+  IN_PROGRESS
+  Request to deploy uncustomized Server 'Production Server' has been 
accepted and is being processed.
+  
+
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/libcloud/blob/8d52e9f6/libcloud/test/compute/test_dimensiondata_v2_4.py