| 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 ns-various { |
| 19 | yang-version 1.1; |
| 20 | namespace "urn:etsi:osm:yang:augments:ns-various"; |
| 21 | prefix "ns-various"; |
| 22 | |
| 23 | import etsi-nfv-nsd { |
| 24 | prefix nsd; |
| 25 | } |
| 26 | |
| 27 | import ip-profiles { |
| 28 | prefix ip-profiles; |
| 29 | } |
| 30 | |
| 31 | import common-augments { |
| 32 | prefix common; |
| 33 | } |
| 34 | |
| 35 | grouping extended-floating-ip { |
| 36 | leaf floating-ip-required { |
| 37 | description |
| 38 | "Boolean parameter to indicate whether the CP must be exposed. |
| 39 | A public IP address will be allocated to this CP if exposed is true. |
| 40 | The default is false meaning a floating IP address is not required. |
| 41 | It must be explicitly asked for a floating IP address to be allocated."; |
| 42 | type boolean; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | grouping extended-security-group { |
| 47 | leaf security-group { |
| 48 | description |
| 49 | "Name of the security group"; |
| 50 | type string; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | augment "/nsd:nsd/nsd:nsd" { |
| 55 | uses common:description; |
| 56 | } |
| 57 | |
| 58 | augment "/nsd:nsd/nsd:nsd/nsd:sapd" { |
| 59 | uses extended-floating-ip; |
| 60 | } |
| 61 | |
| 62 | augment "/nsd:nsd/nsd:nsd/nsd:df/nsd:virtual-link-profile/ip-profiles:virtual-link-protocol-data/ip-profiles:l3-protocol-data" { |
| 63 | uses extended-security-group; |
| 64 | } |
| 65 | } |