<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 8, 2014 at 2:35 PM, Anne Gentle <span dir="ltr"><<a href="mailto:anne@openstack.org" target="_blank">anne@openstack.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi all, <div>I wanted to get some input on the os-networks extension documentation as it's unclear right now. If you look at <a href="http://api.openstack.org/api-ref-compute-ext.html#ext-os-networks" target="_blank">http://api.openstack.org/api-ref-compute-ext.html#ext-os-networks</a>, you see two different POST calls, one disassociates the host from a specified network, the other disassociates a specified network from a project. Both requests are simple calls with null in the example, but I don't understand how these would be used in a real-world scenario. I see it as:</div>
1. create network<br>2. boot server connected to that network with POST v2/{tenant_id}/os-networks/{id}/action<div><pre style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:13px;white-space:pre-wrap;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;background-color:rgb(245,245,245);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
{
"associate_host": "testHost"
}</pre>3. then disassociate the same server (seems to take a name?) as needed. I think the null might be incorrect here, and "testHost" would be a better example.</div><div><div>POST <span style="color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">v2/{tenant_id}/os-networks/{id}/action</span></div>
<div><pre style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:13px;white-space:pre-wrap;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;background-color:rgb(245,245,245);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
{
"disassociate_host": null
}</pre></div><div>4. And if you ever need to disassociate all the servers from a particular tenant, you'd use the second POST call below:</div><div><span style="color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">POST </span><span style="color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">v2/{tenant_id}/os-networks/{id}/action</span><br>
</div><div><pre style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:13px;white-space:pre-wrap;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;background-color:rgb(245,245,245);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
{
"disassociate": null
}</pre></div><div><br></div><div>Any thoughts? I can explain further if needed.</div></div></div></blockquote><div><br></div><div>Oh, and one more problem with the examples, it looks like we also have:</div><div>POST <span style="color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">v2/{tenant_id}/os-networks/{id}/action</span></div>
<div><br></div><div><pre style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:13px;white-space:pre-wrap;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;background-color:rgb(245,245,245);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
{
"disassociate_project": null
}</pre></div><div><br></div><div>Are these two last dissociate examples incorrect? I'll log a doc bug if someone can confirm.</div><div><br></div><div>Thanks,</div><div>Anne </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div><br></div><div>Thanks,</div><div>Anne</div></div></div>
</blockquote></div><br></div></div>