| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 1 | /* |
| 2 | Copyright 2020 Whitestack LLC |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 13 | implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | module configuration { |
| 19 | yang-version 1.1; |
| 20 | namespace "urn:etsi:osm:yang:configuration"; |
| 21 | prefix "configuration"; |
| 22 | |
| 23 | import etsi-nfv-vnfd { |
| 24 | prefix vnfd; |
| 25 | } |
| 26 | |
| 27 | import day1-2 { |
| 28 | prefix day1-2; |
| 29 | } |
| 30 | |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 31 | grouping extended-vnf-configuration { |
| 32 | leaf vnf-configuration-id { |
| 33 | description |
| 34 | "Reference for the VNF configuration to use in this DF"; |
| 35 | type leafref { |
| 36 | path "/vnfd:vnfd/day1-2:vnf-configuration/day1-2:id"; |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | grouping extended-vdu-configuration { |
| 42 | leaf vdu-configuration-id { |
| 43 | description |
| 44 | "Reference for the VDU configuration to use in this DF"; |
| 45 | type leafref { |
| 46 | path "/vnfd:vnfd/day1-2:vdu-configuration/day1-2:id"; |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 51 | augment "/vnfd:vnfd/vnfd:df" { |
| 52 | uses extended-vnf-configuration; |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | augment "/vnfd:vnfd/vnfd:df/vnfd:vdu-profile" { |
| 56 | uses extended-vdu-configuration; |
| 57 | } |
| garciadeblas | 7df1364 | 2020-12-10 17:32:36 +0000 | [diff] [blame] | 58 | } |