2 # Copyright ETSI Contributors and Others.
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
8 http://www.apache.org/licenses/LICENSE-2.0
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
14 See the License for the specific language governing permissions and
15 limitations under the License.
19 namespace "urn:etsi:osm:yang:augments:vnffgd";
26 import ietf-inet-types {
31 list match-attributes {
33 "List of match attributes.";
38 "Identifier for the classifier match attribute rule.";
48 leaf source-ip-address {
54 leaf destination-ip-address {
56 "Destination IP address.";
62 "Source port number.";
63 type inet:port-number;
66 leaf destination-port {
68 "Destination port number.";
69 type inet:port-number;
72 leaf constituent-base-element-id {
74 "Refer to the profile of source NS constituent.";
76 path "/nsd:nsd/nsd:nsd/nsd:df/nsd:vnf-profile/nsd:id";
80 leaf constituent-cpd-id {
82 "Logical source port.";
85 //TODO: Add more match criteria
90 grouping extended-position-element {
92 leaf-list nfp-position-element-id {
94 path "../../../nfp-position-element/id";
97 "References one or a pair of CPDs or SAPDs.";
99 "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
100 information element";
104 grouping extended-nfp-position {
105 list nfp-position-element {
110 "Identifier of this NfpPositionElemen information
111 element. It uniquely identifies an
112 NfpPositionElement.";
114 "GS NFV IFA014: Section 6.4.6.2 NfpPositionElement
115 information element";
121 grouping extended-cpe {
122 leaf constituent-base-element-id {
124 path "/nsd:nsd/nsd:nsd/nsd:vnffgd/nsd:vnf-profile-id";
131 "A number that denotes the order of a VNF in a chain";
134 leaf ingress-constituent-cpd-id {
136 "A reference to a connection point name
142 leaf egress-constituent-cpd-id {
144 "A reference to a connection point name
151 augment "/nsd:nsd/nsd:nsd/nsd:vnffgd/nsd:nfpd/nsd:position-desc-id" {
155 augment "/nsd:nsd/nsd:nsd/nsd:vnffgd" {
156 uses extended-nfp-position;
159 augment "/nsd:nsd/nsd:nsd/nsd:vnffgd/nsd:nfpd/nsd:position-desc-id" {
160 uses extended-position-element;
163 augment "/nsd:nsd/nsd:nsd/nsd:vnffgd/nsd:nfpd/nsd:position-desc-id/nsd:cp-profile-id/nsd:constituent-profile-elements"{