jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds/jclouds-site] Blog post about linking Nova and Neutron (#209)
Date Mon, 12 Feb 2018 14:50:32 GMT
andreaturli commented on this pull request.



> +   .overrides(neutronProperties)
+   .modules(ImmutableSet.of(new SLF4JLoggingModule()))
+   .build();
+
+// Create the connection to OpenStack nova and link it to Neutron
+NovaApi nova = ContextBuilder.newBuilder("openstack-nova")
+   .endpoint("http://localhost/identity/v3/")
+   .credentials("domain:user", "password")
+   .overrides(novaProperties)
+   .modules(ImmutableSet.of(
+               ContextLinking.linkContext(neutronCtx),
+               new SLF4JLoggingModule()))
+   .buildApi(NovaApi.class);
+{% endhighlight %}
+
+With this configuration the `nova` API is configured to use the linked `neutron` for all
networking operations.

Sorry @nacx and @demobox for late comment, I think the current wording is good enough.
I'd prefer to see comments on the blog posts asking for more clarity rather than try to come
up with the perfect sentence :)

I think there is enough material to add another blog post on Openstack specifically on how
jclouds can manage security groups and floating ips from nova and neutron depending on the
linked context.



-- 
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/209#discussion_r167576228
Mime
View raw message