trevorflanagan commented on this pull request.
> + +{% highlight java %} +/* + * Deploy Network Domain to the Zone / Datacenter we wish to operate on. The response from this API is the Network Domain Identifier. + */ +String networkDomainId = api.getNetworkApi().deployNetworkDomain(AU9, "jclouds-example", "jclouds-example", "ESSENTIALS"); +{% endhighlight %} + +A Network Domain deployment is an asynchronous process. We need to wait for it to complete. The Dimension Data provider +has built in google guice predicates that will block execution and check that the Network Domain's State has moved from `PENDING_ADD` to `NORMAL`. + +The following is some example code that shows how the to use predicate suitable for asserting a Network Domain state has transitioned to the `NORMAL` state. The predicate uses the Network Domain Identifier we wish to check the state of. +{% highlight java %} +Predicate<String> networkDomainNormalPredicate = injector.getInstance(Key.get(new TypeLiteral<Predicate<String>>() +{ +}, Names.named(NETWORK_DOMAIN_NORMAL_PREDICATE))); @nacx I understand. In fact our plan was to make this change during the past week or two but ran out of time (we have an internal jira for it). I will adjust the docs to show what this will eventually look like. Appreciate your time on this PR. One question - is there a planned release date for 2.2.0? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/220#discussion_r224471761