day1-2: rename connection-point-ref to external-connection-point-ref
[osm/IM.git] / models / augments / interface.yang
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
27     import common-augments {
28         prefix common;
29     }
30
31     grouping extended-interface {
32         description
33           "List of Interfaces (external and internal) for the VNF";
34
35         leaf position {
36             description
37               "Explicit Position of the interface within the list";
38             type uint32;
39         }
40
41         leaf mac-address {
42             description
43               "MAC address of the interface.
44                Some VNFs require a specific MAC address to be configured
45                in the interface. While this is not recommended at all in
46                NFV environments, this parameter exists to allow those
47                scenarios.
48                This parameter will be likely deprecated in the future.";
49             type string;
50         }
51
52         uses common:virtual-interface;
53     }
54
55     augment "/vnfd:vnfd/vnfd:vdu/vnfd:int-cpd/vnfd:virtual-network-interface-requirement" {
56         uses extended-interface;
57     }
58 }