| 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 interface { |
| 19 | yang-version 1.1; |
| 20 | namespace "urn:etsi:osm:yang:augments:interface"; |
| 21 | prefix "interface"; |
| 22 | |
| 23 | import etsi-nfv-vnfd { |
| 24 | prefix vnfd; |
| 25 | } |
| 26 | |
| garciaale | d0a5fdc | 2021-02-04 18:19:52 -0300 | [diff] [blame^] | 27 | import ietf-inet-types { |
| 28 | prefix inet; |
| 29 | } |
| 30 | |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 31 | import common-augments { |
| 32 | prefix common; |
| 33 | } |
| 34 | |
| 35 | grouping extended-interface { |
| 36 | description |
| 37 | "List of Interfaces (external and internal) for the VNF"; |
| 38 | |
| 39 | leaf position { |
| 40 | description |
| 41 | "Explicit Position of the interface within the list"; |
| 42 | type uint32; |
| 43 | } |
| 44 | |
| garciaale | d0a5fdc | 2021-02-04 18:19:52 -0300 | [diff] [blame^] | 45 | leaf ip-address { |
| 46 | description |
| 47 | "IP address of the internal connection point"; |
| 48 | type inet:ip-address; |
| 49 | } |
| 50 | |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 51 | leaf mac-address { |
| 52 | description |
| 53 | "MAC address of the interface. |
| 54 | Some VNFs require a specific MAC address to be configured |
| 55 | in the interface. While this is not recommended at all in |
| 56 | NFV environments, this parameter exists to allow those |
| 57 | scenarios. |
| 58 | This parameter will be likely deprecated in the future."; |
| 59 | type string; |
| 60 | } |
| 61 | |
| 62 | uses common:virtual-interface; |
| 63 | } |
| 64 | |
| 65 | augment "/vnfd:vnfd/vnfd:vdu/vnfd:int-cpd/vnfd:virtual-network-interface-requirement" { |
| 66 | uses extended-interface; |
| 67 | } |
| garciaale | d0a5fdc | 2021-02-04 18:19:52 -0300 | [diff] [blame^] | 68 | } |