From eae8e07132edf00bc5b51aa8342ad22ab3c2cc60 Mon Sep 17 00:00:00 2001 From: Jim Rollenhagen Date: Fri, 20 Jan 2017 20:30:09 +0000 Subject: [PATCH] Fix api-ref warnings A few missing parameters breaking the build on latest api-ref package, fix them. Change-Id: I7769844b8a766c78418c28991b97827014886ec4 Closes-Bug: #1658187 --- api-ref/source/baremetal-api-v1-chassis.inc | 7 ++++++- api-ref/source/baremetal-api-v1-nodes-vifs.inc | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/api-ref/source/baremetal-api-v1-chassis.inc b/api-ref/source/baremetal-api-v1-chassis.inc index 2bb643ee1c..39563dcac0 100644 --- a/api-ref/source/baremetal-api-v1-chassis.inc +++ b/api-ref/source/baremetal-api-v1-chassis.inc @@ -68,6 +68,7 @@ Request .. rest_parameters:: parameters.yaml - fields: fields + - chassis_id: chassis_ident Response Parameters ------------------- @@ -105,7 +106,7 @@ The BODY of the PATCH request must be a JSON PATCH document, adhering to .. rest_parameters:: parameters.yaml - - chassis: chassis + - chassis_id: chassis_ident - description: description - extra: extra @@ -148,6 +149,10 @@ Deletes a chassis. Request ------- +.. rest_parameters:: parameters.yaml + + - chassis_id: chassis_ident + Create chassis ============== diff --git a/api-ref/source/baremetal-api-v1-nodes-vifs.inc b/api-ref/source/baremetal-api-v1-nodes-vifs.inc index 34834ab55c..3d0bbfe674 100644 --- a/api-ref/source/baremetal-api-v1-nodes-vifs.inc +++ b/api-ref/source/baremetal-api-v1-nodes-vifs.inc @@ -27,6 +27,7 @@ Response - id: node_vif_ident - vifs: n_vifs + - node_ident: node_ident **Example list of VIFs that are attached to the node:** @@ -51,6 +52,7 @@ Request .. rest_parameters:: parameters.yaml - id: node_vif_ident + - node_ident: node_ident **Example request to attach a VIF to a Node:** @@ -60,6 +62,11 @@ Request Detach VIF from a node ====================== +.. rest_parameters:: parameters.yaml + + - node_ident: node_ident + - node_vif_ident: node_vif_ident + .. rest_method:: DELETE /v1/nodes/{node_ident}/vifs/{node_vif_ident} Detach VIF from a Node.