> + /**
> + * This needs to be supported by the provider, and is usually not
> supported.
> + * However this can be tested on devstack:
> + * In apis/openstack-nova:
> + * mvn -Plive clean install
> "-Dtest.openstack-nova.endpoint=http://localhost:5000/v2.0"
> "-Dtest.openstack-nova.identity=demo:demo"
> "-Dtest.openstack-nova.credential=devstack"
> "-Dtest=org.jclouds.openstack.nova.v2_0.features.ServerApiLiveTest#testCreateWithNetworkOptions"
> + */
> + @Test(enabled = false)
> + public void testCreateWithNetworkOptions() {
> + String serverId = null;
> + for (String zoneId : zones) {
> + ServerApi serverApi = api.getServerApiForZone(zoneId);
> + try {
> + CreateServerOptions options =
> CreateServerOptions.Builder.novaNetworks(
> + // This network UUID must match an existing network.
> +
> ImmutableSet.of(Network.builder().networkUuid("bc4cfa2b-2b27-4671-8e8f-73009623def0").fixedIp("192.168.55.56").build())
> + );
Formatting? Something like:
```
// This network UUID must match an existing network.
CreateServerOptions options =
CreateServerOptions.Builder.novaNetworks(ImmutableSet.of(
Network.builder().networkUuid("bc4cfa2b-2b27-4671-8e8f-73009623def0").fixedIp("192.168.55.56").build()));
```
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/313/files#r10826543