2 Copyright 2019 Whitestack LLC
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:ip-profiles";
26 import ietf-inet-types {
30 import etsi-nfv-descriptors {
34 grouping extended-vld-protocol-data{
35 container virtual-link-protocol-data {
36 leaf associated-layer-protocol {
38 base nfv:layer-protocol;
41 "One of the values of the attribute layerProtocol of
42 the ConnectivityType IE.";
44 "GS NFV IFA011: Section 7.1.8.13,
45 VirtualLinkProtocolData information element.";
48 container l2-protocol-data {
49 when "(../associated-layer-protocol = 'Ethernet') or " +
50 "(../associated-layer-protocol = 'MPLS') or " +
51 "(../associated-layer-protocol = 'ODU2') or " +
52 "(../associated-layer-protocol = 'Pseudo-Wire')";
57 "Network name associated with this L2 protocol.";
59 "GS NFV IFA011: Section 7.1.8.14,
60 L2ProtocolData information element.";
71 "Specifies the network type for this L2 protocol.
72 Possible values: FLAT, VLAN, VXLAN, GRE.";
74 "GS NFV IFA011: Section 7.1.8.14,
75 L2ProtocolData information element.";
78 leaf vlan-transparent {
81 "Specifies whether to support VLAN transparency for
82 this L2 protocol or not.";
84 "GS NFV IFA011: Section 7.1.8.14,
85 L2ProtocolData information element.";
91 "Specifies the maximum transmission unit (MTU) value
92 for this L2 protocol.";
94 "GS NFV IFA011: Section 7.1.8.14,
95 L2ProtocolData information element.";
98 "Specifies the L2 protocol data for this virtual link.
99 Shall be present when the associatedLayerProtocol
100 attribute indicates a L2 protocol and shall be absent
103 "GS NFV IFA011: Section 7.1.8.13,
104 VirtualLinkProtocolData information element.";
107 container l3-protocol-data {
108 when "(../associated-layer-protocol = 'IPv4') or " +
109 "(../associated-layer-protocol = 'IPv6')";
114 "Network name associated with this L3 protocol.";
116 "GS NFV IFA011: Section 7.1.8.15,
117 L3ProtocolData information element.";
127 "Specifies IP version of this L3 protocol.
132 "GS NFV IFA011: Section 7.1.8.15,
133 L3ProtocolData information element.";
139 "Specifies the CIDR (Classless InterDomain Routing)
140 of this L3 protocol.";
142 "GS NFV IFA011: Section 7.1.8.15,
143 L3ProtocolData information element.";
146 leaf-list ip-allocation-pools {
149 "Specifies the allocation pools with start and end
150 IP addresses for this L3 protocol.";
152 "GS NFV IFA011: Section 7.1.8.15,
153 L3ProtocolData information element.";
157 type inet:ip-address;
159 "Specifies the gateway IP address for this L3
162 "GS NFV IFA011: Section 7.1.8.15,
163 L3ProtocolData information element.";
170 "Indicates whether DHCP (Dynamic Host Configuration
171 Protocol) is enabled or disabled for this L3
174 "GS NFV IFA011: Section 7.1.8.15,
175 L3ProtocolData information element.";
178 leaf ipv6-address-mode {
179 when "../ip-version = 'ipv6'";
182 enum dhcpv6-stateful;
183 enum dhcpv6-stateless;
186 "Specifies IPv6 address mode. Possible values:
190 May be present when the value of the ipVersion
191 attribute is 'IPV6' and shall be absent otherwise.";
193 "GS NFV IFA011: Section 7.1.8.15,
194 L3ProtocolData information element.";
197 "Specifies the L3 protocol data for this virtual link.
198 Shall be present when the associatedLayerProtocol
199 attribute indicates a L3 protocol and shall be absent
202 "GS NFV IFA011: Section 7.1.8.13,
203 VirtualLinkProtocolData information element.";
206 "Specifies the protocol data for a VL instantiated
207 according to this profile. Cardinality 0 is used when
208 no protocol data needs to be specified.";
210 "GS NFV IFA011: Section 7.1.8.4, VirtualLinkProfile
211 information element.";
215 augment "/nsd:nsd/nsd:nsd/nsd:df/nsd:virtual-link-profile" {
216 uses extended-vld-protocol-data;