summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>2016-05-24 11:32:12 +0900
committerTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>2016-05-30 10:25:09 +0900
commitfc529deaa4091a7222f88b84180d17be01ae1f13 (patch)
tree7d95e9d91486946d7cfebf6cd5e48507caeacda7
parentd77807bfc2ac252a2a4574bd2478d0a416d999e3 (diff)
downloadnova-fc529deaa4091a7222f88b84180d17be01ae1f13.tar.gz
api-ref: Example verification for os-interface.inc
Add an example creating an interface with net_id and fixed_ips in addition to an example with port_id. The example and the sample test have been added in I6b2567db82d000e4b1cdf46020ce1b57103c3f46. Change-Id: Ia71ecf3dd633409f9bb5156c5e68f6bb878eee71 Implements: blueprint api-ref-in-rst
-rw-r--r--api-ref/source/os-interface.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/api-ref/source/os-interface.inc b/api-ref/source/os-interface.inc
index eba46e935e..c0f571e9e2 100644
--- a/api-ref/source/os-interface.inc
+++ b/api-ref/source/os-interface.inc
@@ -1,5 +1,4 @@
.. -*- rst -*-
-.. needs:example_verification
.. needs:body_verification
=========================================
@@ -76,6 +75,13 @@ Request
**Example Create Interface: JSON request**
+Create Interface with ``net_id`` and ``fixed_ips``.
+
+.. literalinclude:: ../../doc/api_samples/os-attach-interfaces/attach-interfaces-create-net_id-req.json
+ :language: javascript
+
+Create Interface with ``port_id``.
+
.. literalinclude:: ../../doc/api_samples/os-attach-interfaces/attach-interfaces-create-req.json
:language: javascript
@@ -147,7 +153,7 @@ Detaches a port interface.
Normal response codes: 202
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
-conflict(409), NotImplemented(501)
+conflict(409), NotImplemented(501)
Request
-------