1 module ietf-eth-tran-types {
2 namespace "urn:ietf:params:xml:ns:yang:ietf-eth-tran-types";
6 "Internet Engineering Task Force (IETF) CCAMP WG";
9 WG List: <mailto:ccamp@ietf.org>
11 Haomian Zheng (zhenghaomian@huawei.com);
12 Italo Busi (italo.busi@huawei.com);
13 Aihua Guo (aihuaguo@huawei.com);
14 Yunbin Xu (xuyunbin@ritt.cn);
15 Yang Zhao (zhaoyangyjy@chinamobile.com);
16 Xufeng Liu (Xufeng_Liu@jabil.com);
17 Giuseppe Fioccola (giuseppe.fioccola@telecomitalia.it);
21 "This module defines the ETH transport types.";
27 "draft-zheng-ccamp-client-signal-yang";
34 identity eth-vlan-tag-type {
39 identity c-vlan-tag-type {
40 base eth-vlan-tag-type;
42 "802.1Q Customer VLAN";
45 identity s-vlan-tag-type {
46 base eth-vlan-tag-type;
48 "802.1Q Service VLAN (QinQ)";
51 identity service-classification-type {
53 "Service classification.";
56 identity port-classification {
57 base service-classification-type;
59 "Port classification.";
62 identity vlan-classification {
63 base service-classification-type;
65 "VLAN classification.";
68 identity eth-vlan-tag-classify {
70 "VLAN tag classification.";
73 identity classify-c-vlan {
74 base eth-vlan-tag-classify;
76 "Classify 802.1Q Customer VLAN tag.
77 Only C-tag type is accepted";
80 identity classify-s-vlan {
81 base eth-vlan-tag-classify;
83 "Classify 802.1Q Service VLAN (QinQ) tag.
84 Only S-tag type is accepted";
87 identity classify-s-or-c-vlan {
88 base eth-vlan-tag-classify;
90 "Classify S-VLAN or C-VLAN tag-classify.
91 Either tag is accepted";
94 identity bandwidth-profile-type {
96 "Bandwidth Profile Types";
100 base bandwidth-profile-type;
102 "MEF 10 Bandwidth Profile";
104 identity rfc-2697-bwp {
105 base bandwidth-profile-type;
107 "RFC 2697 Bandwidth Profile";
110 identity rfc-2698-bwp {
111 base bandwidth-profile-type;
113 "RFC 2698 Bandwidth Profile";
116 identity rfc-4115-bwp {
117 base bandwidth-profile-type;
119 "RFC 4115 Bandwidth Profile";
122 identity service-type {
124 "Type of Ethernet service.";
130 "Ethernet point-to-point service (EPL, EVPL).";
136 "Ethernet rooted-multitpoint service (E-TREE, EP-TREE).";
142 "Ethernet multipoint-to-multitpoint service (E-LAN, EP-LAN).";
149 typedef eth-tag-type {
151 base eth-vlan-tag-type;
154 "Identifies a specific ETH VLAN tag type.";
157 typedef eth-tag-classify {
159 base eth-vlan-tag-classify;
162 "Identifies a specific VLAN tag classification.";
170 "The 12-bit VLAN-ID used in the VLAN Tag header.";
173 typedef vid-range-type {
175 pattern "([1-9][0-9]{0,3}(-[1-9][0-9]{0,3})?" +
176 "(,[1-9][0-9]{0,3}(-[1-9][0-9]{0,3})?)*)";
179 "A list of VLAN Ids, or non overlapping VLAN ranges, in
180 ascending order, between 1 and 4094.
181 This type is used to match an ordered list of VLAN Ids, or
182 contiguous ranges of VLAN Ids. Valid VLAN Ids must be in the
183 range 1 to 4094, and included in the list in non overlapping
185 For example: 1,10-100,50,500-1000";
188 typedef bandwidth-profile-type {
190 base bandwidth-profile-type;
193 "Identifies a specific Bandwidth Profile type.";
196 typedef service-type {
201 "Identifies the type of Ethernet service.";
205 * Grouping Definitions
208 grouping etht-bandwidth-profiles {
210 "Bandwidth profile configuration paramters.";
212 leaf bandwidth-profile-name {
215 "Name of the bandwidth profile.";
217 leaf bandwidth-profile-type {
218 type etht-types:bandwidth-profile-type;
220 "The type of bandwidth profile.";
225 "Committed Information Rate in Kbps";
230 "Committed Burst Size in in KBytes";
235 * Open Issue: need to indicate that EIR is not supported by RFC 2697
237 * '../bw-profile-type = "mef-10-bwp" or ' +
238 * '../bw-profile-type = "rfc-2698-bwp" or ' +
239 * '../bw-profile-type = "rfc-4115-bwp"'
242 * '../bw-profile-type != "rfc-2697-bwp"'
245 "Excess Information Rate in Kbps
246 In case of RFC 2698, PIR = CIR + EIR";
251 "Excess Burst Size in KBytes.
252 In case of RFC 2698, PBS = CBS + EBS";
257 "Indicates weather the color-mode is color-aware or color-blind.";
262 * Open issue: need to indicate that Coupling Flag is defined only for MEF 10
265 * '../bw-profile-type = "mef-10-bwp"'
272 grouping eth-bandwidth {
275 range "0..10000000000";
279 "Available bandwith value expressed in kilobits per second";
283 grouping eth-label-restriction {
284 container eth-label-restriction {
286 type etht-types:eth-tag-type;
287 description "VLAN tag type.";
291 description "priority.";
298 type etht-types:vlanid;