Merge "Update port bindings"

This commit is contained in:
Jenkins 2014-05-01 20:01:15 +00:00 committed by Gerrit Code Review
commit f96ff048c0
4 changed files with 60 additions and 379 deletions

View File

@ -34,28 +34,27 @@
xmlns:db="http://docbook.org/ns/docbook" version="5.0" xmlns:db="http://docbook.org/ns/docbook" version="5.0"
xml:id="API_extensions"> xml:id="API_extensions">
<title>API Extensions</title> <title>API Extensions</title>
<para>The API extensions augment the core API. An API extension <para>An API extension extends one or more of the following
extends one or more of the following components of the core components of the core API:</para>
API:</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>Resources. An extension defines new object <para>Resources. An extension creates object
classes.</para> classes.</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Attributes. An extended attribute defines a new <para>Attributes. An extended attribute creates an
attribute on existing resources. Prefixed by the attribute on existing resources. Prefixed by the
extension name.</para> extension name.</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Actions. An extended action defines a new operation <para>Actions. An extended action creates an operation on
on an existing resource.</para> an existing resource.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>Generic API extensions are not plug-in-specific. For <para>Generic API extensions are not plug-in-specific. For
information about plug-in-specific extensions that are shipped information about plug-in-specific extensions that ship with
with OpenStack Networking, see the extension documentation in OpenStack Networking, see the extension documentation in the
the source code tree.</para> source code tree.</para>
<xi:include href="section_neutron_list-extensions.xml"/> <xi:include href="section_neutron_list-extensions.xml"/>
<xi:include href="section_neutron-provider-ext.xml"/> <xi:include href="section_neutron-provider-ext.xml"/>
<xi:include href="section_neutron-multi-provider-ext.xml"/> <xi:include href="section_neutron-multi-provider-ext.xml"/>

View File

@ -43,13 +43,12 @@
</personname> </personname>
</author> </author>
<copyright> <copyright>
<year>2011</year> <year>2011-2014</year>
<year>2012</year>
<year>2013</year>
<holder>OpenStack Foundation</holder> <holder>OpenStack Foundation</holder>
</copyright> </copyright>
<releaseinfo>API v2.0</releaseinfo> <releaseinfo>API v2.0</releaseinfo>
<productname>OpenStack Networking (neutron) API v2.0</productname> <productname>OpenStack Networking (neutron) API
v2.0</productname>
<pubdate/> <pubdate/>
<legalnotice role="apache2"> <legalnotice role="apache2">
<annotation> <annotation>
@ -63,6 +62,19 @@
</abstract> </abstract>
<revhistory> <revhistory>
<!-- ... continue adding more revisions here as you change this document using the markup shown below... --> <!-- ... continue adding more revisions here as you change this document using the markup shown below... -->
<revision>
<date>2014-04-29</date>
<revdescription>
<itemizedlist spacing="compact">
<listitem>
<para>Updated
<parameter>binding:capabilities</parameter>
to
<parameter>binding:vif_details</parameter>.</para>
</listitem>
</itemizedlist>
</revdescription>
</revision>
<revision> <revision>
<date>2013-12-20</date> <date>2013-12-20</date>
<revdescription> <revdescription>
@ -98,8 +110,7 @@
<para>Updated the title of the book to <para>Updated the title of the book to
<citetitle>Reference</citetitle> <citetitle>Reference</citetitle>
from <citetitle>Developer from <citetitle>Developer
Guide</citetitle> for consistency. Guide</citetitle> for consistency.</para>
</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</revdescription> </revdescription>
@ -143,5 +154,5 @@
<xi:include href="ch_neutron_overview.xml"/> <xi:include href="ch_neutron_overview.xml"/>
<xi:include href="ch_neutron_general_info.xml"/> <xi:include href="ch_neutron_general_info.xml"/>
<xi:include href="ch_neutron_api_operations.xml"/> <xi:include href="ch_neutron_api_operations.xml"/>
<xi:include href="ch_neutron_api_extensions.xml"/> <xi:include href="ch_neutron_api_extensions.xml"/>
</book> </book>

View File

@ -132,21 +132,22 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td><para><parameter>binding:vif_details</parameter></para></td>
<para><parameter>binding:capabilities</parameter></para></td>
<td>list(dict)</td> <td>list(dict)</td>
<td>N/A</td> <td>N/A</td>
<td>R</td> <td>R</td>
<td>None</td> <td>None</td>
<td>N/A</td> <td>None</td>
<td><para>Read-only. A dictionary that enables the <td>
<para>Read-only. A dictionary that enables the
application to pass information about application to pass information about
functions that &APIv2; provides. Specify the functions that Networking API v2.0 provides.
following value: <code>port_filter : Boolean</code> to Specify the following value:
define whether &APIv2; provides port filtering <literal>port_filter : Boolean</literal>
features such as security group and to define whether Networking API v2.0 provides
anti-MAC/IP spoofing.</para></td> port filtering features, such as security
group and anti-MAC/IP spoofing.</para>
</td>
</tr> </tr>
<tr> <tr>
<td><para><parameter>binding:vnic_type</parameter></para></td> <td><para><parameter>binding:vnic_type</parameter></para></td>
@ -154,358 +155,28 @@
<td><para>N/A</para></td> <td><para>N/A</para></td>
<td><para>CRU</para></td> <td><para>CRU</para></td>
<td><para>normal</para></td> <td><para>normal</para></td>
<td><para>(normal, <td><para>(normal, direct, macvtap)</para></td>
direct, <td><para>The VNIC type to be bound on the neutron
macvtap)</para></td> port. To support SR-IOV PCI passthrough
<td><para>The vnic type to be bound on the neutron port. networking, you can request that the neutron
To support SR-IOV PCI passthrough networking, you can request that the neutron port port be realized as normal (virtual NIC),
be realized as normal (virtual nic), direct (pci passthrough), or direct (pci passthrough), or macvtap (virtual
macvtap (virtual interface with a tap-like software interface). interface with a tap-like software interface).
The ML2 plug-in supports the vnic_type.</para></td> The ML2 plug-in supports the
vnic_type.</para></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<!-- <wadl:resources <wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
href="http://git.openstack.org/cgit/openstack/api-site/plain/api-ref/src/wadls/netconn-api/src/os-ports-binding-ext.wadl" <wadl:resource
xmlns:wadl="http://wadl.dev.java.net/2009/02"/>--> href="http://git.openstack.org/cgit/openstack/api-site/plain/api-ref/src/wadls/netconn-api/src/os-ports-binding-ext.wadl#Ports">
<section xml:id="List_Ports_binding"> <wadl:method href="#listPorts"/>
<title>List Ports</title> <wadl:method href="#createPort"/>
<informaltable rules="all" width="100%"> </wadl:resource>
<col width="20%"/> <wadl:resource
<col width="20%"/> href="http://git.openstack.org/cgit/openstack/api-site/plain/api-ref/src/wadls/netconn-api/src/os-ports-binding-ext.wadl#port_id">
<col width="60%"/> <wadl:method href="#showPort"/>
<thead> <wadl:method href="#updatePort"/>
<tr> </wadl:resource>
<td>Verb</td> </wadl:resources>
<td>URI</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td>&GET;</td>
<td>/ports</td>
<td>Lists ports to which the tenant has access.
The <parameter>binding</parameter> extended
attributes are visible to only administrative
users. The <parameter>binding:vnic_type</parameter> extended attribute
is visible to only port owners and administrative users.</td>
</tr>
</tbody>
</informaltable>
<simpara>Normal Response Code: <returnvalue>200</returnvalue>
</simpara>
<simpara>Error Response Codes: Unauthorized
(<errorcode>401</errorcode>)</simpara>
<para>This operation lists ports to which the tenant has
access.</para>
<para>This operation does not require a request body.</para>
<para>This operation returns a response body.</para>
<para>In addition to any other fields returned in the list
port response, the following
<parameter>binding</parameter>-prefixed fields are
visible to administrative users:</para>
<informaltable rules="all">
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><para><parameter>binding:vif_type</parameter></para></td>
<td><para>Read-only. The vif type for the
specified port.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:host_id</parameter></para></td>
<td><para>The ID of the host where the port is
allocated. In some cases different
implementations can run on different
hosts.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:profile</parameter></para></td>
<td><para>A dictionary that enables the
application running on the specified host
to pass and receive vif port-specific
information to the plug-in.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:capabilities</parameter></para></td>
<td><para>Read-only. A dictionary that enables the
application to pass information about
functions that &APIv2; provides. Specify
the following value: port_filter : Boolean
to define whether &APIv2; provides port
filtering features such as security group
and anti-MAC/IP spoofing.</para>
</td>
</tr>
<tr>
<td><para><parameter>binding:vnic_type</parameter></para></td>
<td><para>The vnic type to be bound on the neutron port.
Valid values are normal, direct, or macvtap.</para>
</td>
</tr>
</tbody>
</informaltable>
</section>
<?hard-pagebreak?>
<section xml:id="Show_port_binding">
<title>Show Port</title>
<informaltable rules="all" width="100%">
<col width="20%"/>
<col width="20%"/>
<col width="60%"/>
<thead>
<tr>
<td>Verb</td>
<td>URI</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td>&GET;</td>
<td>/ports/<parameter>port-id</parameter></td>
<td>Shows information for a specified port. The
<parameter>binding</parameter> extended
attributes are visible to only administrative
users. The <parameter>binding:vnic_type</parameter> extended attribute
is visible to only port owners or administrative users.</td>
</tr>
</tbody>
</informaltable>
<simpara>Normal Response Code: <returnvalue>200</returnvalue>
</simpara>
<simpara>Error Response Codes: Unauthorized
(<errorcode>401</errorcode>), Not Found
(<errorcode>404</errorcode>)</simpara>
<para>This operation returns information for the port
specified in the request URI.</para>
<para>This operation does not require a request body.</para>
<para>This operation returns a response body.</para>
<para>In addition to any fields returned in the show port
response, the following
<parameter>binding</parameter>-prefixed extended
attributes are visible to administrative users:</para>
<informaltable rules="all">
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><para><parameter>binding:vif_type</parameter></para></td>
<td><para>Read-only. The vif type for the
specified port.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:host_id</parameter></para></td>
<td><para>The ID of the host where the port is
allocated. In some cases different
implementations can run on different
hosts.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:profile</parameter></para></td>
<td><para>A dictionary that enables the
application running on the specified host
to pass and receive vif port-specific
information to the plug-in.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:capabilities</parameter></para></td>
<td><para>Read-only. A dictionary that enables the
application to pass information about
functions that &APIv2; provides. Specify
the following value: <code>port_filter : Boolean</code>
to define whether &APIv2; provides port
filtering features such as security group
and anti-MAC/IP spoofing.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:vnic_type</parameter></para></td>
<td><para>The requested vnic type to be bound on neutron
port (can be either normal, direct or macvtap).</para>
</td>
</tr>
</tbody>
</informaltable>
</section>
<section xml:id="Create_Port_binding">
<title>Create Port</title>
<informaltable rules="all" width="100%">
<col width="20%"/>
<col width="20%"/>
<col width="60%"/>
<thead>
<tr>
<td>Verb</td>
<td>URI</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td>&POST;</td>
<td>/ports</td>
<td>Creates a port on a specified network. Only
administrative users can add the
<parameter>binding</parameter> extended
attributes.</td>
</tr>
</tbody>
</informaltable>
<simpara>Normal Response Code: <returnvalue>201</returnvalue>
</simpara>
<simpara>Error Response Codes: Bad Request
(<errorcode>400</errorcode>), Unauthorized
(<errorcode>401</errorcode>), Forbidden
(<errorcode>403</errorcode>), Not Found
(<errorcode>404</errorcode>), Conflict
(<errorcode>409</errorcode>), MAC generation failure
(<errorcode>503</errorcode>) </simpara>
<para>This operation creates an OpenStack Networking port. You
must specify the network where the port is to created on
the <parameter>network_id</parameter> attribute in the
request body.</para>
<para>This operation requires a request body.</para>
<para>This operation returns a response body.</para>
<para>In addition to any attributes that can be set in a
create port operation, administrative users can also set
the following <parameter>binding</parameter>-prefixed
extended attributes:</para>
<informaltable rules="all">
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<para><parameter>binding:host_id</parameter></para></td>
<td><para>The ID of the host where the port is
allocated. In some cases different
implementations can run on different
hosts.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:profile</parameter></para></td>
<td><para>A dictionary that enables the
application running on the specified host
to pass and receive vif port-specific
information to the plug-in.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:vnic_type</parameter></para></td>
<td><para>The vnic type to be bound on the neutron port.
Valid values are normal, direct, or macvtap.</para>
</td>
</tr>
</tbody>
</informaltable>
</section>
<section xml:id="Update_Port_binding">
<title>Update Port</title>
<informaltable rules="all" width="100%">
<col width="20%"/>
<col width="20%"/>
<col width="60%"/>
<thead>
<tr>
<td>Verb</td>
<td>URI</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td>&PUT;</td>
<td>/ports/<parameter>port-id</parameter></td>
<td>Updates a specified port. Only administrative users can update the
<parameter>binding</parameter> extended attributes. The
<parameter>binding:vnic_type</parameter> extended attribute is visible to only port owners or
administrative users.</td>
</tr>
</tbody>
</informaltable>
<simpara>Normal Response Code: <returnvalue>200</returnvalue>
</simpara>
<simpara>Error Response Codes: Bad Request
(<errorcode>400</errorcode>), Unauthorized
(<errorcode>401</errorcode>), Forbidden
(<errorcode>403</errorcode>), Not Found
(<errorcode>404</errorcode>), Conflict
(<errorcode>409</errorcode>) </simpara>
<para>Use this operation to update information for a
port.</para>
<para>This operation requires a request body.</para>
<para>This operation returns a response body.</para>
<para>In addition to any attributes that can be updated in the
update port operation, administrative users can also
update the following
<parameter>binding</parameter>-prefixed extended
attributes:</para>
<informaltable rules="all">
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<para><parameter>binding:host_id</parameter></para></td>
<td><para>The ID of the host where the port is
allocated. In some cases different
implementations can run on different
hosts.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:profile</parameter></para></td>
<td><para>A dictionary that enables the
application running on the specified host
to pass and receive vif port-specific
information to the plug-in.</para>
</td>
</tr>
<tr>
<td>
<para><parameter>binding:vnic_type</parameter></para></td>
<td><para>The vnic type to be bound on the neutron port.
Valid values are normal, direct, or macvtap.</para>
</td>
</tr>
</tbody>
</informaltable>
</section>
</section> </section>

View File

@ -33,7 +33,7 @@
xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0" xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
xmlns:db="http://docbook.org/ns/docbook" version="5.0" xmlns:db="http://docbook.org/ns/docbook" version="5.0"
xml:id="retrieve_extensions"> xml:id="retrieve_extensions">
<title>List Available Extensions</title> <title>List available extensions</title>
<para>You can list available extensions through the <filename <para>You can list available extensions through the <filename
role="bold">/v2.0/extensions</filename> URI.</para> role="bold">/v2.0/extensions</filename> URI.</para>
<note> <note>