Add tenant to yang and tenant listeners.
[unimgr.git] / legato-api / src / main / yang / mef-services.yang
1 module mef-services {\r
2   namespace "http://metroethernetforum.org/ns/yang/mef-services";\r
3   prefix mef-services;\r
4   import ietf-yang-types {\r
5     prefix yang;\r
6   }\r
7   import mef-types {\r
8     prefix mef-types;\r
9   }\r
10   import mef-global {\r
11     prefix mef-global;\r
12   }\r
13   import mef-interfaces {\r
14     prefix mef-interfaces;\r
15   }\r
16   organization "Metro Ethernet Forum";\r
17   contact\r
18     "Web URL: http://metroethernetforum.org/\r
19      E-mail:  mibs@metroethernetforum.org\r
20      Postal:  Metro Ethernet Forum\r
21               6033 W. Century Boulevard, Suite 1107\r
22               Los Angeles, CA 90045\r
23               U.S.A.\r
24      Phone:   +1 310-642-2800\r
25      Fax:     +1 310-642-2808";\r
26   description\r
27     "This module implements the Carrier Ethernet Services as\r
28      defined in MEF 10.3, MEF 6.2, and MEF 7.2.\r
29       \r
30      Reference Overview:\r
31       A number of base documents have been used to create the\r
32       MEF Services YANG Module. The\r
33       following are the abbreviations for the baseline documents:\r
34       [RFC 6991] refers to IETF RFC 6991 'Common YANG Data Types',\r
35       2013-07-15 \r
36       [RFC 6643] refers to IETF RFC 6643 'Translation of Structure\r
37       of Management Information\r
38       Version 2 (SMIv2) MIB Modules to YANG Modules', 2011-11-25 \r
39       [802.1AB] refers to 'Station and Media Access Control\r
40       Connectivity Discovery', IEEE 802.1AB-2009, September 2009\r
41       [802.1q] refers to IEEE 802.1Q-2011 'IEEE Standard for Local\r
42       and metropolitan area networks --Media Access Control (MAC)\r
43       Bridges and Virtual Bridged Local Area Networks, August 2011\r
44       [802-2001] refers to 'IEEE Standard for Local and Metropolitan\r
45       Area Networks: Overview and Architecture', IEEE 802-2001,\r
46       February 2002\r
47       [MEF10.3] refers to MEF 10.3\r
48       'Ethernet Services Attributes Phase 3', October 2013\r
49       [MEF6.2] refers to MEF 6.2\r
50       'EVC Ethernet Services Defintions Phase 3', August 2014\r
51       [MEF40] refers to MEF 40\r
52       'UNI and EVC Definition of Managed Objects', April 2013\r
53       [MEF45] refers to MEF 45 'Multi-CEN L2CP', August 2014\r
54       [MEF7.2] refers to MEF 7.2\r
55       'Carrier Ethernet Management Information Model', April 2013\r
56       [MEF7.3] refers to MEF 7.3\r
57       'Carrier Ethernet Management Information Model',\r
58       Working Draft #1 2015\r
59       [RFC 2737] refers to IETF RFC 2737 'Entity MIB (Version 2)',\r
60       December 1999\r
61       [RFC 2863] refers to IETF RFC 2863 'The Interfaces Group MIB',\r
62       June 2000\r
63       [RFC 3419] refers to IETF RFC 3419\r
64       'Textual Conventions for Transport Addresses', December 2002\r
65       [Y.1731] refers to ITU-T Y.1731\r
66       'OAM functions and mechanisms for Ethernet based networks',\r
67       July 2011\r
68       [Q.840.1] refers to ITU-T Q.840.1\r
69       'Requirements and analysis for NMS-EMS management interface\r
70       of Ethernet over Transport and Metro Ethernet\r
71       Network(EoT/MEN)' March 2007";\r
72   revision 2015-05-26 {\r
73     description\r
74       "Formal Project Review Draft 1.";\r
75     reference "EVC Ethernet Services Definitions YANG Modules " +\r
76             "(MEF XX), TBD";\r
77   }\r
78    \r
79   container mef-services {\r
80     description\r
81       "MEF Services";\r
82     list mef-service {\r
83       must "(not(/mef-global:mef-global/mef-global:svc-providers)" +\r
84             " and " +\r
85             "not(./sp-id)) or " +\r
86             "(/mef-global:mef-global/mef-global:svc-providers and " +\r
87             "./sp-id)" {\r
88         error-message "If the Service Providers list has been " +\r
89                 "populated, a Service Provider ID must be " +\r
90                 "configured for a Service.";\r
91         description\r
92           "A Service sees a single Service Provider. This must " +\r
93           "statement is effectively a 'mandatory true' when " +\r
94           "the Global Service Providers list is being used.";\r
95       }\r
96       key "svc-id";\r
97       unique "evc/evc-id";\r
98       description\r
99         "Metro Ethernet Forum's Ethernet Services.";\r
100       container evc {\r
101         must "not(sls-uni-inclusions) or " +\r
102                 "(sls-uni-inclusions and not(sls-uni-exclusions))" {\r
103           error-message "The EVC Performance SLS Exclusions and " +\r
104                 "Inclusions List cannot both be configured for " +\r
105                 "an EVC.";\r
106           description\r
107             "The EVC Performance SLS Exclusions and Inclusions " +\r
108             "List cannot both be configured for an EVC.";\r
109         }\r
110         must "(evc-type != 'rooted-multipoint') or " +\r
111                 "((evc-type = 'rooted-multipoint') and " +\r
112                 "not(sls-uni-exclusions) )" {\r
113           error-message "If EVC Type is Rooted-Multipoint, " +\r
114                 "sls-uni-inclusions must be used instead of " +\r
115                 "sls-uni-exclusions.";\r
116           description\r
117             "If EVC Type is Rooted-Multipoint, " +\r
118             "sls-uni-inclusions must be used instead of " +\r
119             "sls-uni-exclusions.";\r
120         }\r
121         description\r
122           "Ethernet Virtual Circuit(EVC) Configuration and Status.";\r
123         container unis {\r
124           description\r
125             "EVC Per Universal Network Interface(UNI) " +\r
126             "Configuration and Status.";\r
127           list uni {\r
128             must "not(evc-uni-ce-vlans/evc-uni-ce-vlan[2]) or " +\r
129                     "../../preserve-ce-vlan-id = 'true'" {\r
130               error-message "When more than one CE-VLAN-ID is " +\r
131                     "mapped to an EVC at a UNI, the EVC must have " +\r
132                     "CE-VLAN ID Preservation Enabled.";\r
133               description\r
134                 "When more than one CE-VLAN-ID is mapped to " +\r
135                 "an EVC at a UNI, the EVC must have CE-VLAN ID " +\r
136                 "Preservation Enabled.";\r
137             }\r
138             must "/mef-interfaces:mef-interfaces/mef-interfaces:" +\r
139                     "unis/mef-interfaces:uni" +\r
140                     "[mef-interfaces:uni-id = current()/" +\r
141                     "mef-services:uni-id]" +\r
142                     "[mef-interfaces:uni-id/../mef-interfaces:" +\r
143                     "max-svc-frame-size >= current()/../../" +\r
144                     "mef-services:max-svc-frame-size]" {\r
145               error-message "The value of the EVC Maximum " +\r
146                     "Service Frame Size must be less than " +\r
147                     "or equal to all the UNI Maximum Service " +\r
148                     "Frame Sizes.";\r
149               description\r
150                 "The value of the EVC Maximum Service Frame " +\r
151                 "Size must be less than or equal to all the " +\r
152                 "UNI Maximum Service Frame Sizes.";\r
153             }\r
154             must "(/mef-interfaces:mef-interfaces/mef-interfaces:" +\r
155                     "unis/mef-interfaces:uni" +\r
156                     "[mef-interfaces:uni-id = current()/" +\r
157                     "mef-services:uni-id]" +\r
158                     "[mef-interfaces:uni-id/../mef-interfaces:" +\r
159                     "bundling-enabled = 'true']) or " +\r
160                     "(/mef-interfaces:mef-interfaces/" +\r
161                     "mef-interfaces:unis/mef-interfaces:uni" +\r
162                     "[mef-interfaces:uni-id = current()/" +\r
163                     "mef-services:uni-id]" +\r
164                     "[mef-interfaces:uni-id/../mef-interfaces:" +\r
165                     "all-to-one-bundling-enabled = 'true']) or " +\r
166                     "not(evc-uni-ce-vlans/evc-uni-ce-vlan[2])" {\r
167               error-message "If both Bundling and All-to-One " +\r
168                     "Bundling are disabled for a UNI, only one " +\r
169                     "CE VLAN ID can be configured for a specific " +\r
170                     "EVC on that UNI.";\r
171               description\r
172                 "If both Bundling and All-to-One Bundling are " +\r
173                 "disabled for a UNI, only one CE VLAN ID can be " +\r
174                 "configured for a specific EVC on that UNI.";\r
175             }\r
176             must "(/mef-interfaces:mef-interfaces/mef-interfaces:" +\r
177                     "unis/mef-interfaces:uni" +\r
178                     "[mef-interfaces:uni-id = current()/" +\r
179                     "mef-services:uni-id]" +\r
180                     "[mef-interfaces:uni-id/../mef-interfaces:" +\r
181                     "all-to-one-bundling-enabled = 'false']) or " +\r
182                     "(count(/mef-services:mef-services/" +\r
183                     "mef-service/evc/unis/uni[uni-id = " +\r
184                     "current()/uni-id]) = 1)" {\r
185               error-message "If All-to-One Bundling is enabled " +\r
186                     "for any UNI in an EVC, all CE-VLAN IDs " +\r
187                     "mapped to any EVC for that UNI must map " +\r
188                     "to the same EVC ID.";\r
189               description\r
190                 "If All-to-One Bundling is enabled for any UNI " +\r
191                 "in an EVC, all CE-VLAN IDs mapped to any EVC " +\r
192                 "for that UNI must map to the same EVC ID.";\r
193             }\r
194             must "((/mef-interfaces:mef-interfaces/" +\r
195                     "mef-interfaces:unis/mef-interfaces:uni" +\r
196                     "[mef-interfaces:uni-id = current()/" +\r
197                     "mef-services:uni-id]" +\r
198                     "[mef-interfaces:uni-id/../mef-interfaces:" +\r
199                     "ingress-bw-profile-per-uni]) or " +\r
200                     "(/mef-services:mef-services/mef-service/" +\r
201                     "evc/unis/uni" +\r
202                     "[uni-id = current()/mef-services:uni-id]" +\r
203                     "/ingress-bwp-flows-per-cos) or " +\r
204                     "(/mef-services:mef-services/mef-service/" +\r
205                     "evc/unis/uni" +\r
206                     "[uni-id = current()/mef-services:uni-id]" +\r
207                     "/ingress-bw-profile-per-evc)) or " +\r
208                     "not(/mef-interfaces:mef-interfaces/" +\r
209                     "mef-interfaces:unis/mef-interfaces:uni" +\r
210                     "[mef-interfaces:uni-id = current()/" +\r
211                     "mef-services:uni-id]" +\r
212                     "/mef-interfaces:ingress-envelopes)" {\r
213               error-message "If no Ingress Bandwidth Profiles " +\r
214                     "are specied for this UNI (BW Profile " +\r
215                     "Per UNI, BWP Flows Per CoS, nor BW Profile " +\r
216                     "Per EVC), then the UNI Ingress Envelopes " +\r
217                     "list must be empty.";\r
218               description\r
219                 "If no Ingress Bandwidth Profiles are specied " +\r
220                 "for this UNI (BW Profile Per UNI, BWP Flows " +\r
221                 "Per CoS, nor BW Profile Per EVC), then the " +\r
222                 "UNI Ingress Envelopes list must be empty.";\r
223             }\r
224             must "((/mef-interfaces:mef-interfaces/" +\r
225                     "mef-interfaces:unis/mef-interfaces:uni" +\r
226                     "[mef-interfaces:uni-id = current()/" +\r
227                     "mef-services:uni-id]" +\r
228                     "[mef-interfaces:uni-id/../mef-interfaces:" +\r
229                     "egress-bw-profile-per-uni]) or " +\r
230                     "(/mef-services:mef-services/mef-service/" +\r
231                     "evc/unis/uni" +\r
232                     "[uni-id = current()/mef-services:uni-id]" +\r
233                     "/egress-bwp-flows-per-eec) or " +\r
234                     "(/mef-services:mef-services/mef-service/" +\r
235                     "evc/unis/uni" +\r
236                     "[uni-id = current()/mef-services:uni-id]" +\r
237                     "/egress-bw-profile-per-evc)) or " +\r
238                     "not(/mef-interfaces:mef-interfaces/" +\r
239                     "mef-interfaces:unis/mef-interfaces:uni" +\r
240                     "[mef-interfaces:uni-id = current()/" +\r
241                     "mef-services:uni-id]" +\r
242                     "/mef-interfaces:egress-envelopes)" {\r
243               error-message "If no Egress Bandwidth Profiles are " +\r
244                     "specied for this UNI (BW Profile Per UNI, " +\r
245                     "BWP Flows Per EEC, nor BW Profile Per EVC), " +\r
246                     "then the UNI Egress Envelopes list must be " +\r
247                     "empty.";\r
248               description\r
249                 "If no Egress Bandwidth Profiles are specied " +\r
250                 "for this UNI (BW Profile Per UNI, BWP Flows " +\r
251                 "Per EEC, nor BW Profile Per EVC), then the UNI " +\r
252                 "Egress Envelopes list must be empty.";\r
253             }\r
254             must "not(./ingress-bw-profile-per-evc) or " +\r
255                     "((./ingress-bw-profile-per-evc) and " +\r
256                     "not(./ingress-bwp-flows-per-cos))" {\r
257               error-message "If there is a per EVC Ingress " +\r
258                     "Bandwidth Profile on an EVC, then there " +\r
259                     "cannot be any per Class of Service Ingress " +\r
260                     "Bandwidth Profiles on that EVC.";\r
261               description\r
262                 "If there is a per EVC Ingress Bandwidth Profile " +\r
263                 "on an EVC, then there cannot be any per " +\r
264                 "Class of Service Ingress Bandwidth Profiles " +\r
265                 "on that EVC.";\r
266             }\r
267             must "not(./egress-bw-profile-per-evc) or " +\r
268                     "((./egress-bw-profile-per-evc) and " +\r
269                     "not(./egress-bwp-flows-per-eec))" {\r
270               error-message "If there is a per EVC Egress " +\r
271                     "Bandwidth Profile on an EVC, then there " +\r
272                     "cannot be any per Egress Equivalence " +\r
273                     "Class Identifier Bandwidth Profiles on " +\r
274                     "that EVC.";\r
275               description\r
276                 "If there is a per EVC Egress Bandwidth " +\r
277                 "Profile on an EVC, then there cannot be " +\r
278                 "any per Egress Equivalence Class Identifier " +\r
279                 "Bandwidth Profiles on that EVC.";\r
280             }\r
281             must "not(/mef-interfaces:mef-interfaces/" +\r
282                     "mef-interfaces:unis/mef-interfaces:uni" +\r
283                     "[mef-interfaces:uni-id = current()/" +\r
284                     "mef-services:uni-id]" +\r
285                     "/mef-interfaces:ingress-bw-profile-" +\r
286                     "per-uni) or " +\r
287                     "(/mef-global:mef-global/mef-global:" +\r
288                     "profiles/mef-global:ingress-bwp-flows/" +\r
289                     "mef-global:bwp-flow" +\r
290                     "[mef-global:bw-profile = /mef-interfaces:" +\r
291                     "mef-interfaces/mef-interfaces:unis/" +\r
292                     "mef-interfaces:uni" +\r
293                     "[mef-interfaces:uni-id = current()/" +\r
294                     "mef-services:uni-id]" +\r
295                     "/mef-interfaces:ingress-bw-profile-per-uni]" +\r
296                     "[mef-global:cir = 0]) or " +\r
297                     "(/mef-global:mef-global/mef-global:" +\r
298                     "profiles/mef-global:ingress-bwp-flows/" +\r
299                     "mef-global:bwp-flow" +\r
300                     "[mef-global:bw-profile = /mef-interfaces:" +\r
301                     "mef-interfaces/mef-interfaces:unis/" +\r
302                     "mef-interfaces:uni" +\r
303                     "[mef-interfaces:uni-id = current()/" +\r
304                     "mef-services:uni-id]" +\r
305                     "/mef-interfaces:ingress-bw-profile-per-uni]" +\r
306                     "[mef-global:cbs >= current()/../../" +\r
307                     "max-svc-frame-size])" {\r
308               error-message "Ingress Bandwidth Profile Per UNI: " +\r
309                     "If CIR > 0, CBS must be greater than or " +\r
310                     "equal to the EVC Max Service Frame Size " +\r
311                     "for the EVC.";\r
312               description\r
313                 "Ingress Bandwidth Profile Per UNI: If CIR > 0, " +\r
314                 "CBS must be greater than or equal to the " +\r
315                 "EVC Max Service Frame Size for the EVC.";\r
316             }\r
317             must "not(/mef-interfaces:mef-interfaces/" +\r
318                     "mef-interfaces:unis/mef-interfaces:uni" +\r
319                     "[mef-interfaces:uni-id = current()/" +\r
320                     "mef-services:uni-id]" +\r
321                     "/mef-interfaces:egress-bw-profile-per-uni) " +\r
322                     "or " +\r
323                     "(/mef-global:mef-global/mef-global:profiles/" +\r
324                     "mef-global:egress-bwp-flows/mef-global:" +\r
325                     "bwp-flow" +\r
326                     "[mef-global:bw-profile = /mef-interfaces:" +\r
327                     "mef-interfaces/mef-interfaces:unis/" +\r
328                     "mef-interfaces:uni" +\r
329                     "[mef-interfaces:uni-id = current()/" +\r
330                     "mef-services:uni-id]" +\r
331                     "/mef-interfaces:egress-bw-profile-per-uni]" +\r
332                     "[mef-global:cir = 0]) or " +\r
333                     "(/mef-global:mef-global/mef-global:profiles/" +\r
334                     "mef-global:ingress-bwp-flows/mef-global:" +\r
335                     "bwp-flow" +\r
336                     "[mef-global:bw-profile = /mef-interfaces:" +\r
337                     "mef-interfaces/mef-interfaces:unis/" +\r
338                     "mef-interfaces:uni" +\r
339                     "[mef-interfaces:uni-id = current()/" +\r
340                     "mef-services:uni-id]" +\r
341                     "/mef-interfaces:egress-bw-profile-per-uni]" +\r
342                     "[mef-global:cbs >= current()/../../" +\r
343                     "max-svc-frame-size])" {\r
344               error-message "Egress Bandwidth Profile Per UNI: " +\r
345                     "If CIR > 0, CBS must be greater than or " +\r
346                     "equal to the EVC Max Service Frame Size " +\r
347                     "for the EVC.";\r
348               description\r
349                 "Egress Bandwidth Profile Per UNI: If CIR > 0, " +\r
350                 "CBS must be greater than or equal to the " +\r
351                 "EVC Max Service Frame Size for the EVC.";\r
352             }\r
353             must "not(/mef-interfaces:mef-interfaces/" +\r
354                     "mef-interfaces:unis/mef-interfaces:uni" +\r
355                     "[mef-interfaces:uni-id = current()/" +\r
356                     "mef-services:uni-id]" +\r
357                     "/mef-interfaces:ingress-envelopes) or " +\r
358                     "(/mef-global:mef-global/mef-global:" +\r
359                     "profiles/mef-global:ingress-bwp-flows/" +\r
360                     "mef-global:bwp-flow" +\r
361                     "[mef-global:bw-profile = /mef-interfaces:" +\r
362                     "mef-interfaces/mef-interfaces:unis/" +\r
363                     "mef-interfaces:uni" +\r
364                     "[mef-interfaces:uni-id = current()/" +\r
365                     "mef-services:uni-id]" +\r
366                     "/mef-interfaces:ingress-envelopes/" +\r
367                     "mef-interfaces:envelope/mef-interfaces:" +\r
368                     "bwp-flows/mef-interfaces:bwp-flow/" +\r
369                     "mef-interfaces:bw-profile]" +\r
370                     "[mef-global:cir = 0]) or " +\r
371                     "(/mef-global:mef-global/mef-global:" +\r
372                     "profiles/mef-global:ingress-bwp-flows/" +\r
373                     "mef-global:bwp-flow" +\r
374                     "[mef-global:bw-profile = /mef-interfaces:" +\r
375                     "mef-interfaces/mef-interfaces:unis/" +\r
376                     "mef-interfaces:uni" +\r
377                     "[mef-interfaces:uni-id = current()/" +\r
378                     "mef-services:uni-id]" +\r
379                     "/mef-interfaces:ingress-envelopes/" +\r
380                     "mef-interfaces:envelope/mef-interfaces:" +\r
381                     "bwp-flows/mef-interfaces:bwp-flow/" +\r
382                     "mef-interfaces:bw-profile]" +\r
383                     "[mef-global:cbs >= current()/../../" +\r
384                     "max-svc-frame-size])" {\r
385               error-message "Ingress Bandwidth Profile Envelope: " +\r
386                     "If CIR > 0, CBS must be greater than or " +\r
387                     "equal to the EVC Max Service Frame Size " +\r
388                     "for the EVC.";\r
389               description\r
390                 "Ingress Bandwidth Profile Envelope: " +\r
391                 "If CIR > 0, CBS must be greater than " +\r
392                 "or equal to the EVC Max Service Frame " +\r
393                 "Size for the EVC.";\r
394             }\r
395             must "not(/mef-interfaces:mef-interfaces/" +\r
396                     "mef-interfaces:unis/mef-interfaces:uni" +\r
397                     "[mef-interfaces:uni-id = current()/" +\r
398                     "mef-services:uni-id]" +\r
399                     "/mef-interfaces:egress-envelopes) or " +\r
400                     "(/mef-global:mef-global/mef-global:" +\r
401                     "profiles/mef-global:egress-bwp-flows/" +\r
402                     "mef-global:bwp-flow" +\r
403                     "[mef-global:bw-profile = " +\r
404                     "/mef-interfaces:mef-interfaces/" +\r
405                     "mef-interfaces:unis/mef-interfaces:uni" +\r
406                     "[mef-interfaces:uni-id = current()/" +\r
407                     "mef-services:uni-id]" +\r
408                     "/mef-interfaces:egress-envelopes/" +\r
409                     "mef-interfaces:envelope/mef-interfaces:" +\r
410                     "bwp-flows/mef-interfaces:bwp-flow/" +\r
411                     "mef-interfaces:bw-profile]" +\r
412                     "[mef-global:cir = 0]) or " +\r
413                     "(/mef-global:mef-global/mef-global:" +\r
414                     "profiles/mef-global:egress-bwp-flows/" +\r
415                     "mef-global:bwp-flow" +\r
416                     "[mef-global:bw-profile = /mef-interfaces:" +\r
417                     "mef-interfaces/mef-interfaces:unis/" +\r
418                     "mef-interfaces:uni" +\r
419                     "[mef-interfaces:uni-id = current()/" +\r
420                     "mef-services:uni-id]" +\r
421                     "/mef-interfaces:egress-envelopes/" +\r
422                     "mef-interfaces:envelope/mef-interfaces:" +\r
423                     "bwp-flows/mef-interfaces:bwp-flow/" +\r
424                     "mef-interfaces:bw-profile]" +\r
425                     "[mef-global:cbs >= current()/../../" +\r
426                     "max-svc-frame-size])" {\r
427               error-message "Egress Bandwidth Profile " +\r
428                     "Envelope: If CIR > 0, CBS must be greater " +\r
429                     "than or equal to the EVC Max Service Frame " +\r
430                     "Size for the EVC.";\r
431               description\r
432                 "Egress Bandwidth Profile Envelope: If CIR > 0, " +\r
433                 "CBS must be greater than or equal to the " +\r
434                 "EVC Max Service Frame Size for the EVC.";\r
435             }\r
436             must "not(/mef-interfaces:mef-interfaces/" +\r
437                     "mef-interfaces:unis/mef-interfaces:uni" +\r
438                     "[mef-interfaces:uni-id = current()/" +\r
439                     "mef-services:uni-id]" +\r
440                     "/mef-interfaces:ingress-bw-profile-per-uni) " +\r
441                     "or " +\r
442                     "(/mef-global:mef-global/mef-global:profiles/" +\r
443                     "mef-global:ingress-bwp-flows/mef-global:" +\r
444                     "bwp-flow" +\r
445                     "[mef-global:bw-profile = /mef-interfaces:" +\r
446                     "mef-interfaces/mef-interfaces:unis/" +\r
447                     "mef-interfaces:uni" +\r
448                     "[mef-interfaces:uni-id = current()/" +\r
449                     "mef-services:uni-id]/mef-interfaces:" +\r
450                     "ingress-bw-profile-per-uni]" +\r
451                     "[mef-global:eir = 0]) or " +\r
452                     "(/mef-global:mef-global/mef-global:profiles/" +\r
453                     "mef-global:ingress-bwp-flows/" +\r
454                     "mef-global:bwp-flow" +\r
455                     "[mef-global:bw-profile = /mef-interfaces:" +\r
456                     "mef-interfaces/mef-interfaces:unis/" +\r
457                     "mef-interfaces:uni" +\r
458                     "[mef-interfaces:uni-id = current()/" +\r
459                     "mef-services:uni-id]" +\r
460                     "/mef-interfaces:ingress-bw-profile-per-uni]" +\r
461                     "[mef-global:ebs >= current()/../../" +\r
462                     "max-svc-frame-size])" {\r
463               error-message "Ingress Bandwidth Profile Per UNI: " +\r
464                     "If EIR > 0, EBS must be greater than or " +\r
465                     "equal to the EVC Max Service Frame Size " +\r
466                     "for the EVC.";\r
467               description\r
468                 "Ingress Bandwidth Profile Per UNI: If EIR > 0, " +\r
469                 "EBS must be greater than or equal to the " +\r
470                 "EVC Max Service Frame Size for the EVC.";\r
471             }\r
472             must "not(/mef-interfaces:mef-interfaces/" +\r
473                     "mef-interfaces:unis/mef-interfaces:uni" +\r
474                     "[mef-interfaces:uni-id = current()/" +\r
475                     "mef-services:uni-id]" +\r
476                     "/mef-interfaces:egress-bw-profile-" +\r
477                     "per-uni) or " +\r
478                     "(/mef-global:mef-global/mef-global:" +\r
479                     "profiles/mef-global:egress-bwp-flows/" +\r
480                     "mef-global:bwp-flow" +\r
481                     "[mef-global:bw-profile = /mef-interfaces:" +\r
482                     "mef-interfaces/mef-interfaces:unis/" +\r
483                     "mef-interfaces:uni" +\r
484                     "[mef-interfaces:uni-id = current()/" +\r
485                     "mef-services:uni-id]/mef-interfaces:" +\r
486                     "egress-bw-profile-per-uni]" +\r
487                     "[mef-global:eir = 0]) or " +\r
488                     "(/mef-global:mef-global/mef-global:" +\r
489                     "profiles/mef-global:ingress-bwp-flows/" +\r
490                     "mef-global:bwp-flow" +\r
491                     "[mef-global:bw-profile = /mef-interfaces:" +\r
492                     "mef-interfaces/mef-interfaces:unis/" +\r
493                     "mef-interfaces:uni" +\r
494                     "[mef-interfaces:uni-id = current()/" +\r
495                     "mef-services:uni-id]/mef-interfaces:" +\r
496                     "egress-bw-profile-per-uni]" +\r
497                     "[mef-global:ebs >= current()/../../" +\r
498                     "max-svc-frame-size])" {\r
499               error-message "Egress Bandwidth Profile Per UNI: " +\r
500                     "If EIR > 0, EBS must be greater than or " +\r
501                     "equal to the EVC Max Service Frame Size " +\r
502                     "for the EVC.";\r
503               description\r
504                 "Egress Bandwidth Profile Per UNI: If EIR > 0, " +\r
505                 "EBS must be greater than or equal to the " +\r
506                 "EVC Max Service Frame Size for the EVC.";\r
507             }\r
508             must "not(/mef-interfaces:mef-interfaces/" +\r
509                     "mef-interfaces:" +\r
510                     "unis/mef-interfaces:uni" +\r
511                     "[mef-interfaces:uni-id = current()/" +\r
512                     "mef-services:uni-id]" +\r
513                     "/mef-interfaces:ingress-envelopes) or " +\r
514                     "(/mef-global:mef-global/mef-global:profiles/" +\r
515                     "mef-global:ingress-bwp-flows/mef-global:" +\r
516                     "bwp-flow" +\r
517                     "[mef-global:bw-profile = /mef-interfaces:" +\r
518                     "mef-interfaces/mef-interfaces:unis/" +\r
519                     "mef-interfaces:uni" +\r
520                     "[mef-interfaces:uni-id = current()/" +\r
521                     "mef-services:uni-id]" +\r
522                     "/mef-interfaces:ingress-envelopes/" +\r
523                     "mef-interfaces:envelope/mef-interfaces:" +\r
524                     "bwp-flows/mef-interfaces:bwp-flow/" +\r
525                     "mef-interfaces:bw-profile]" +\r
526                     "[mef-global:eir = 0]) or " +\r
527                     "(/mef-global:mef-global/mef-global:profiles/" +\r
528                     "mef-global:ingress-bwp-flows/mef-global:" +\r
529                     "bwp-flow" +\r
530                     "[mef-global:bw-profile = /mef-interfaces:" +\r
531                     "mef-interfaces/mef-interfaces:unis/" +\r
532                     "mef-interfaces:uni" +\r
533                     "[mef-interfaces:uni-id = current()/" +\r
534                     "mef-services:uni-id]" +\r
535                     "/mef-interfaces:ingress-envelopes/" +\r
536                     "mef-interfaces:envelope/mef-interfaces:" +\r
537                     "bwp-flows/mef-interfaces:bwp-flow/" +\r
538                     "mef-interfaces:bw-profile]" +\r
539                     "[mef-global:ebs >= current()/../../" +\r
540                     "max-svc-frame-size])" {\r
541               error-message "Ingress Bandwidth Profile Envelope: " +\r
542                     "If EIR > 0, EBS must be greater than or " +\r
543                     "equal to the EVC Max Service Frame Size " +\r
544                     "for the EVC.";\r
545               description\r
546                 "Ingress Bandwidth Profile Envelope: " +\r
547                 "If EIR > 0, EBS must be greater than or equal " +\r
548                 "to the EVC Max Service Frame Size for the EVC.";\r
549             }\r
550             must "not(/mef-interfaces:mef-interfaces/" +\r
551                     "mef-interfaces:unis/mef-interfaces:uni" +\r
552                     "[mef-interfaces:uni-id = current()/" +\r
553                     "mef-services:uni-id]" +\r
554                     "/mef-interfaces:egress-envelopes) or " +\r
555                     "(/mef-global:mef-global/mef-global:" +\r
556                     "profiles/mef-global:egress-bwp-flows/" +\r
557                     "mef-global:bwp-flow" +\r
558                     "[mef-global:bw-profile = /mef-interfaces:" +\r
559                     "mef-interfaces/mef-interfaces:unis/" +\r
560                     "mef-interfaces:uni" +\r
561                     "[mef-interfaces:uni-id = current()/" +\r
562                     "mef-services:uni-id]" +\r
563                     "/mef-interfaces:egress-envelopes/" +\r
564                     "mef-interfaces:envelope/mef-interfaces:" +\r
565                     "bwp-flows/mef-interfaces:bwp-flow/" +\r
566                     "mef-interfaces:bw-profile]" +\r
567                     "[mef-global:eir = 0]) or " +\r
568                     "(/mef-global:mef-global/mef-global:profiles/" +\r
569                     "mef-global:egress-bwp-flows/mef-global:" +\r
570                     "bwp-flow" +\r
571                     "[mef-global:bw-profile = /mef-interfaces:" +\r
572                     "mef-interfaces/mef-interfaces:unis/" +\r
573                     "mef-interfaces:uni" +\r
574                     "[mef-interfaces:uni-id = current()/" +\r
575                     "mef-services:uni-id]" +\r
576                     "/mef-interfaces:egress-envelopes/" +\r
577                     "mef-interfaces:envelope/mef-interfaces:" +\r
578                     "bwp-flows/mef-interfaces:bwp-flow/" +\r
579                     "mef-interfaces:bw-profile]" +\r
580                     "[mef-global:ebs >= current()/../../" +\r
581                     "max-svc-frame-size])" {\r
582               error-message "Egress Bandwidth Profile Envelope: " +\r
583                     "If EIR > 0, EBS must be greater than or " +\r
584                     "equal to the EVC Max Service Frame Size " +\r
585                     "for the EVC.";\r
586               description\r
587                 "Egress Bandwidth Profile Envelope: " +\r
588                 "If EIR > 0, EBS must be greater than or " +\r
589                 "equal to the EVC Max Service Frame Size " +\r
590                 "for the EVC.";\r
591             }\r
592             key "uni-id";\r
593             description\r
594               "EVC Flow Points and EVC-UNI List defines the " +\r
595               "roles of each UNI in the Service. One UNI can " +\r
596               "be used by 0 or more EVCs.";\r
597             reference "[MEF10.3] Section 8.3. " +\r
598                     "[MEF7.3] Section 12.2.2.";\r
599             container evc-uni-ce-vlans {\r
600               description\r
601                 "EVC Per UNI CE-VLAN IDs.";\r
602               list evc-uni-ce-vlan {\r
603                 key "vid";\r
604                 description\r
605                   "A list of the CE-VLAN IDs mapped to this UNI " +\r
606                   "for this EVC.";\r
607                 reference "[MEF10.3] Section 8.6.1, [R24] " +\r
608                         "[R25], Section 9.10.2, Section 9.12, " +\r
609                         "[R76], [R81].";\r
610                 leaf vid {\r
611                   type leafref {\r
612                     path "/mef-interfaces:mef-interfaces/" +\r
613                             "mef-interfaces:unis/" +\r
614                             "mef-interfaces:uni" +\r
615                             "[mef-interfaces:uni-id = " +\r
616                             "current()/../../../uni-id]" +\r
617                             "/mef-interfaces:ce-vlans/" +\r
618                             "mef-interfaces:ce-vlan/" +\r
619                             "mef-interfaces:vid";\r
620                   }\r
621                   must "not(current()/../../" +\r
622                         "evc-uni-ce-vlan[2]) or " +\r
623                         "(count(../../../../uni/evc-uni-ce-vlans/" +\r
624                         "evc-uni-ce-vlan" +\r
625                         "[vid = current()]) = " +\r
626                         "count(../../../../uni))" {\r
627                     error-message "If more than one CE-VLAN ID " +\r
628                             "is configured for a UNI as part of " +\r
629                             "an EVC, every CE VLAN-ID mapped to " +\r
630                             "that EVC must be configured for all " +\r
631                             "UNIs within that EVC.";\r
632                     description\r
633                       "If more than one CE-VLAN ID is configured " +\r
634                       "for a UNI as part of an EVC, every " +\r
635                       "CE VLAN-ID mapped to that EVC must be " +\r
636                       "configured for all UNIs within that EVC.";\r
637                   }\r
638                   description\r
639                     "VLAN Identifier.";\r
640                 }\r
641               }\r
642             }\r
643             container ingress-bwp-flows-per-cos {\r
644               presence "Use Ingress Bandwidth Profiles Per CoS";\r
645               description\r
646                 "EVC Per UNI Class of Service Identifiers " +\r
647                 "corresponding to this EVC's Ingress Bandwidth " +\r
648                 "Profile Flows.";\r
649               leaf coupling-enabled {\r
650                 type boolean;\r
651                 default "false";\r
652                 description\r
653                   "EVC Per UNI Envelope Coupling Flag (CF) " +\r
654                   "attribute.";\r
655                 reference "[MEF10.3] Section 12.1.";\r
656               }\r
657               list bwp-flow-per-cos {\r
658                 key "cos-name";\r
659                 description\r
660                   "EVC Per UNI: The list of Class of Service " +\r
661                   "Identifiers corresponding to this UNI's " +\r
662                   "Ingress Bandwidth Profile Flow.";\r
663                 leaf cos-name {\r
664                   type leafref {\r
665                     path "/mef-global:mef-global/mef-global:" +\r
666                             "profiles/mef-global:cos-names/" +\r
667                             "mef-global:cos-name/mef-global:name";\r
668                   }\r
669                   description\r
670                     "EVC Per UNI: Class of Service Identifier " +\r
671                     "for this Bandwidth Profile Flow.";\r
672                   reference "[MEF7.3] Section 12.1.2.";\r
673                 }\r
674                 leaf bw-profile {\r
675                   type leafref {\r
676                     path "/mef-interfaces:mef-interfaces/" +\r
677                             "mef-interfaces:unis/" +\r
678                             "mef-interfaces:uni" +\r
679                             "[mef-interfaces:uni-id = " +\r
680                             "current()/../../../uni-id]" +\r
681                             "/mef-interfaces:ingress-envelopes/" +\r
682                             "mef-interfaces:envelope/" +\r
683                             "mef-interfaces:env-id";\r
684                   }\r
685                   mandatory true;\r
686                   description\r
687                     "EVC Per UNI: Ingress Bandwidth Profile " +\r
688                     "Envelope Per CoS ID. If this parameter " +\r
689                     "is not configured (ie. 'No') this " +\r
690                     "setting is configured else at the " +\r
691                     "UNI Level.";\r
692                   reference "[MEF10.3] Section 10.6, Table 28. " +\r
693                         "[MEF7.3] Section 12.1.2.";\r
694                 }\r
695               }\r
696             }\r
697             container egress-bwp-flows-per-eec {\r
698               presence "Using Egress Bandwidth Profiles Per " +\r
699                     "Egress Equivalence Class";\r
700               description\r
701                 "EVC Per UNI: The Egress Equivalence Class " +\r
702                 "Identifiers corresponding to this EVC's Egress " +\r
703                 "Bandwidth Profile Flows.";\r
704               leaf coupling-enabled {\r
705                 type boolean;\r
706                 default "false";\r
707                 description\r
708                   "EVC Per UNI: The Envelope Coupling Flag (CF) " +\r
709                   "attribute.";\r
710                 reference "[MEF10.3] Section 12.1.";\r
711               }\r
712               list bwp-flow-per-eec {\r
713                 key "eec-name";\r
714                 description\r
715                   "EVC Per UNI: The list of Egress Equivalence " +\r
716                   "Class Identifiers corresponding to this " +\r
717                   "EVC's Egress Bandwidth Profile Flow.";\r
718                 leaf eec-name {\r
719                   type leafref {\r
720                     path "/mef-global:mef-global/mef-global:" +\r
721                             "profiles/mef-global:eec-names/" +\r
722                             "mef-global:eec-name/mef-global:name";\r
723                   }\r
724                   description\r
725                     "EVC Per UNI: Egress Equivalence Class " +\r
726                     "Identifier for this Bandwidth Profile Flow.";\r
727                   reference "[MEF7.3] Section 12.1.2.";\r
728                 }\r
729                 leaf bw-profile {\r
730                   type leafref {\r
731                     path "/mef-interfaces:mef-interfaces/" +\r
732                             "mef-interfaces:unis/" +\r
733                             "mef-interfaces:uni" +\r
734                             "[mef-interfaces:uni-id = " +\r
735                             "current()/../../../uni-id]" +\r
736                             "/mef-interfaces:egress-envelopes/" +\r
737                             "mef-interfaces:envelope/" +\r
738                             "mef-interfaces:env-id";\r
739                   }\r
740                   mandatory true;\r
741                   description\r
742                     "EVC Per UNI: Egress Bandwidth Profile " +\r
743                     "Envelope Per Equivance Class. If this " +\r
744                     "parameter is not configured (ie. 'No') " +\r
745                     "this setting is configured else at the " +\r
746                     "UNI Level.";\r
747                   reference "[MEF10.3] Section 10.6, Table 28. " +\r
748                         "[MEF7.3] Section 12.1.2.";\r
749                 }\r
750               }\r
751             }\r
752             container status {\r
753               description\r
754                 "EVC Per UNI: This status group is related to " +\r
755                 "the MEF 7.3 Service Endpoint";\r
756               leaf oper-state-enabled {\r
757                 type boolean;\r
758                 default "false";\r
759                 config false;\r
760                 description\r
761                   "EVC Per UNI: Operational Status of the " +\r
762                   "Virtual Connection as Enabled/Disabled.";\r
763                 reference "[MEF15]. [MEF7.3] Section 11.2.1.";\r
764               }\r
765               leaf available-status {\r
766                 type mef-types:svc-endpoint-availability-type;\r
767                 default "not-installed";\r
768                 config false;\r
769                 description\r
770                   "EVC Per UNI: Availability Status of the " +\r
771                   "Virtual Connection.";\r
772                 reference "[MEF15]. [MEF7.3] Section 11.2.1.";\r
773               }\r
774             }\r
775             leaf uni-id {\r
776               type leafref {\r
777                 path "/mef-interfaces:mef-interfaces/" +\r
778                         "mef-interfaces:unis/mef-interfaces:uni/" +\r
779                         "mef-interfaces:uni-id";\r
780               }\r
781               description\r
782                 "EVC Per UNI: The UNI ID paired with the EVC ID " +\r
783                 "in the containing list.";\r
784               reference "[MEF10.3] Section 8.3, Section 10.1.  " +\r
785                     "[MEF7.3] Section 12.1.2.";\r
786             }\r
787             leaf role {\r
788               type mef-types:evc-uni-role-type;\r
789               mandatory true;\r
790               description\r
791                 "EVC Per UNI: The UNI Role MUST have the value " +\r
792                 "of either 'root' or 'leaf'.";\r
793               reference "[MEF10.3] [R4], [R5], [R10], [R11], " +\r
794                     "[R12]. [MEF7.3] Section 12.2.2.";\r
795             }\r
796             leaf admin-state-enabled {\r
797               type boolean;\r
798               default "true";\r
799               description\r
800                 "EVC Per UNI: Locked/Unlocked is inconsistent " +\r
801                 "with Oper Status and will be confusing.";\r
802               reference "[MEF15]. [MEF7.3] Section 11.2.1.";\r
803             }\r
804             leaf color-id {\r
805               type mef-types:cos-color-identifier-type;\r
806               description\r
807                 "EVC Per UNI: The Color Identifier for " +\r
808                 "Service Frames.";\r
809               reference "[MEF10.3] Section 10.3. " +\r
810                     "[MEF7.3] Section 12.1.2.";\r
811             }\r
812             leaf data-svc-frm-cos {\r
813               type leafref {\r
814                 path "/mef-global:mef-global/mef-global:profiles/" +\r
815                         "mef-global:cos/mef-global:cos-profile/" +\r
816                         "mef-global:id";\r
817               }\r
818               must "not(/mef-global:mef-global/mef-global:" +\r
819                     "profiles/mef-global:cos/" +\r
820                     "mef-global:cos-profile" +\r
821                     "[mef-global:id = current()]" +\r
822                     "/mef-global:cos-pcp) or " +\r
823                     "((/mef-global:mef-global/mef-global:" +\r
824                     "profiles/mef-global:cos/" +\r
825                     "mef-global:cos-profile" +\r
826                     "[mef-global:id = current()]" +\r
827                     "/mef-global:cos-pcp) and " +\r
828                     "((../color-id = 'pcp') or " +\r
829                     "(../color-id = 'dei')) )" {\r
830                 error-message "When the Class of Service " +\r
831                         "Identifier is based on PCP for a " +\r
832                         "given EVC at a given UNI, the Color " +\r
833                         "Identifier must be based on either " +\r
834                         "DEI or PCP.";\r
835                 description\r
836                   "When the Class of Service Identifier is " +\r
837                   "based on PCP for a given EVC at a given UNI, " +\r
838                   "the Color Identifier must be based on either " +\r
839                   "DEI or PCP.";\r
840               }\r
841               must "not(/mef-global:mef-global/mef-global:" +\r
842                     "profiles/mef-global:cos/mef-global:" +\r
843                     "cos-profile" +\r
844                     "[mef-global:id = current()]/mef-global:" +\r
845                     "cos-dscp) or " +\r
846                     "((/mef-global:mef-global/mef-global:" +\r
847                     "profiles/mef-global:cos/mef-global:" +\r
848                     "cos-profile" +\r
849                     "[mef-global:id = current()]/mef-global:" +\r
850                     "cos-dscp) and " +\r
851                     "(../color-id = 'dscp'))" {\r
852                 error-message "When the Class of Service " +\r
853                         "Identifier is based on DSCP for a " +\r
854                         "given EVC at a given UNI, the Color " +\r
855                         "Identifier must be based DSCP.";\r
856                 description\r
857                   "When the Class of Service Identifier is based " +\r
858                   "on DSCP for a given EVC at a given UNI, the " +\r
859                   "Color Identifier must be based DSCP.";\r
860               }\r
861               description\r
862                 "EVC Per UNI: Ingress Data Service Frame " +\r
863                 "CoS Profile.";\r
864               reference "[MEF10.3] Section 8.8, Section 10.2. " +\r
865                     "[MEF7.3] Section 12.1.2.";\r
866             }\r
867             leaf l2cp-svc-frm-cos {\r
868               type leafref {\r
869                 path "/mef-global:mef-global/mef-global:" +\r
870                         "profiles/mef-global:l2cp-cos/mef-global:" +\r
871                         "l2cp-profile/mef-global:id";\r
872               }\r
873               description\r
874                 "EVC Per UNI: Ingress Layer 2 Control Protocol " +\r
875                 "Processing.";\r
876               reference "[MEF10.3] Section 8.8, Section 10.2. " +\r
877                     "[MEF7.3] Section 12.1.2.";\r
878             }\r
879             leaf soam-svc-frm-cos {\r
880               type leafref {\r
881                 path "/mef-global:mef-global/mef-global:profiles/" +\r
882                         "mef-global:cos/mef-global:cos-profile/" +\r
883                         "mef-global:id";\r
884               }\r
885               must "(not(.) and not(../data-svc-frm-cos)) or " +\r
886                     "(. = ../data-svc-frm-cos)" {\r
887                 error-message "For a given EVC at a given UNI, " +\r
888                         "the basis for the Class of Service " +\r
889                         "Identifier for ingress SOAM Service " +\r
890                         "Frames must be the same as that for " +\r
891                         "ingress Data Service Frames.";\r
892                 description\r
893                   "For a given EVC at a given UNI, the basis " +\r
894                   "for the Class of Service Identifier for " +\r
895                   "ingress SOAM Service Frames must be the " +\r
896                   "same as that for ingress Data Service Frames.";\r
897               }\r
898               description\r
899                 "EVC Per UNI: Ingress SOAM Service Frames.";\r
900               reference "[MEF7.3] Section 12.1.2.";\r
901             }\r
902             leaf data-svc-frm-eec {\r
903               type leafref {\r
904                 path "/mef-global:mef-global/mef-global:profiles/" +\r
905                         "mef-global:eec/mef-global:eec-profile/" +\r
906                         "mef-global:id";\r
907               }\r
908               must "not(/mef-global:mef-global/mef-global:" +\r
909                     "profiles/mef-global:eec/mef-global:" +\r
910                     "eec-profile" +\r
911                     "[mef-global:id = current()]" +\r
912                     "/mef-global:eec-pcp) or " +\r
913                     "((/mef-global:mef-global/mef-global:" +\r
914                     "profiles/mef-global:eec/mef-global:" +\r
915                     "eec-profile" +\r
916                     "[mef-global:id = current()]" +\r
917                     "/mef-global:eec-pcp) and " +\r
918                     "((../color-id = 'pcp') or " +\r
919                     "(../color-id = 'dei')) )" {\r
920                 error-message "When the Egress Equivalence " +\r
921                         "Class Identifier is based on PCP " +\r
922                         "for a given EVC at a given UNI, " +\r
923                         "the Color Identifier must be based " +\r
924                         "on either DEI or PCP.";\r
925                 description\r
926                   "When the Egress Equivalence Class Identifier " +\r
927                   "is based on PCP for a given EVC at a " +\r
928                   "given UNI, the Color Identifier must " +\r
929                   "be based on either DEI or PCP.";\r
930               }\r
931               must "not(/mef-global:mef-global/mef-global:" +\r
932                     "profiles/mef-global:eec/mef-global:" +\r
933                     "eec-profile" +\r
934                     "[mef-global:id = current()]" +\r
935                     "/mef-global:eec-dscp) or " +\r
936                     "((/mef-global:mef-global/mef-global:" +\r
937                     "profiles/mef-global:eec/mef-global:" +\r
938                     "eec-profile" +\r
939                     "[mef-global:id = current()]" +\r
940                     "/mef-global:eec-dscp) and " +\r
941                     "(../color-id = 'dscp'))" {\r
942                 error-message "When the Egress Equivalence " +\r
943                         "Class Identifier is based on DSCP for " +\r
944                         "a given EVC at a given UNI, the Color " +\r
945                         "Identifier must be based DSCP.";\r
946                 description\r
947                   "When the Egress Equivalence Class Identifier " +\r
948                   "is based on DSCP for a given EVC at a given " +\r
949                   "UNI, the Color Identifier must be based DSCP.";\r
950               }\r
951               description\r
952                 "EVC Per UNI: Egress Data Service Frame Processing.";\r
953               reference "[MEF10.3] Section 10.4. " +\r
954                     "[MEF7.3] Section 12.1.2.";\r
955             }\r
956             leaf l2cp-svc-frm-eec {\r
957               type leafref {\r
958                 path "/mef-global:mef-global/mef-global:profiles/" +\r
959                         "mef-global:l2cp-eec/mef-global:" +\r
960                         "l2cp-profile/mef-global:id";\r
961               }\r
962               description\r
963                 "EVC Per UNI: Egress Layer 2 Control Protocol " +\r
964                 "Processing.";\r
965               reference "[MEF10.3] Section 10.4. " +\r
966                     "[MEF7.3] Section 12.1.2.";\r
967             }\r
968             leaf soam-svc-frm-eec {\r
969               type leafref {\r
970                 path "/mef-global:mef-global/mef-global:" +\r
971                         "profiles/mef-global:eec/mef-global:" +\r
972                         "eec-profile/mef-global:id";\r
973               }\r
974               must "(not(.) and not(../data-svc-frm-eec)) or " +\r
975                     "(. = ../data-svc-frm-eec)" {\r
976                 error-message "For a given EVC at a given UNI, " +\r
977                         "the basis for the Egress Equivalence " +\r
978                         "Class Identifier for egress SOAM " +\r
979                         "Service Frames must be the same as " +\r
980                         "that for egress Data Service Frames.";\r
981                 description\r
982                   "For a given EVC at a given UNI, the basis " +\r
983                   "for the Egress Equivalence Class Identifier " +\r
984                   "for egress SOAM Service Frames must be " +\r
985                   "the same as that for egress Data " +\r
986                   "Service Frames.";\r
987               }\r
988               description\r
989                 "EVC Per UNI: Egress SOAM Service Frames.";\r
990               reference "[MEF10.3] Section 10.4. " +\r
991                     "[MEF7.3] Section 12.1.2.";\r
992             }\r
993             leaf ingress-bw-profile-per-evc {\r
994               type leafref {\r
995                 path "/mef-interfaces:mef-interfaces/" +\r
996                         "mef-interfaces:unis/" +\r
997                         "mef-interfaces:uni" +\r
998                         "[mef-interfaces:uni-id = " +\r
999                         "current()/../uni-id]" +\r
1000                         "/mef-interfaces:ingress-envelopes/" +\r
1001                         "mef-interfaces:envelope/" +\r
1002                         "mef-interfaces:env-id";\r
1003               }\r
1004               description\r
1005                 "EVC Per UNI: Ingress Bandwidth Profile " +\r
1006                 "Envelope Per EVC. If this parameter is " +\r
1007                 "not configured (ie. 'No') this setting " +\r
1008                 "is configured else at the UNI Level.";\r
1009               reference "[MEF10.3] Section 10.5. " +\r
1010                     "[MEF7.3] Section 12.1.2.";\r
1011             }\r
1012             leaf egress-bw-profile-per-evc {\r
1013               type leafref {\r
1014                 path "/mef-interfaces:mef-interfaces/" +\r
1015                         "mef-interfaces:unis/" +\r
1016                         "mef-interfaces:uni" +\r
1017                         "[mef-interfaces:uni-id = " +\r
1018                         "current()/../uni-id]" +\r
1019                         "/mef-interfaces:egress-envelopes/" +\r
1020                         "mef-interfaces:envelope/mef-interfaces:" +\r
1021                         "env-id";\r
1022               }\r
1023               description\r
1024                 "EVC Per UNI: Egress Bandwidth Profile Envelope " +\r
1025                 "Per EVC. If this parameter is not configured " +\r
1026                 "(ie. 'No') this setting is configured else at " +\r
1027                 "the UNI Level.";\r
1028               reference "[MEF10.3] Section 10.7. " +\r
1029                     "[MEF7.3] Section 12.1.2.";\r
1030             }\r
1031             leaf src-mac-addr-limit-enabled {\r
1032               type boolean;\r
1033               default "false";\r
1034               description\r
1035                 "EVC Per UNI: Source MAC Address Limit " +\r
1036                 "Enable / Disable. If Enabled, the values " +\r
1037                 "for the Source MAC Address Limit and Source " +\r
1038                 "MAC Address Interval must be set.";\r
1039               reference "[MEF10.3] Section 10.9. " +\r
1040                     "[MEF7.3] Section 12.1.2.";\r
1041             }\r
1042             leaf src-mac-addr-limit {\r
1043               type uint32 {\r
1044                 range "1..max";\r
1045               }\r
1046               description\r
1047                 "EVC Per UNI: Source MAC Address Limit. " +\r
1048                 "This value is used when the Source MAC Address " +\r
1049                 "Limit Enabled is true.";\r
1050               reference "[MEF10.3] Section 10.9.";\r
1051             }\r
1052             leaf src-mac-addr-limit-interval {\r
1053               type yang:timeticks;\r
1054               default "0";\r
1055               description\r
1056                 "EVC Per UNI: Source MAC Address Limit " +\r
1057                 "Interval. This value is used when the " +\r
1058                 "Source MAC Address Limit Enabled is true.";\r
1059               reference "[MEF10.3] Section 10.9.";\r
1060             }\r
1061             leaf test-meg-enabled {\r
1062               type boolean;\r
1063               default "false";\r
1064               description\r
1065                 "EVC Per UNI: Test MEG Enabled / Disabled.";\r
1066               reference "[MEF10.3] Section 10.10. " +\r
1067                     "[MEF7.3] Section 12.1.2.";\r
1068             }\r
1069             leaf test-meg {\r
1070               type mef-types:identifier45;\r
1071               description\r
1072                 "EVC Per UNI: Test MEG Identifier.";\r
1073               reference "[MEF7.3] Section 12.1.2.";\r
1074             }\r
1075             leaf subscriber-meg-mip-enabled {\r
1076               type boolean;\r
1077               default "false";\r
1078               description\r
1079                 "EVC Per UNI: Subscriber MEG MIP " +\r
1080                 "Enabled / Disabled.";\r
1081               reference "[MEF10.3] Section 10.11. " +\r
1082                     "[MEF7.3] Section 12.1.2.";\r
1083             }\r
1084             leaf subscriber-meg-mip {\r
1085               type mef-types:identifier45;\r
1086               description\r
1087                 "EVC Per UNI: Subscriber MEG MIP Identifier.";\r
1088               reference "[MEF7.3] Section 12.1.2.";\r
1089             }\r
1090           }\r
1091         }\r
1092         container status {\r
1093           description\r
1094             "This status group is related to the MEF 7.3 Virtual " +\r
1095             "Connection";\r
1096           leaf oper-state-enabled {\r
1097             type boolean;\r
1098             default "false";\r
1099             config false;\r
1100             description\r
1101               "EVC Operational Status of the Virtual Connection " +\r
1102               "as Enabled/Disabled.";\r
1103             reference "[MEF7.3] Section 11.1.1.";\r
1104           }\r
1105           leaf available-status {\r
1106             type mef-types:virt-cx-availability-type;\r
1107             default "not-installed";\r
1108             config false;\r
1109             description\r
1110               "EVC Availability Status of the Virtual Connection.";\r
1111             reference "[MEF7.3] Section 11.1.1.";\r
1112           }\r
1113         }\r
1114         container sls-inclusions-by-cos {\r
1115           description\r
1116             "SLS Inclusions by CoS: For this EVC, the following " +\r
1117             "CoS Names/Labels are applicable.";\r
1118           list sls-inclusion-by-cos {\r
1119             key "cos-name";\r
1120             description\r
1121               "CoS Name.";\r
1122             leaf cos-name {\r
1123               type leafref {\r
1124                 path "/mef-global:mef-global/mef-global:profiles/" +\r
1125                         "mef-global:cos-names/mef-global:" +\r
1126                         "cos-name/mef-global:name";\r
1127               }\r
1128               description\r
1129                 "EVC: This attribute identifies the name of " +\r
1130                 "a class of service (CoS) instance to be used " +\r
1131                 "for EVC Performance.";\r
1132             }\r
1133           }\r
1134         }\r
1135         container sls-uni-inclusions {\r
1136           presence "EVC: Defines the EVC Flow Points (UNI) Pairs " +\r
1137                 "that must conform to the EVC's SLS Performance " +\r
1138                 "Metrics.";\r
1139           description\r
1140             "SLS UNI Inclusions List. The following pairs of UNI " +\r
1141             "Interconnections are to required to meet the " +\r
1142             "SLS Performance Objectives. Configing both SLS " +\r
1143             "UNI Inclusions and SLS UNI Exclusions is not " +\r
1144             "permitted.";\r
1145           list sls-uni-inclusion-set {\r
1146             must "uni-id1 != uni-id2" {\r
1147               error-message "The two UNI IDs for a given " +\r
1148                     "inclusion cannot be the same.";\r
1149               description\r
1150                 "The two UNI IDs for a given inclusion " +\r
1151                 "cannot be the same.";\r
1152             }\r
1153             must "(../../evc-type != 'rooted-multipoint') or " +\r
1154                     "((../../evc-type = 'rooted-multipoint') " +\r
1155                     "and " +\r
1156                     "not((../../unis/uni[uni-id = " +\r
1157                     "current()/uni-id1]/role = 'leaf') and " +\r
1158                     "(../../unis/uni[uni-id = current()/uni-id2]" +\r
1159                     "/role = 'leaf')))" {\r
1160               error-message "If EVC Type is Rooted-Multipoint, " +\r
1161                     "sls-uni-inclusion UNI Pairs cannot both " +\r
1162                     "be role 'leaf'.";\r
1163               description\r
1164                 "If EVC Type is Rooted-Multipoint, " +\r
1165                 "sls-uni-inclusion UNI Pairs cannot " +\r
1166                 "both be role 'leaf'.";\r
1167             }\r
1168             key "pm-type pm-id uni-id1 uni-id2";\r
1169             description\r
1170               "EVC: Defines the EVC Flow Points (UNI) Pairs that " +\r
1171               "must conform to the EVC's SLS Performance " +\r
1172               "Metrics. Use of this list indicates that a " +\r
1173               "complete set of UNI Pairs has been specified " +\r
1174               "for the Performance Metrics defined in the " +\r
1175               "selected SLS.";\r
1176             leaf pm-type {\r
1177               type leafref {\r
1178                 path "/mef-global:mef-global/mef-global:slss/" +\r
1179                         "mef-global:sls" +\r
1180                         "[mef-global:sls-id = current()/../../../" +\r
1181                         "evc-performance-sls]" +\r
1182                         "/mef-global:perf-objs/mef-global:" +\r
1183                         "perf-obj/mef-global:pm-type";\r
1184               }\r
1185               description\r
1186                 "EVC: Performance Metric.";\r
1187               reference "[MEF10.3] Section 8.8.";\r
1188             }\r
1189             leaf pm-id {\r
1190               type leafref {\r
1191                 path "/mef-global:mef-global/mef-global:slss/" +\r
1192                         "mef-global:sls" +\r
1193                         "[mef-global:sls-id = current()/../../../" +\r
1194                         "evc-performance-sls]" +\r
1195                         "/mef-global:perf-objs/mef-global:perf-obj" +\r
1196                         "[mef-global:pm-type = current()/../" +\r
1197                         "pm-type]" +\r
1198                         "/mef-global:pm-id";\r
1199               }\r
1200               description\r
1201                 "EVC: This is a friendly name for specific " +\r
1202                 "performance profile.";\r
1203             }\r
1204             leaf uni-id1 {\r
1205               type leafref {\r
1206                 path "../../../unis/uni/uni-id";\r
1207               }\r
1208               description\r
1209                 "EVC: The UNI ID paired with the EVC ID in the " +\r
1210                 "containing list.";\r
1211               reference "[MEF10.3] Section 8.3, Section 10.1.  " +\r
1212                     "[MEF7.3] Section 12.1.2.";\r
1213             }\r
1214             leaf uni-id2 {\r
1215               type leafref {\r
1216                 path "../../../unis/uni/uni-id";\r
1217               }\r
1218               description\r
1219                 "EVC: The UNI ID paired with the EVC ID in the " +\r
1220                 "containing list.";\r
1221               reference "[MEF10.3] Section 8.3, Section 10.1.  " +\r
1222                     "[MEF7.3] Section 12.1.2.";\r
1223             }\r
1224           }\r
1225         }\r
1226         container sls-uni-exclusions {\r
1227           presence "Not all EVC Flow Points (UNI) must conform " +\r
1228                 "to the EVC SLS Performance Metrics.";\r
1229           description\r
1230             "EVC: Not all EVC Flow Points (UNI) must conform to " +\r
1231             "the EVC SLS Performance Metrics. Use of this " +\r
1232             "list indicates that all UNI Pairs EXCEPT for " +\r
1233             "the ones indicated (per Performance Metric) must " +\r
1234             "conform to the SLS.";\r
1235           list sls-uni-exclusion-set {\r
1236             must "uni-id1 != uni-id2" {\r
1237               error-message "The two UNI IDs for a given " +\r
1238                     "exclusion cannot be the same.";\r
1239               description\r
1240                 "The two UNI IDs for a given exclusion cannot " +\r
1241                 "be the same as these pairs are invalid as " +\r
1242                 "defined in MEF 10.3.";\r
1243             }\r
1244             key "pm-type pm-id uni-id1 uni-id2";\r
1245             description\r
1246               "SLS UNI Exclusions List. The following pairs " +\r
1247               "of UNI Interconnections are not required " +\r
1248               "meet the SLS Performance Objectives. " +\r
1249               "Configing both SLS UNI Inclusions and SLS " +\r
1250               "UNI Exclusions is not permitted.";\r
1251             leaf pm-type {\r
1252               type leafref {\r
1253                 path "/mef-global:mef-global/mef-global:" +\r
1254                         "slss/mef-global:sls" +\r
1255                         "[mef-global:sls-id = current()/../../../" +\r
1256                         "evc-performance-sls]" +\r
1257                         "/mef-global:perf-objs/mef-global:" +\r
1258                         "perf-obj/mef-global:pm-type";\r
1259               }\r
1260               description\r
1261                 "EVC: Performance Metric.";\r
1262               reference "[MEF10.3] Section 8.8.";\r
1263             }\r
1264             leaf pm-id {\r
1265               type leafref {\r
1266                 path "/mef-global:mef-global/mef-global:slss/" +\r
1267                         "mef-global:sls" +\r
1268                         "[mef-global:sls-id = current()/../../../" +\r
1269                         "evc-performance-sls]" +\r
1270                         "/mef-global:perf-objs/mef-global:perf-obj" +\r
1271                         "[mef-global:pm-type = current()/../" +\r
1272                         "pm-type]" +\r
1273                         "/mef-global:pm-id";\r
1274               }\r
1275               description\r
1276                 "EVC: This is a friendly name for specific " +\r
1277                 "performance profile.";\r
1278             }\r
1279             leaf uni-id1 {\r
1280               type leafref {\r
1281                 path "../../../unis/uni/uni-id";\r
1282               }\r
1283               description\r
1284                 "EVC: The UNI ID paired with the EVC ID in the " +\r
1285                 "containing list.";\r
1286               reference "[MEF10.3] Section 8.3, Section 10.1.  " +\r
1287                     "[MEF7.3] Section 12.1.2.";\r
1288             }\r
1289             leaf uni-id2 {\r
1290               type leafref {\r
1291                 path "../../../unis/uni/uni-id";\r
1292               }\r
1293               description\r
1294                 "EVC: The UNI ID paired with the EVC ID in the " +\r
1295                 "containing list.";\r
1296               reference "[MEF10.3] Section 8.3, Section 10.1.  " +\r
1297                     "[MEF7.3] Section 12.1.2.";\r
1298             }\r
1299           }\r
1300         }\r
1301         leaf evc-id {\r
1302           type mef-types:evc-id-type;\r
1303           mandatory true;\r
1304           description\r
1305             "The EVC ID must be unique across all EVCs in the CEN." +\r
1306             " The EVC ID must be non-NULL.";\r
1307           reference "[MEF10.3] Section 8.2 [R7]. " +\r
1308                 "[MEF7.3] Section 11.1.1, Section 12.2.2.";\r
1309         }\r
1310         leaf evc-status {\r
1311           type mef-types:evc-status-type;\r
1312           config false;\r
1313           description\r
1314             "EVC Operational Status.";\r
1315           reference "[MEF16] Section 5.3.";\r
1316         }\r
1317         leaf evc-type {\r
1318           type mef-types:evc-type;\r
1319           must "(. != 'point-to-point') or " +\r
1320                 "((. = 'point-to-point') and " +\r
1321                 "(count(../unis/uni[role = 'leaf']) = 0))" {\r
1322             error-message "If EVC Type is Point-to-Point, all " +\r
1323                     "UNI Roles must be root.";\r
1324             description\r
1325               "If EVC Type is Point-to-Point, all UNI Roles must " +\r
1326               "be root.";\r
1327           }\r
1328           must "(. != 'multipoint-to-multipoint') or " +\r
1329                 "((. = 'multipoint-to-multipoint') and " +\r
1330                 "(count(../unis/uni[role = 'leaf']) = 0))" {\r
1331             error-message "If EVC Type is " +\r
1332                     "Multipoint-to-Multipoint, all UNI Roles " +\r
1333                     "must be root.";\r
1334             description\r
1335               "If EVC Type is Multipoint-to-Multipoint, all UNI " +\r
1336               "Roles must be root.";\r
1337           }\r
1338           must "(. != 'rooted-multipoint') or " +\r
1339                 "((. = 'rooted-multipoint') and " +\r
1340                 "(count(../unis/uni[role = 'root']) > 0) )" {\r
1341             error-message "If EVC Type is Rooted-Multipoint, one " +\r
1342                     "or more UNI Roles must be root.";\r
1343             description\r
1344               "If EVC Type is Rooted-Multipoint, one or more " +\r
1345               "UNI Roles must be root.";\r
1346           }\r
1347           must "(. != 'point-to-point') or " +\r
1348                 "((. = 'point-to-point') and " +\r
1349                 "(count(../unis/uni) = 2))" {\r
1350             error-message "If EVC Type is Point-to-Point, there " +\r
1351                     "must be exactly 2 UNI configured for the EVC.";\r
1352             description\r
1353               "If EVC Type is Point-to-Point, there must be " +\r
1354               "exactly 2 UNI configured for the EVC.";\r
1355           }\r
1356           must "(. != 'multipoint-to-multipoint') or " +\r
1357                 "((. = 'multipoint-to-multipoint') and " +\r
1358                 "(count(../unis/uni) > 1) and " +\r
1359                 "(count(../unis/uni) <= ../max-uni-count))" {\r
1360             error-message "If EVC Type is " +\r
1361                     "Multipoint-to-Multipoint, " +\r
1362                     "there must be 2 or more UNI configured " +\r
1363                     "for the EVC.";\r
1364             description\r
1365               "If EVC Type is Multipoint-to-Multipoint, " +\r
1366               "there must be 2 or more UNI configured for " +\r
1367               "the EVC.";\r
1368           }\r
1369           must "(. != 'rooted-multipoint') or " +\r
1370                 "((. = 'rooted-multipoint') and " +\r
1371                 "(count(../unis/uni) > 1) and " +\r
1372                 "(count(../unis/uni) <= ../max-uni-count))" {\r
1373             error-message "If EVC Type is Rooted-Multipoint, " +\r
1374                     "there must be 2 or more UNI configured for the EVC.";\r
1375             description\r
1376               "If EVC Type is Rooted-Multipoint, there must " +\r
1377               "be 2 or more UNI configured for the EVC.";\r
1378           }\r
1379           must "(. != 'point-to-point') or " +\r
1380                 "((. = 'point-to-point') and " +\r
1381                 "(../max-uni-count = 2))" {\r
1382             error-message "If EVC Type is Point-to-Point, " +\r
1383                     "the value of max-uni-count must be 2.";\r
1384             description\r
1385               "If EVC Type is Point-to-Point, the value of " +\r
1386               "max-uni-count must be 2.";\r
1387           }\r
1388           must "(. != 'multipoint-to-multipoint') or " +\r
1389                 "((. = 'multipoint-to-multipoint') and " +\r
1390                 "(../max-uni-count > 2))" {\r
1391             error-message "If EVC Type is " +\r
1392                     "Multipoint-to-Multipoint, the value of " +\r
1393                     "max-uni-count must be at least 3.";\r
1394             description\r
1395               "If EVC Type is Multipoint-to-Multipoint, the " +\r
1396               "value of max-uni-count must be at least 3.";\r
1397           }\r
1398           must "(. != 'rooted-multipoint') or " +\r
1399                 "((. = 'rooted-multipoint') and " +\r
1400                 "(../max-uni-count > 2))" {\r
1401             error-message "If EVC Type is Rooted-Multipoint, " +\r
1402                     "the value of max-uni-count must be at " +\r
1403                     "least 3.";\r
1404             description\r
1405               "If EVC Type is Rooted-Multipoint, the value " +\r
1406               "of max-uni-count must be at least 3.";\r
1407           }\r
1408           mandatory true;\r
1409           description\r
1410             "This EVC attribute describes the EVC as either " +\r
1411             "Multipoint-To-Multipoint, Point-To-Point, or " +\r
1412             "Rooted-Multipoint.";\r
1413           reference "[MEF10.3] Section 8.1, [R4], [R5], " +\r
1414                 "[R10], [R11], [R12], [R13] and [R14]. " +\r
1415                 "[MEF7.3] Section 12.2.2.";\r
1416         }\r
1417         leaf admin-state-enabled {\r
1418           type boolean;\r
1419           default "true";\r
1420           description\r
1421             "EVC: Locked/Unlocked is inconsistent with " +\r
1422             "Oper Status and will be confusing.";\r
1423           reference "[MEF15]. [MEF7.3] Section 11.1.1.";\r
1424         }\r
1425         leaf elastic-enabled {\r
1426           type boolean;\r
1427           default "true";\r
1428           description\r
1429             "EVC: Elastic Enabled/Disabled.";\r
1430           reference "[MEF7.3] Section 11.1.1.";\r
1431         }\r
1432         leaf elastic-service {\r
1433           type mef-types:identifier45;\r
1434           description\r
1435             "EVC: Related to CE4Cloud Information Model.";\r
1436           reference "[MEF7.3] Section 11.1.1.";\r
1437         }\r
1438         leaf max-uni-count {\r
1439           type uint32 {\r
1440             range "2..max";\r
1441           }\r
1442           must "(. > 2) or ((. = 2) and " +\r
1443                 "(../evc-type = 'point-to-point'))" {\r
1444             error-message "If EVC Type is Point-to-Point, the " +\r
1445                     "max-uni-count value must be 2.";\r
1446             description\r
1447               "If EVC Type is Point-to-Point, the max-uni-count " +\r
1448               "value must be 2.";\r
1449           }\r
1450           must "(. = 2) or ((. > 2) and " +\r
1451                 "((../evc-type = 'multipoint-to-multipoint') or " +\r
1452                 "(../evc-type = 'rooted-multipoint')))" {\r
1453             error-message "If EVC Type is " +\r
1454                     "Multipoint-to-Multipoint or " +\r
1455                     "Rooted-Multipoint, the max-uni-count value " +\r
1456                     "must be at least 3.";\r
1457             description\r
1458               "If EVC Type is Multipoint-to-Multipoint or " +\r
1459               "Rooted-Multipoint, the max-uni-count value " +\r
1460               "must be at least 3.";\r
1461           }\r
1462           default "2";\r
1463           description\r
1464             "EVC:The Maximum Number of UNIs this EVC can be " +\r
1465             "configured for (Default 2).If EVC Type is " +\r
1466             "Multipoint-to-Multipoint or Rooted-Multipoint, " +\r
1467             "the max-uni-count value must be at least 3. " +\r
1468             "This value must be 2 for point-to-point mode.";\r
1469           reference "[MEF10.3] [R14]. [MEF7.3] Section 12.2.2.";\r
1470         }\r
1471         leaf preserved-vlan {\r
1472             type uint32;\r
1473         }\r
1474         leaf preserve-ce-vlan-id {\r
1475           type boolean;\r
1476           default "false";\r
1477           description\r
1478             "EVC:An EVC with more than one CE-VLAN ID mapping " +\r
1479             "to it must have the same list of CE-VLAN IDs " +\r
1480             "mapping to the EVC at each UNI in the EVC.";\r
1481           reference "[MEF10.3] Section 8.6.1, [R24] [R25], " +\r
1482                 "Section 9.10.2, Section 9.12, [R81], Figure 20. " +\r
1483                 "[MEF7.3] Section 12.2.2.";\r
1484         }\r
1485         leaf cos-preserve-ce-vlan-id {\r
1486           type boolean;\r
1487           default "false";\r
1488           description\r
1489             "EVC: Preserve CE-VLAN ID for CoS.";\r
1490           reference "[MEF10.3] Section 8.6.2, [R26]. " +\r
1491                 "[MEF7.3] Section 12.2.2.";\r
1492         }\r
1493         leaf evc-performance-sls {\r
1494           type leafref {\r
1495             path "/mef-global:mef-global/mef-global:slss/" +\r
1496                     "mef-global:sls/mef-global:sls-id";\r
1497           }\r
1498           description\r
1499             "EVC: EVC-specific performance objectives and " +\r
1500             "parameters. Note that an SLS can also specify " +\r
1501             "performance objectives spanning more than one EVC. " +\r
1502             "By default, all the UNI associated with the EVC " +\r
1503             "have this SLS applied for them.";\r
1504           reference "[MEF10.3] Section 8.8, Section 10. " +\r
1505                 "[MEF7.3] Section 12.2.2.";\r
1506         }\r
1507         leaf unicast-svc-frm-delivery {\r
1508           type mef-types:data-svc-frame-delivery-type;\r
1509           default "unconditional";\r
1510           description\r
1511             "EVC: Unicast Data Service Frame Delivery Mode " +\r
1512             "(unconditional[default], conditional, or discard).";\r
1513           reference "[MEF10.3] Section 8.5.2,[R16], [R17], " +\r
1514                 "Section 8.8, Section 11. [MEF7.3] Section 12.2.2.";\r
1515         }\r
1516         leaf multicast-svc-frm-delivery {\r
1517           type mef-types:data-svc-frame-delivery-type;\r
1518           default "unconditional";\r
1519           description\r
1520             "EVC: Multicast Data Service Frame Delivery Mode " +\r
1521             "(unconditional[default], conditional, or discard).";\r
1522           reference "[MEF10.3] Section 8.5.2, [R16], [R18], " +\r
1523                 "Section 8.8, Section 11. [MEF7.3] Section 12.2.2.";\r
1524         }\r
1525         leaf broadcast-svc-frm-delivery {\r
1526           type mef-types:data-svc-frame-delivery-type;\r
1527           default "unconditional";\r
1528           description\r
1529             "EVC: Broadcast Data Service Frame Delivery Mode " +\r
1530             "(unconditional[default], conditional, or discard).";\r
1531           reference "[MEF10.3] Section 8.5.2, [R16], [R19], " +\r
1532                 "Section 8.8, Section 11. [MEF7.3] Section 12.2.2.";\r
1533         }\r
1534         leaf evc-meg-id {\r
1535           type mef-types:identifier45;\r
1536           description\r
1537             "EVC: Identifies the Maintenance Entity Group (MEG) " +\r
1538             "for this EVC.";\r
1539           reference "[MEF7.3] Section 12.2.2. MEF 35.1.";\r
1540         }\r
1541         leaf max-svc-frame-size {\r
1542           type mef-types:max-svc-frame-size-type;\r
1543           default "1600";\r
1544           description\r
1545             "EVC: This attribute describes the maximum service " +\r
1546             "frame size for the EVC.";\r
1547           reference "[MEF10.3] Section 8.9, Section 9.7, [R71], " +\r
1548                 "[MEF6.2] Section 8.2.2 and MEF 22.1: [D2]. " +\r
1549                 "[MEF7.3] Section 12.2.2.";\r
1550         }\r
1551       }\r
1552       leaf svc-id {\r
1553         type mef-types:retail-svc-id-type;\r
1554         description\r
1555           "The MEF Service ID is a simple key used to " +\r
1556           "distinguish MEF Service Configuration Groups.";\r
1557         reference "[MEF10.3] Section 7.";\r
1558       }\r
1559       leaf sp-id {\r
1560         when "/mef-global:mef-global/mef-global:svc-providers" {\r
1561           description\r
1562             "Only configure when the Global Service Providers " +\r
1563             "list has been populated.";\r
1564         }\r
1565         type leafref {\r
1566           path "/mef-global:mef-global/mef-global:svc-providers/" +\r
1567                 "mef-global:svc-provider/mef-global:sp-id";\r
1568         }\r
1569         description\r
1570           "The MEF Service Provider ID must be globally unique " +\r
1571           "as all CENs and Subscribers must be supported by a " +\r
1572           "specific Service Provider(SP). A SP can support " +\r
1573           "multiple CENs.";\r
1574         reference "[MEF10.3] Section 7.";\r
1575       }\r
1576       leaf svc-type {\r
1577         type mef-types:mef-service-type;\r
1578         must "(. != 'epl') or ((. = 'epl') and " +\r
1579                 "(count(/mef-interfaces:mef-interfaces/" +\r
1580                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1581                 "[mef-interfaces:uni-id = current()/../" +\r
1582                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1583                 "uni/mef-services:uni-id]" +\r
1584                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1585                 "svc-mux-enabled = 'true']) = 0))" {\r
1586           error-message "For EPL, Service Multiplexing must be " +\r
1587                 "disabled for all UNIs in the EVC UNI List.";\r
1588           description\r
1589             "For EPL, Service Multiplexing must be disabled for " +\r
1590             "all UNIs in the EVC UNI List.";\r
1591         }\r
1592         must "(. != 'epl') or ((. = 'epl') and " +\r
1593                 "(count(/mef-interfaces:mef-interfaces/" +\r
1594                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1595                 "[mef-interfaces:uni-id = current()/../" +\r
1596                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1597                 "uni/mef-services:uni-id]" +\r
1598                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1599                 "bundling-enabled = 'true']) = 0))" {\r
1600           error-message "For EPL, Bundling must be disabled for " +\r
1601                 "all UNIs in the EVC UNI List.";\r
1602           description\r
1603             "For EPL, Bundling must be disabled for all UNIs in " +\r
1604             "the EVC UNI List.";\r
1605         }\r
1606         must "(. != 'epl') or ((. = 'epl') and " +\r
1607                 "(count(/mef-interfaces:mef-interfaces/" +\r
1608                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1609                 "[mef-interfaces:uni-id = current()/../" +\r
1610                 "mef-services:evc/mef-services:unis/" +\r
1611                 "mef-services:uni/mef-services:uni-id]" +\r
1612                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1613                 "all-to-one-bundling-enabled = 'false']) = 0))" {\r
1614           error-message "For EPL, All-to-One Bundling must be " +\r
1615                 "enabled for all UNIs in the EVC UNI List.";\r
1616           description\r
1617             "For EPL, All-to-One Bundling must be enabled for " +\r
1618             "all UNIs in the EVC UNI List.";\r
1619         }\r
1620         must "(. != 'epl') or ((. = 'epl') and " +\r
1621                 "(count(/mef-interfaces:mef-interfaces/" +\r
1622                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1623                 "[mef-interfaces:uni-id = current()/../" +\r
1624                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1625                 "uni/mef-services:uni-id]" +\r
1626                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1627                 "max-evc-count != 1]) = 0))" {\r
1628           error-message "For EPL, Max EVC Count must be 1 for " +\r
1629                 "all UNIs in the EVC UNI List.";\r
1630           description\r
1631             "For EPL, Max EVC Count must be 1 for all UNIs " +\r
1632             "in the EVC UNI List.";\r
1633         }\r
1634         must "(. != 'epl') or ((. = 'epl') and " +\r
1635                 "(count(../evc/unis/uni/egress-bwp-flows-per-eec/" +\r
1636                 "bwp-flow-per-eec) = 0))" {\r
1637           error-message "For EPL, Egress Bandwidth Profile per " +\r
1638                 "Egress Equivalence Class cannot be set for " +\r
1639                 "all UNIs in the EVC per UNI List.";\r
1640           description\r
1641             "For EPL, Egress Bandwidth Profile per Egress " +\r
1642             "Equivalence Class cannot be set for all UNIs in the " +\r
1643             "EVC per UNI List.";\r
1644         }\r
1645         must "(. != 'epl') or ((. = 'epl') and " +\r
1646                 "(count(../evc/unis/uni" +\r
1647                 "[src-mac-addr-limit-enabled = 'true']) = 0) )" {\r
1648           error-message "For EPL, Source MAC Address Limit must " +\r
1649                 "be disabled.";\r
1650           description\r
1651             "For EPL, Source MAC Address Limit must be disabled.";\r
1652         }\r
1653         must "(. != 'epl') or ((. = 'epl') and " +\r
1654                 "(../evc/evc-type = 'point-to-point'))" {\r
1655           error-message "For EPL, EVC Type must be Point-to-Point.";\r
1656           description\r
1657             "For EPL, EVC Type must be Point-to-Point.";\r
1658         }\r
1659         must "(. != 'epl') or ((. = 'epl') and " +\r
1660                 "(../evc/unicast-svc-frm-delivery = " +\r
1661                 "'unconditional'))" {\r
1662           error-message "For EPL, unicast-svc-frm-delivery " +\r
1663                 "must be unconditional.";\r
1664           description\r
1665             "For EPL, unicast-svc-frm-delivery must be " +\r
1666             "unconditional.";\r
1667         }\r
1668         must "(. != 'epl') or ((. = 'epl') and " +\r
1669                 "(../evc/multicast-svc-frm-delivery = " +\r
1670                 "'unconditional'))" {\r
1671           error-message "For EPL, multicast-svc-frm-delivery " +\r
1672                 "must be unconditional.";\r
1673           description\r
1674             "For EPL, multicast-svc-frm-delivery must be " +\r
1675             "unconditional.";\r
1676         }\r
1677         must "(. != 'epl') or ((. = 'epl') and " +\r
1678                 "(../evc/broadcast-svc-frm-delivery = " +\r
1679                 "'unconditional'))" {\r
1680           error-message "For EPL, broadcast-svc-frm-delivery " +\r
1681                 "must be unconditional.";\r
1682           description\r
1683             "For EPL, broadcast-svc-frm-delivery must be " +\r
1684             "unconditional.";\r
1685         }\r
1686         must "(. != 'epl') or ((. = 'epl') and " +\r
1687                 "(../evc/preserve-ce-vlan-id = 'true'))" {\r
1688           error-message "For EPL, CE-VLAN ID Preservation " +\r
1689                 "must be enabled.";\r
1690           description\r
1691             "For EPL, CE-VLAN ID Preservation must be enabled.";\r
1692         }\r
1693         must "(. != 'epl') or ((. = 'epl') and " +\r
1694                 "(../evc/cos-preserve-ce-vlan-id = 'true'))" {\r
1695           error-message "For EPL, CE-VLAN ID CoS Preservation " +\r
1696                 "must be enabled.";\r
1697           description\r
1698             "For EPL, CE-VLAN ID CoS Preservation must be enabled.";\r
1699         }\r
1700         must "(. != 'evpl') or ((. = 'evpl') and " +\r
1701                 "(count(/mef-interfaces:mef-interfaces/" +\r
1702                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1703                 "[mef-interfaces:uni-id = current()/../" +\r
1704                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1705                 "uni/mef-services:uni-id]" +\r
1706                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1707                 "all-to-one-bundling-enabled = 'true']) = 0))" {\r
1708           error-message "For EVPL, All-to-One Bundling must be " +\r
1709                 "disabled for all UNIs in the EVC UNI List.";\r
1710           description\r
1711             "For EVPL, All-to-One Bundling must be disabled for " +\r
1712             "all UNIs in the EVC UNI List.";\r
1713         }\r
1714         must "(. != 'evpl') or ((. = 'evpl') and " +\r
1715                 "((../evc/unicast-svc-frm-delivery != " +\r
1716                 "'unconditional') or " +\r
1717                 "(../evc/multicast-svc-frm-delivery != " +\r
1718                 "'unconditional') or " +\r
1719                 "(../evc/broadcast-svc-frm-delivery != " +\r
1720                 "'unconditional') or " +\r
1721                 "count(../evc/unis/uni" +\r
1722                 "[src-mac-addr-limit-enabled = 'true']) = 0))" {\r
1723           error-message "For EVPL, Source MAC Address Limit must " +\r
1724                 "be disabled for all UNIs in the EVC per " +\r
1725                 "UNI List if all 3 -svc-frm-delivery values " +\r
1726                 "are unconditional.";\r
1727           description\r
1728             "For EVPL, Source MAC Address Limit must be disabled " +\r
1729             "for all UNIs in the EVC per UNI List if all " +\r
1730             "3 -svc-frm-delivery values are unconditional.";\r
1731         }\r
1732         must "(. != 'evpl') or ((. = 'evpl') and " +\r
1733                 "(../evc/evc-type = 'point-to-point'))" {\r
1734           error-message "For EVPL, EVC Type must be Point-to-Point.";\r
1735           description\r
1736             "For EVPL, EVC Type must be Point-to-Point.";\r
1737         }\r
1738         must "(. != 'eplan') or ((. = 'eplan') and " +\r
1739                 "(count(/mef-interfaces:mef-interfaces/" +\r
1740                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1741                 "[mef-interfaces:uni-id = current()/../" +\r
1742                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1743                 "uni/mef-services:uni-id]" +\r
1744                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1745                 "svc-mux-enabled = 'true']) = 0))" {\r
1746           error-message "For EP-LAN, Service Multiplexing must " +\r
1747                 "be disabled for all UNIs in the EVC UNI List.";\r
1748           description\r
1749             "For EP-LAN, Service Multiplexing must be disabled " +\r
1750             "for all UNIs in the EVC UNI List.";\r
1751         }\r
1752         must "(. != 'eplan') or ((. = 'eplan') and " +\r
1753                 "(count(/mef-interfaces:mef-interfaces/" +\r
1754                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1755                 "[mef-interfaces:uni-id = current()/../" +\r
1756                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1757                 "uni/mef-services:uni-id]" +\r
1758                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1759                 "bundling-enabled = 'true']) = 0))" {\r
1760           error-message "For EP-LAN, Bundling must be disabled " +\r
1761                 "for all UNIs in the EVC UNI List.";\r
1762           description\r
1763             "For EP-LAN, Bundling must be disabled for all UNIs " +\r
1764             "in the EVC UNI List.";\r
1765         }\r
1766         must "(. != 'eplan') or ((. = 'eplan') and " +\r
1767                 "(count(/mef-interfaces:mef-interfaces/" +\r
1768                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1769                 "[mef-interfaces:uni-id = current()/../" +\r
1770                 "mef-services:evc/mef-services:unis/" +\r
1771                 "mef-services:uni/mef-services:uni-id]" +\r
1772                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1773                 "all-to-one-bundling-enabled = 'false']) = 0))" {\r
1774           error-message "For EP-LAN, All-to-One Bundling " +\r
1775                 "must be enabled for all UNIs in the " +\r
1776                 "EVC UNI List.";\r
1777           description\r
1778             "For EP-LAN, All-to-One Bundling must be enabled " +\r
1779             "for all UNIs in the EVC UNI List.";\r
1780         }\r
1781         must "(. != 'eplan') or ((. = 'eplan') and " +\r
1782                 "(count(/mef-interfaces:mef-interfaces/" +\r
1783                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1784                 "[mef-interfaces:uni-id = current()/../" +\r
1785                 "mef-services:evc/mef-services:unis/" +\r
1786                 "mef-services:uni/mef-services:uni-id]" +\r
1787                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1788                 "max-evc-count != 1]) = 0))" {\r
1789           error-message "For EP-LAN, Max EVC Count must be 1 " +\r
1790                 "for all UNIs in the EVC UNI List.";\r
1791           description\r
1792             "For EP-LAN, Max EVC Count must be 1 for all UNIs in " +\r
1793             "the EVC UNI List.";\r
1794         }\r
1795         must "(. != 'eplan') or ((. = 'eplan') and " +\r
1796                 "(../evc/evc-type = 'multipoint-to-multipoint'))" {\r
1797           error-message "For EP-LAN, EVC Type must be " +\r
1798                 "Multipoint-to-Multipoint.";\r
1799           description\r
1800             "For EP-LAN, EVC Type must be " +\r
1801             "Multipoint-to-Multipoint.";\r
1802         }\r
1803         must "(. != 'eplan') or ((. = 'eplan') and " +\r
1804                 "(../evc/preserve-ce-vlan-id = 'true'))" {\r
1805           error-message "For EP-LAN, CE-VLAN ID Preservation " +\r
1806                 "must be enabled.";\r
1807           description\r
1808             "For EP-LAN, CE-VLAN ID Preservation must be enabled.";\r
1809         }\r
1810         must "(. != 'eplan') or ((. = 'eplan') and " +\r
1811                 "(../evc/cos-preserve-ce-vlan-id = 'true'))" {\r
1812           error-message "For EP-LAN, CE-VLAN ID CoS Preservation " +\r
1813                 "must be enabled.";\r
1814           description\r
1815             "For EP-LAN, CE-VLAN ID CoS Preservation must be " +\r
1816             "enabled.";\r
1817         }\r
1818         must "(. != 'evplan') or ((. = 'evplan') and " +\r
1819                 "(../evc/evc-type = 'multipoint-to-multipoint'))" {\r
1820           error-message "For EVP-LAN, EVC Type must be " +\r
1821                 "Multipoint-to-Multipoint.";\r
1822           description\r
1823             "For EVP-LAN, EVC Type must be " +\r
1824             "Multipoint-to-Multipoint.";\r
1825         }\r
1826         must "(. != 'evplan') or ((. = 'evplan') and " +\r
1827                 "(count(/mef-interfaces:mef-interfaces/" +\r
1828                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1829                 "[mef-interfaces:uni-id = current()/../" +\r
1830                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1831                 "uni/mef-services:uni-id]" +\r
1832                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1833                 "all-to-one-bundling-enabled = 'true']) = 0))" {\r
1834           error-message "For EVP-LAN, All-to-One Bundling must " +\r
1835                 "be disabled for all UNIs in the EVC UNI List.";\r
1836           description\r
1837             "For EVP-LAN, All-to-One Bundling must be disabled " +\r
1838             "for all UNIs in the EVC UNI List.";\r
1839         }\r
1840         must "(. != 'eptree') or ((. = 'eptree') and " +\r
1841                 "(count(/mef-interfaces:mef-interfaces/" +\r
1842                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1843                 "[mef-interfaces:uni-id = current()/../" +\r
1844                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1845                 "uni/mef-services:uni-id]" +\r
1846                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1847                 "svc-mux-enabled = 'true']) = 0))" {\r
1848           error-message "For EP-TREE, Service Multiplexing " +\r
1849                 "must be disabled for all UNIs in the " +\r
1850                 "EVC UNI List.";\r
1851           description\r
1852             "For EP-TREE, Service Multiplexing must be disabled " +\r
1853             "for all UNIs in the EVC UNI List.";\r
1854         }\r
1855         must "(. != 'eptree') or ((. = 'eptree') and " +\r
1856                 "(count(/mef-interfaces:mef-interfaces/" +\r
1857                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1858                 "[mef-interfaces:uni-id = current()/../" +\r
1859                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1860                 "uni/mef-services:uni-id]" +\r
1861                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1862                 "bundling-enabled = 'true']) = 0))" {\r
1863           error-message "For EP-TREE, Bundling must be disabled " +\r
1864                 "for all UNIs in the EVC UNI List.";\r
1865           description\r
1866             "For EP-TREE, Bundling must be disabled for all UNIs " +\r
1867             "in the EVC UNI List.";\r
1868         }\r
1869         must "(. != 'eptree') or ((. = 'eptree') and " +\r
1870                 "(count(/mef-interfaces:mef-interfaces/" +\r
1871                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1872                 "[mef-interfaces:uni-id = current()/../" +\r
1873                 "mef-services:evc/mef-services:unis/" +\r
1874                 "mef-services:uni/mef-services:uni-id]" +\r
1875                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1876                 "all-to-one-bundling-enabled = 'false']) = 0))" {\r
1877           error-message "For EP-TREE, All-to-One Bundling must " +\r
1878                 "be enabled for all UNIs in the EVC UNI List.";\r
1879           description\r
1880             "For EP-TREE, All-to-One Bundling must be enabled " +\r
1881             "for all UNIs in the EVC UNI List.";\r
1882         }\r
1883         must "(. != 'eptree') or ((. = 'eptree') and " +\r
1884                 "(count(/mef-interfaces:mef-interfaces/" +\r
1885                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1886                 "[mef-interfaces:uni-id = current()/../" +\r
1887                 "mef-services:evc/mef-services:unis/" +\r
1888                 "mef-services:uni/mef-services:uni-id]" +\r
1889                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1890                 "max-evc-count != 1]) = 0))" {\r
1891           error-message "For EP-TREE, Max EVC Count must be 1 " +\r
1892                 "for all UNIs in the EVC UNI List.";\r
1893           description\r
1894             "For EP-TREE, Max EVC Count must be 1 for all UNIs " +\r
1895             "in the EVC UNI List.";\r
1896         }\r
1897         must "(. != 'eptree') or ((. = 'eptree') and " +\r
1898                 "(../evc/evc-type = 'rooted-multipoint'))" {\r
1899           error-message "For EP-TREE, EVC Type must be " +\r
1900                 "Rooted-Multipoint.";\r
1901           description\r
1902             "For EP-TREE, EVC Type must be Rooted-Multipoint.";\r
1903         }\r
1904         must "(. != 'eptree') or ((. = 'eptree') and " +\r
1905                 "(../evc/preserve-ce-vlan-id = 'true'))" {\r
1906           error-message "For EP-TREE, CE-VLAN ID Preservation " +\r
1907                 "must be enabled.";\r
1908           description\r
1909             "For EP-TREE, CE-VLAN ID Preservation must be enabled.";\r
1910         }\r
1911         must "(. != 'eptree') or ((. = 'eptree') and " +\r
1912                 "(../evc/cos-preserve-ce-vlan-id = 'true'))" {\r
1913           error-message "For EP-TREE, CE-VLAN ID " +\r
1914                 "CoS Preservation must be enabled.";\r
1915           description\r
1916             "For EP-TREE, CE-VLAN ID CoS Preservation must be " +\r
1917             "enabled.";\r
1918         }\r
1919         must "(. != 'evptree') or ((. = 'evptree') and " +\r
1920                 "(count(/mef-interfaces:mef-interfaces/" +\r
1921                 "mef-interfaces:unis/mef-interfaces:uni" +\r
1922                 "[mef-interfaces:uni-id = current()/../" +\r
1923                 "mef-services:evc/mef-services:unis/mef-services:" +\r
1924                 "uni/mef-services:uni-id]" +\r
1925                 "[mef-interfaces:uni-id/../mef-interfaces:" +\r
1926                 "all-to-one-bundling-enabled = 'true']) = 0))" {\r
1927           error-message "For EVP-TREE, All-to-One Bundling " +\r
1928                 "must be disabled for all UNIs in the EVC UNI List.";\r
1929           description\r
1930             "For EVP-TREE, All-to-One Bundling must be disabled " +\r
1931             "for all UNIs in the EVC UNI List.";\r
1932         }\r
1933         must "(. != 'evptree') or ((. = 'evptree') and " +\r
1934                 "(../evc/evc-type = 'rooted-multipoint'))" {\r
1935           error-message "For EVP-TREE, EVC Type must be " +\r
1936                 "Rooted-Multipoint.";\r
1937           description\r
1938             "For EVP-TREE, EVC Type must be Rooted-Multipoint.";\r
1939         }\r
1940         description\r
1941           "The MEF Service Type.";\r
1942       }\r
1943       leaf user-label {\r
1944         type mef-types:identifier45;\r
1945         description\r
1946           "This MEF user label is set by the user to a value " +\r
1947           "that is easier to identify than the Service ID.";\r
1948       }\r
1949       leaf svc-entity {\r
1950         type mef-types:service-entity-type;\r
1951         default "evc";\r
1952         description\r
1953           "MEF Service Entity.";\r
1954         reference "[MEF12.2] Table 3.";\r
1955       }\r
1956       leaf tenant-id {\r
1957           type leafref{\r
1958               path "/mef-global:mef-global/mef-global:tenants-instances/mef-global:tenant-list/mef-global:name";\r
1959           }\r
1960       }      \r
1961     }\r
1962   }\r
1963 }