| velandy | 88a64f1 | 2017-06-07 23:32:49 -0400 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * |
| 4 | * Copyright 2016 RIFT.IO Inc |
| 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | * |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | module rw-vlr |
| 22 | { |
| 23 | namespace "http://riftio.com/ns/riftware-1.0/rw-vlr"; |
| 24 | prefix "rw-vlr"; |
| 25 | |
| 26 | import mano-types { |
| 27 | prefix "manotypes"; |
| 28 | } |
| 29 | |
| 30 | import vlr { |
| 31 | prefix "vlr"; |
| 32 | } |
| 33 | |
| 34 | import rw-cloud { |
| 35 | prefix "rw-cloud"; |
| 36 | } |
| 37 | |
| 38 | import ietf-yang-types { |
| 39 | prefix "yang"; |
| 40 | } |
| 41 | |
| 42 | revision 2015-09-30 { |
| 43 | description |
| 44 | "Initial revision. This YANG file augments |
| 45 | the base MANO VNFD"; |
| 46 | reference |
| 47 | "Derived from earlier versions of base YANG files"; |
| 48 | } |
| 49 | |
| 50 | augment /vlr:vlr-catalog/vlr:vlr { |
| 51 | leaf cloud-account { |
| 52 | description |
| 53 | "The cloud account to use when requesting resources for |
| 54 | this vlr"; |
| 55 | type leafref { |
| 56 | path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name"; |
| 57 | } |
| 58 | } |
| 59 | leaf om-datacenter { |
| 60 | description |
| 61 | "Openmano datacenter name to use when instantiating |
| 62 | the network service. This is only used when openmano |
| 63 | is selected as the cloud account. This should be superceded |
| 64 | by multiple cloud accounts when that becomes available."; |
| 65 | type string; |
| 66 | } |
| 67 | |
| 68 | |
| 69 | leaf network_pool { |
| 70 | description "The network pool the resource was allocated from."; |
| 71 | type string; |
| 72 | } |
| 73 | |
| 74 | leaf assigned-subnet { |
| 75 | description "Subnet added for the VL"; |
| 76 | type string; |
| 77 | } |
| 78 | |
| 79 | leaf operational-status-details { |
| 80 | description |
| 81 | "The error message in case of a failed VLR operational status"; |
| 82 | type string; |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | // vim: sw=2 |