| Rajesh Velandy | e27e0b2 | 2017-09-18 17:21:48 -0400 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * Copyright 2016-2017 RIFT.IO Inc |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | * |
| 17 | * |
| 18 | */ |
| 19 | |
| 20 | module mano-rift-groupings |
| 21 | { |
| 22 | namespace "urn:ietf:params:xml:ns:yang:nfvo:mano-rift-groupings"; |
| 23 | prefix "mano-rift"; |
| 24 | |
| 25 | import mano-types { |
| 26 | prefix "manotypes"; |
| 27 | } |
| 28 | |
| 29 | grouping custom-meta-data { |
| 30 | description "Grouping for instance-specific meta data"; |
| 31 | list custom-meta-data { |
| 32 | description |
| 33 | "List of meta-data to be associated with the instance"; |
| 34 | key "name"; |
| 35 | leaf name { |
| 36 | description "Name of the meta-data parameter"; |
| 37 | type string; |
| 38 | } |
| 39 | |
| 40 | leaf data-type { |
| 41 | description "Data-type the meta-data parameter"; |
| 42 | type manotypes:meta-data-type; |
| 43 | default "STRING"; |
| 44 | } |
| 45 | |
| 46 | leaf value { |
| 47 | description "Value of the meta-data parameter"; |
| 48 | type string; |
| 49 | } |
| 50 | |
| 51 | leaf destination { |
| 52 | description "Type of input parameter"; |
| 53 | type enumeration { |
| 54 | enum "CLOUD_INIT"; |
| 55 | enum "CLOUD_METADATA"; |
| 56 | } |
| 57 | default "CLOUD_METADATA"; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | grouping volume-info-additions { |
| 63 | leaf boot-volume { |
| 64 | description "This flag indicates if this is boot volume or not"; |
| 65 | type boolean; |
| 66 | } |
| 67 | |
| 68 | leaf boot-priority { |
| 69 | description "Boot priority associated with volume"; |
| 70 | type int32; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | grouping http-end-point-additions { |
| 75 | leaf data { |
| 76 | description |
| 77 | "This is the data to be sent with POST "; |
| 78 | type string; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | grouping ssh-key-generated { |
| 83 | container ssh-key-generated { |
| 84 | description "SSH key pair generated for this NS"; |
| 85 | leaf public-key { |
| 86 | description "Public key generated"; |
| 87 | type string; |
| 88 | } |
| 89 | leaf private-key-file { |
| 90 | description "Path to the private key file"; |
| 91 | type string; |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | } |