Merge dev/fluorine work across to master
[unimgr.git] / legato-api / src / main / yang / mef-global.yang
diff --git a/legato-api/src/main/yang/mef-global.yang b/legato-api/src/main/yang/mef-global.yang
deleted file mode 100644 (file)
index 423179e..0000000
+++ /dev/null
@@ -1,1494 +0,0 @@
-module mef-global {\r
-  namespace "http://metroethernetforum.org/ns/yang/mef-global";\r
-  prefix mef-global;\r
-  import ietf-yang-types { prefix yang; }\r
-  import ietf-inet-types { prefix inet; }\r
-  import mef-types {\r
-    prefix mef-types;\r
-    revision-date 2015-05-26;\r
-  }\r
-  organization "Metro Ethernet Forum";\r
-  contact\r
-    "Web URL: http://metroethernetforum.org/ E-mail: mibs@metroethernetforum.org\r
-    Postal: Metro Ethernet Forum 6033 W. Century Boulevard, Suite\r
-    1107 Los Angeles, CA 90045 U.S.A. Phone: +1 310-642-2800 Fax:\r
-    +1 310-642-2808";\r
-  description\r
-    "This module defines the shared profiles and related lists to\r
-    be referenced when configuring MEF Services. Service Providers\r
-    are expected to define a set of profiles for Service Attributes\r
-    associated with Bandwidth, L2CP, CoS, and so on. These are expected\r
-    to be slowly changing as they reflect the Products offered by\r
-    the Service Providers to their Subscribers. Reference Overview:\r
-    A number of base documents have been used to create the MEF Global\r
-    YANG Module. The following are the abbreviations for the baseline\r
-    documents: [RFC 6991] refers to IETF RFC 6991 'Common YANG Data\r
-    Types', 2013-07-15 [RFC 6643] refers to IETF RFC 6643 'Translation\r
-    of Structure of Management Information Version 2 (SMIv2) MIB Modules\r
-    to YANG Modules', 2011-11-25 [802.1AB] refers to 'Station and\r
-    Media Access Control Connectivity Discovery', IEEE 802.1AB-2009,\r
-    September 2009 [802.1q] refers to IEEE 802.1Q-2011 'IEEE Standard\r
-    for Local and metropolitan area networks --Media Access Control\r
-    (MAC) Bridges and Virtual Bridged Local Area Networks, August\r
-    2011 [802-2001] refers to 'IEEE Standard for Local and Metropolitan\r
-    Area Networks: Overview and Architecture', IEEE 802-2001, February\r
-    2002 [MEF10.3] refers to MEF 10.3 'Ethernet Services Attributes\r
-    Phase 3', October 2013 [MEF6.2] refers to MEF 6.2 'EVC Ethernet\r
-    Services Defintions Phase 3', August 2014 [MEF40] refers to MEF\r
-    40 'UNI and EVC Definition of Managed Objects', April 2013 [MEF45]\r
-    refers to MEF 45 'Multi-CEN L2CP', August 2014 [MEF7.2] refers\r
-    to MEF 7.2 'Carrier Ethernet Management Information Model', April\r
-    2013 [MEF7.3] refers to MEF 7.3 'Carrier Ethernet Management Information\r
-    Model', Working Draft #1 2015 [RFC 2737] refers to IETF RFC 2737\r
-    'Entity MIB (Version 2)', December 1999 [RFC 2863] refers to IETF\r
-    RFC 2863 'The Interfaces Group MIB', June 2000 [RFC 3419] refers\r
-    to IETF RFC 3419 'Textual Conventions for Transport Addresses',\r
-    December 2002 [Y.1731] refers to ITU-T Y.1731 'OAM functions and\r
-    mechanisms for Ethernet based networks', July 2011 [Q.840.1] refers\r
-    to ITU-T Q.840.1 'Requirements and analysis for NMS-EMS management\r
-    interface of Ethernet over Transport and Metro Ethernet Network(EoT/MEN)'\r
-    March 2007";\r
-  revision 2015-05-26 {\r
-    description\r
-        "Formal Project Review Draft 1.";\r
-    reference "EVC Ethernet Services Definitions YANG Modules (MEF XX), TBD";\r
-  }\r
-  container mef-global {\r
-    description\r
-        "MEF Global Profiles";\r
-    grouping bwp-flows-group {\r
-      description\r
-            "Bandwidth Profile Flows Group.";\r
-      list bwp-flow {\r
-        key "bw-profile";\r
-        description\r
-                "Bandwidth Profiles.";\r
-        reference "[MEF10.3] Section 9.14, 12.2.";\r
-        leaf bw-profile {\r
-          type mef-types:identifier45;\r
-          description\r
-                    "Bandwidth Profile Identifier.";\r
-          reference "[MEF10.3] Section 9.14, 12.2.";\r
-        }\r
-        leaf user-label {\r
-          type mef-types:identifier45;\r
-          description\r
-                    "This attribute is a friendly name for this specific " +\r
-                    "Bandwidth Profile.";\r
-        }\r
-        leaf cir {\r
-          type mef-types:bwp-cir-type;\r
-          units "kbits-per-sec";\r
-          default "0";\r
-          description\r
-                    "This attribute identifies the Committed Information " +\r
-                    "Rate (CIR) in Kilobits per second for one " +\r
-                    "direction of an ETH EVC. If the value is 0, then " +\r
-                    "no guarantee is assumed.";\r
-        }\r
-        leaf cir-max {\r
-          type mef-types:bwp-cir-type;\r
-          units "kbits-per-sec";\r
-          default "0";\r
-          description\r
-                    "This attribute identifies the Maximum Committed " +\r
-                    "Information Rate (CIR). This parameter limits the " +\r
-                    "rate of tokens added to the committed token bucket. " +\r
-                    "If this value is 0, then no limit is assumed.";\r
-        }\r
-        leaf cbs {\r
-          type mef-types:bwp-cbs-type;\r
-          units "bytes";\r
-          default "0";\r
-          description\r
-                    "This attribute identifies the Committed Burst Size " +\r
-                    "(CBS) in bytes for one direction of an ETH EVC. " +\r
-                    "This parameter limits the maximum number of bytes " +\r
-                    "available for a burst of Service Frames sent at " +\r
-                    "the UNI line rate that will be declared Green " +\r
-                    "by the Bandwidth Profile. If this value is 0, " +\r
-                    "then no limit is assumed.";\r
-        }\r
-        leaf eir {\r
-          type mef-types:bwp-eir-type;\r
-          units "kbits-per-sec";\r
-          default "0";\r
-          description\r
-                    "This attribute identifies the Excess Information " +\r
-                    "Rate (EIR) in Kilobits per second for one " +\r
-                    "direction of an ETH EVC. This parameter limits the " +\r
-                    "average rate in bits per second of Service Frames " +\r
-                    "that will be declared Yellow by the Bandwidth " +\r
-                    "Profile. If this value is 0, then no limit is assumed.";\r
-        }\r
-        leaf eir-max {\r
-          type mef-types:bwp-eir-type;\r
-          units "kbits-per-sec";\r
-          default "0";\r
-          description\r
-                    "This attribute identifies the Maximum Excess " +\r
-                    "Information Rate (EIR) in Kilobits per second for " +\r
-                    "one direction of an ETH EVC. This parameter " +\r
-                    "limits the rate of tokens added to the excess " +\r
-                    "token bucket. If this value is 0, then no " +\r
-                    "limit is assumed.";\r
-        }\r
-        leaf ebs {\r
-          type mef-types:bwp-ebs-type;\r
-          units "bytes";\r
-          default "0";\r
-          description\r
-                    "This attribute identifies the Excess Burst Size " +\r
-                    "(EBS) in bytes for one direction of an ETH EVC. " +\r
-                    "This parameter limits the maximum number of " +\r
-                    "bytes available for a burst of Service Frames " +\r
-                    "sent at the UNI line rate that will be " +\r
-                    "declared Yellow by the Bandwidth Profile. " +\r
-                    "If this value is 0, then no limit is assumed.";\r
-        }\r
-        leaf coupling-enabled {\r
-          type boolean;\r
-          default "false";\r
-          description\r
-                    "The Per Bandwidth Profile Coupling Flag (CF) " +\r
-                    "attribute. This parameter determines whether " +\r
-                    "or not overflow tokens not used for Service " +\r
-                    "Frames declared Green can be used as Yellow tokens.";\r
-          reference "[MEF10.3] Section 12.1 [R149].";\r
-        }\r
-        leaf color-mode {\r
-          type mef-types:bwp-color-mode-type;\r
-          default "color-blind";\r
-          description\r
-                    "This attribute describes the color mode (CM) to " +\r
-                    "be applied as 'color-blind mode' or " +\r
-                    "'color-aware mode'.";\r
-          reference "[MEF10.3] Section 10.3, [R151].";\r
-        }\r
-        leaf coupling-flag {\r
-          type mef-types:bwp-coupling-flag-type;\r
-          default "yellow-eir-only";\r
-          description\r
-                    "The optional coupling flag (CF) attribute, " +\r
-                    "describes if yellow frames will be admitted " +\r
-                    "if unused bandwidth is available. When CF is " +\r
-                    "set to \"yellow-eir-only\", the volume of the " +\r
-                    "yellow service frames admitted to the network " +\r
-                    "cannot exceed EIR. When CF is set " +\r
-                    "to \"yellow-eir-plus-cir\", the volume of the " +\r
-                    "yellow service frames admitted to the network is " +\r
-                    "bounded by CIR + EIR depending on volume of the " +\r
-                    "offered green Service Frames. In both cases the " +\r
-                    "burst size of the yellow service frames " +\r
-                    "admitted to the network is bounded by EBS.";\r
-          reference "[MEF23.1] Section 8.1.";\r
-        }\r
-      }\r
-    }\r
-    container svc-providers {\r
-      presence "Use non-default Service Providers";\r
-      description\r
-            "Global Service Providers List.";\r
-      list svc-provider {\r
-        key "sp-id";\r
-        description\r
-                "Service Provider Identifier.";\r
-        leaf sp-id {\r
-          type mef-types:svc-provider-type;\r
-          description\r
-                    "The Service Provider ID identifies a unique SP that " +\r
-                    "contains multiple CENs.";\r
-          reference "[MEF10.3] Section 7.";\r
-        }\r
-      }\r
-    }\r
-    container cens {\r
-      presence "Use non-default CEN";\r
-      description\r
-            "Global CENs List.";\r
-      list cen {\r
-        must "(not(/mef-global/svc-providers) and " +\r
-                "not(./sp-id)) or " +\r
-                "(/mef-global/svc-providers and ./sp-id)" {\r
-          error-message "If the Service Providers list has been " +\r
-                    "populated, a Service Provider ID must be " +\r
-                    "configured for a CEN.";\r
-          description\r
-                    "A CEN sees a single Service Provider. This must " +\r
-                    "statement is effectively a 'mandatory true' when " +\r
-                    "the Global Service Providers list is being used.";\r
-        }\r
-        key "cen-id";\r
-        description\r
-                "List of CENs.";\r
-        leaf cen-id {\r
-          type mef-types:cen-type;\r
-          description\r
-                    "The CEN ID identifies a specific Carrier Ethernet " +\r
-                    "Network belong to a Service Provider.";\r
-          reference "[MEF10.3] Section 7. The CEN ID must be " +\r
-                    "unique for this Service Provider.";\r
-        }\r
-        leaf sp-id {\r
-          when "/mef-global:mef-global/mef-global:svc-providers" {\r
-            description\r
-                        "Service Provider Identifier associated with " +\r
-                        "this CEN.";\r
-          }\r
-          type leafref {\r
-            path "/mef-global:mef-global/mef-global:" +\r
-                        "svc-providers/mef-global:svc-provider/" +\r
-                        "mef-global:sp-id";\r
-          }\r
-          description\r
-                    "The Service Provider ID must be globally unique " +\r
-                    "as all CENs and Subscribers must be supported " +\r
-                    "by a specific Service Provider(SP). A SP can " +\r
-                    "support multiple CENs.";\r
-          reference "[MEF10.3] Section 7.";\r
-        }\r
-      }\r
-    }\r
-    container slss {\r
-      presence "Use non-default SLS";\r
-      description\r
-            "The technical specification of the service level being " +\r
-            "offered by the Service Provider to the Subscriber is " +\r
-            "defined to be the Service Level Specification (SLS).";\r
-      list sls {\r
-        must "(not(/mef-global/svc-providers) and " +\r
-                "not(./sp-id)) or " +\r
-                "(/mef-global/svc-providers and ./sp-id)" {\r
-          error-message "If the Service Providers list has been " +\r
-                    "populated, a Service Provider ID must be " +\r
-                    "configured for an SLS.";\r
-          description\r
-                    "An SLS sees a single Service Provider. This must " +\r
-                    "statement is effectively a 'mandatory true' when " +\r
-                    "the Global Service Providers list is being used.";\r
-        }\r
-        key "sls-id";\r
-        description\r
-                "Global Service Level Specification(SLS) List.";\r
-        container perf-objs {\r
-          description\r
-                    "Performance Objectives for this SLS.";\r
-          leaf pm-time-interval {\r
-            type uint64;\r
-            units "seconds";\r
-            mandatory true;\r
-            description\r
-                        "Performance Metric(PM): Time Interval.";\r
-          }\r
-          leaf pm-time-interval-increment {\r
-            when "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-resiliency-performance-hli']) > 0) " +\r
-                        "or (count(../perf-obj" +\r
-                        "[pm-type = " +\r
-                        "'one-way-resiliency-performance-chli']) > 0)" +\r
-                        " or (count(../perf-obj" +\r
-                        "[pm-type = " +\r
-                        "'one-way-availability-performance']) > 0) " +\r
-                        "or (count(../perf-obj[pm-type = " +\r
-                        "'one-way-multiple-evc-group-availability-" +\r
-                        "performance']) > 0) or " +\r
-                        "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-group-availability-" +\r
-                        "performance']) > 0)" {\r
-              description\r
-                            "This PM Metric only applies to specific " +\r
-                            "Performance Objective Types.";\r
-            }\r
-            type uint64;\r
-            units "ms";\r
-            mandatory true;\r
-            description\r
-                        "A time interval much smaller than pm-time-interval.";\r
-          }\r
-          leaf unavail-flr-threshold-pp {\r
-            when "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-resiliency-performance-hli']) > 0) " +\r
-                        "or " +\r
-                        "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-resiliency-performance-chli']) > 0) " +\r
-                        "or " +\r
-                        "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-availability-performance']) > 0) " +\r
-                        "or " +\r
-                        "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-multiple-evc-group-availability-" +\r
-                        "performance']) > 0) or " +\r
-                        "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-group-availability-" +\r
-                        "performance']) > 0)" {\r
-              description\r
-                            "This PM Metric only applies to specific " +\r
-                            "Performance Objective Types.";\r
-            }\r
-            type mef-types:simple-percent;\r
-            units "percent";\r
-            mandatory true;\r
-            description\r
-                        "Unavailability frame loss ratio threshold " +\r
-                        "expressed in percentage.";\r
-          }\r
-          leaf consecutive-small-time-intervals {\r
-            when "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-availability-performance']) > 0) or " +\r
-                        "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-multiple-evc-group-availability-" +\r
-                        "performance']) > 0) or " +\r
-                        "(count(../perf-obj[pm-type = " +\r
-                        "'one-way-group-availability-" +\r
-                        "performance']) > 0)" {\r
-              description\r
-                            "This PM Metric only applies to specific " +\r
-                            "Performance Objective Types.";\r
-            }\r
-            type uint64;\r
-            mandatory true;\r
-            description\r
-                        "Number of consecutive small time intervals " +\r
-                        "to assess.";\r
-          }\r
-          list perf-obj {\r
-            key "pm-type pm-id";\r
-            unique "pm-type cos-name fd-pp fd-range-pp " +\r
-                        "fd-perf-obj fd-range-perf-obj " +\r
-                        "fd-mean-perf-obj ifdv-pp ifdv-pair-interval " +\r
-                        "ifdv-perf-obj flr-perf-obj avail-pp " +\r
-                        "hli-perf-obj " +\r
-                        "chli-consecutive-small-time-intervals " +\r
-                        "chli-perf-obj min-uni-pairs-avail gp-avail-pp";\r
-            description\r
-                        "For any given SLS, performance objectives related " +\r
-                        "to the Performance Metrics may or may not be " +\r
-                        "specified. No functionally duplicated " +\r
-                        "Performance Objectives are allowed.";\r
-            leaf pm-type {\r
-              type mef-types:performance-metric-type;\r
-              description\r
-                            "Performance Metric Type.";\r
-              reference "[MEF10.3] Section 8.8.";\r
-            }\r
-            leaf pm-id {\r
-              type mef-types:identifier45;\r
-              description\r
-                            "This is a friendly name for specific " +\r
-                            "performance profile.";\r
-            }\r
-            leaf cos-name {\r
-              type leafref {\r
-                path "/mef-global:mef-global/profiles/" +\r
-                                "cos-names/cos-name/name";\r
-              }\r
-              mandatory true;\r
-              description\r
-                            "CoS Name Identifier.";\r
-            }\r
-            leaf fd-pp {\r
-              when "(../pm-type = 'one-way-frame-delay-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type mef-types:simple-percent;\r
-              units "percent";\r
-              mandatory true;\r
-              description\r
-                            "Frame Delay Performance Percentile.";\r
-            }\r
-            leaf fd-range-pp {\r
-              when "(../pm-type = 'one-way-frame-delay-range-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type mef-types:simple-percent;\r
-              units "percent";\r
-              mandatory true;\r
-              description\r
-                            "Frame Delay Range Performance Percentile.";\r
-            }\r
-            leaf fd-perf-obj {\r
-              when "(../pm-type = 'one-way-frame-delay-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              units "ms";\r
-              mandatory true;\r
-              description\r
-                            "Frame Delay Performance Objective.";\r
-            }\r
-            leaf fd-range-perf-obj {\r
-              when "(../pm-type = 'one-way-frame-delay-range-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              units "ms";\r
-              mandatory true;\r
-              description\r
-                            "Frame Delay Range Performance Objective.";\r
-            }\r
-            leaf fd-mean-perf-obj {\r
-              when "(../pm-type = 'one-way-mean-frame-delay-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              units "ms";\r
-              mandatory true;\r
-              description\r
-                            "Frame Delay Mean Performance Objective.";\r
-            }\r
-            leaf ifdv-pp {\r
-              when "(../pm-type = 'one-way-inter-frame-delay-" +\r
-                            "variation-performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type mef-types:simple-percent;\r
-              units "percent";\r
-              mandatory true;\r
-              description\r
-                            "Inter-Frame Delay Variation Performance " +\r
-                            "Percentile.";\r
-            }\r
-            leaf ifdv-pair-interval {\r
-              when "(../pm-type = 'one-way-inter-frame-delay-" +\r
-                            "variation-performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type mef-types:simple-percent;\r
-              units "ms";\r
-              mandatory true;\r
-              description\r
-                            "Inter-Frame Delay Variation Performance " +\r
-                            "Separation / Pair Interval.";\r
-            }\r
-            leaf ifdv-perf-obj {\r
-              when "(../pm-type = 'one-way-inter-frame-delay-" +\r
-                            "variation-performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              units "ms";\r
-              mandatory true;\r
-              description\r
-                            "Inter-Frame Delay Variation Performance Objective.";\r
-            }\r
-            leaf flr-perf-obj {\r
-              when "(../pm-type = 'one-way-frame-loss-ratio-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              units "ms";\r
-              mandatory true;\r
-              description\r
-                            "Frame Loss Ratio Performance Objective.";\r
-            }\r
-            leaf avail-pp {\r
-              when "(../pm-type = 'one-way-availability-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type mef-types:simple-percent;\r
-              units "percent";\r
-              mandatory true;\r
-              description\r
-                            "Availability Performance Objective expressed " +\r
-                            "as a percentage.";\r
-            }\r
-            leaf hli-perf-obj {\r
-              when "(../pm-type = 'one-way-resiliency-" +\r
-                            "performance-hli')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              mandatory true;\r
-              description\r
-                            "HLI Performance Objective expressed as an integer.";\r
-            }\r
-            leaf chli-consecutive-small-time-intervals {\r
-              when "(../pm-type = 'one-way-resiliency-" +\r
-                            "performance-chli')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              must "not(../../consecutive-small-time-intervals) " +\r
-                            "or " +\r
-                            "(. < ../../consecutive-small-time-" +\r
-                            "intervals)" {\r
-                error-message "The value of chli-consecutive-" +\r
-                                "small-time-intervals must be less " +\r
-                                "than consecutive-small-time-intervals " +\r
-                                "(where p < n) if both are defined.";\r
-                description\r
-                                "The value of chli-consecutive-small-time-" +\r
-                                "intervals must be less than consecutive-" +\r
-                                "small-time-intervals (where p < n) if " +\r
-                                "both are defined.";\r
-              }\r
-              mandatory true;\r
-              description\r
-                            "Number of consecutive small time intervals " +\r
-                            "for assessing CHLI.";\r
-              reference "[MEF10.3] Table 10.";\r
-            }\r
-            leaf chli-perf-obj {\r
-              when "(../pm-type = 'one-way-resiliency-" +\r
-                            "performance-chli')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              mandatory true;\r
-              description\r
-                            "Consecutive HLI Performance Objective " +\r
-                            "expressed as an integer.";\r
-            }\r
-            leaf min-uni-pairs-avail {\r
-              when "(../pm-type = 'one-way-multiple-evc-group-" +\r
-                            "availability-performance') or " +\r
-                            "(../pm-type = 'one-way-group-availability-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type uint64;\r
-              mandatory true;\r
-              description\r
-                            "Minimum number of ordered UNI pairs that are " +\r
-                            "to be available in the EVC.";\r
-            }\r
-            leaf gp-avail-pp {\r
-              when "(../pm-type = 'one-way-multiple-evc-group-" +\r
-                            "availability-performance') or " +\r
-                            "(../pm-type = 'one-way-group-availability-" +\r
-                            "performance')" {\r
-                description\r
-                                "This PM Metric only applies to specific " +\r
-                                "Performance Objective Types.";\r
-              }\r
-              type mef-types:simple-percent;\r
-              units "percent";\r
-              mandatory true;\r
-              description\r
-                            "Group Availability Performance Objective " +\r
-                            "expressed as a percentage.";\r
-            }\r
-          }\r
-        }\r
-        leaf sls-id {\r
-          type mef-types:cen-type;\r
-          description\r
-                    "The SLS ID identifies a specific Service Level " +\r
-                    "Specification offered by a Service Provider.";\r
-          reference "[MEF10.3] Section 8.8. The SLS ID must " +\r
-                    "be unique for this Service Provider.";\r
-        }\r
-        leaf sp-id {\r
-          when "/mef-global:mef-global/mef-global:svc-" +\r
-                    "providers" {\r
-            description\r
-                        "Service Provider Identifier associated " +\r
-                        "with this SLS.";\r
-          }\r
-          type leafref {\r
-            path "/mef-global:mef-global/mef-global:" +\r
-                        "svc-providers/mef-global:svc-provider/" +\r
-                        "mef-global:sp-id";\r
-          }\r
-          description\r
-                    "The Service Provider ID must be globally unique " +\r
-                    "as all Subscriber SLSs must be supported by " +\r
-                    "a specific Service Provider(SP). A SP can " +\r
-                    "support multiple SLSs.";\r
-          reference "[MEF10.3] Section 7.";\r
-        }\r
-      }\r
-    }\r
-    container subscribers {\r
-      presence "Use non-default Subscribers.";\r
-      description\r
-            "Subscribers List (Global).";\r
-      list subscriber {\r
-        must "(not(/mef-global/svc-providers) and not(./sp-id)) " +\r
-                "or " +\r
-                "(/mef-global/svc-providers and ./sp-id)" {\r
-          error-message "If the Service Providers list has been " +\r
-                    "populated, a Service Provider ID must be " +\r
-                    "configured for a Subscriber.";\r
-          description\r
-                    "A Subscriber sees a single Service Provider. " +\r
-                    "This must statement is effectively a " +\r
-                    "'mandatory true' when the Global Service " +\r
-                    "Providers list is being used.";\r
-        }\r
-        must "(not(/mef-global/cens) and not(./cen-id)) or " +\r
-                "(/mef-global/cens and ./cen-id)" {\r
-          error-message "If the CENs list has been populated, " +\r
-                    "a CEN ID must be configured for a Subscriber.";\r
-          description\r
-                    "[MEF103] A Subscriber sees a single CEN from a " +\r
-                    "SP. This must statement is effectively a " +\r
-                    "'mandatory true' when the Global CENs list " +\r
-                    "is being used.";\r
-        }\r
-        key "sub-id";\r
-        description\r
-                "Global Subscriber List.";\r
-        leaf sub-id {\r
-          type mef-types:subscriber-type;\r
-          description\r
-                    "The Subscriber ID identifies a unique Subscriber to " +\r
-                    "this CEN. Note that you can have the same " +\r
-                    "Subscriber as part of multiple Service Providers.";\r
-          reference "[MEF10.3] Section 7";\r
-        }\r
-        leaf sp-id {\r
-          when "/mef-global:mef-global/mef-global:svc-providers" {\r
-            description\r
-                        "Only configure when the Global Service Providers " +\r
-                        "list has been populated.";\r
-          }\r
-          type leafref {\r
-            path "/mef-global:mef-global/mef-global:" +\r
-                        "svc-providers/mef-global:" +\r
-                        "svc-provider/mef-global:sp-id";\r
-          }\r
-          description\r
-                    "The Service Provider ID must be globally unique " +\r
-                    "as all CENs and Subscribers must be supported by " +\r
-                    "a specific Service Provider(SP). A SP can " +\r
-                    "support multiple CENs.";\r
-          reference "[MEF10.3] Section 7.";\r
-        }\r
-        leaf cen-id {\r
-          when "/mef-global:mef-global/mef-global:cens" {\r
-            description\r
-                        "Only configure when the Global CENs list " +\r
-                        "has been populated.";\r
-          }\r
-          type leafref {\r
-            path "/mef-global:mef-global/mef-global:cens/" +\r
-                        "mef-global:cen/mef-global:cen-id";\r
-          }\r
-          description\r
-                    "A CEN is defined as a network from a " +\r
-                    "Service Provider (SP). ";\r
-          reference "[MEF10.3] Section 7.";\r
-        }\r
-      }\r
-    }\r
-    container profiles {\r
-      presence "Use to confirm whether ANY profiles have " +\r
-            "been configured";\r
-      description\r
-            "Global Profiles.";\r
-      container cos-names {\r
-        description\r
-                "CoS Names (AKA CoS Labels) agreed to between " +\r
-                "the Service Provider and the Subscribers.";\r
-        list cos-name {\r
-          key "name";\r
-          description\r
-                    "List of CoS Names.";\r
-          leaf name {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "CoS Name.";\r
-          }\r
-        }\r
-      }\r
-      container eec-names {\r
-        description\r
-                "Egress Equivalance Class (EEC) Names agreed to " +\r
-                "between the Service Provider and the Subscribers.";\r
-        list eec-name {\r
-          key "name";\r
-          description\r
-                    "List of EEC Names.";\r
-          leaf name {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "EEC Name.";\r
-          }\r
-        }\r
-      }\r
-      container ingress-bwp-flows {\r
-        description\r
-                "Ingress Bandwidth Profile Flows.";\r
-        uses bwp-flows-group;\r
-      }\r
-      container egress-bwp-flows {\r
-        description\r
-                "Egress Bandwidth Profile Flows.";\r
-        uses bwp-flows-group;\r
-      }\r
-      container l2cp-cos {\r
-        description\r
-                "Ingress Layer 2 Control Protocol (L2CP) " +\r
-                "Configuration with CoS Names.";\r
-        list l2cp-profile {\r
-          key "id";\r
-          description\r
-                    "A list of global profiles for Layer 2 " +\r
-                    "Control Processing.";\r
-          reference "[MEF10.3] Section 8.5.";\r
-          container l2cps {\r
-            description\r
-                        "Layer 2 Control Protocol (L2CP) Profiles " +\r
-                        "for Classes of Service (CoS).";\r
-            list l2cp {\r
-              key "dest-mac-addr peering-proto-name";\r
-              description\r
-                            "L2CP Destination MAC Address.";\r
-              reference "[MEF10.3] Section 8.5.";\r
-              leaf dest-mac-addr {\r
-                type yang:mac-address;\r
-                description\r
-                                "The Destination MAC Address for the " +\r
-                                "Layer 2 Control Protocol.";\r
-              }\r
-              leaf peering-proto-name {\r
-                type mef-types:identifier45;\r
-                description\r
-                                "This attribute is a friendly name for " +\r
-                                "the Protocol to be Peered. It is optional.";\r
-              }\r
-              leaf protocol {\r
-                type mef-types:l2cp-peering-protocol-type;\r
-                default "ethertype";\r
-                description\r
-                                "The Protocol is one of Ethertype, LLC, or Other.";\r
-              }\r
-              leaf protocol-id {\r
-                type yang:hex-string;\r
-                description\r
-                                "The Protocol Identifier is the protocol " +\r
-                                "specific value associated with the " +\r
-                                "protocol in a colon separated list of " +\r
-                                "hex values (ie. 88:EE or 82).";\r
-              }\r
-              leaf cos-name {\r
-                type leafref {\r
-                  path "/mef-global:mef-global/profiles/" +\r
-                                    "cos-names/cos-name/name";\r
-                }\r
-                description\r
-                                "This attribute identifies the name of " +\r
-                                "a class of service (CoS).";\r
-              }\r
-              leaf handling {\r
-                type mef-types:l2cp-handling-type;\r
-                description\r
-                                "The handling selection indicates whether " +\r
-                                "the L2CP Service Frames identified by " +\r
-                                "this list entry should be passed, " +\r
-                                "discarded, or peered.";\r
-                reference "[MEF45] Section 8.5.";\r
-              }\r
-              leaf-list subtype {\r
-                type yang:hex-string;\r
-                max-elements "255";\r
-                description\r
-                                "L2CP Subtype for this Destination " +\r
-                                "MAC's Protocol ID.";\r
-              }\r
-            }\r
-          }\r
-          leaf id {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "The L2CP ID identifies a specific profile for " +\r
-                        "Layer 2 Control Processing.";\r
-            reference "[MEF10.3] Section 8.5.";\r
-          }\r
-          leaf user-label {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "This attribute is a friendly name for the " +\r
-                        "specific L2CP profile.";\r
-          }\r
-        }\r
-      }\r
-      container l2cp-eec {\r
-        description\r
-                "Egress Layer 2 Control Protocol (L2CP) Configuration " +\r
-                "with EEC Names.";\r
-        list l2cp-profile {\r
-          key "id";\r
-          description\r
-                    "A list of global profiles for Layer 2 Control " +\r
-                    "Processing.";\r
-          reference "[MEF10.3] Section 8.5.";\r
-          container l2cps {\r
-            description\r
-                        "Layer 2 Control Protocol (L2CP) Profiles for " +\r
-                        "Egress Equivalence Classes.";\r
-            list l2cp {\r
-              key "dest-mac-addr peering-proto-name";\r
-              description\r
-                            "L2CP Destination MAC Address.";\r
-              reference "[MEF10.3] Section 8.5.";\r
-              leaf dest-mac-addr {\r
-                type yang:mac-address;\r
-                description\r
-                                "The Destination MAC Address for the " +\r
-                                "Layer 2 Control Protocol.";\r
-              }\r
-              leaf peering-proto-name {\r
-                type mef-types:identifier45;\r
-                description\r
-                                "This attribute is a friendly name for the " +\r
-                                "Protocol to be Peered. It is optional.";\r
-              }\r
-              leaf protocol {\r
-                type mef-types:l2cp-peering-protocol-type;\r
-                default "ethertype";\r
-                description\r
-                                "The Protocol is one of Ethertype, LLC, or Other.";\r
-              }\r
-              leaf protocol-id {\r
-                type yang:hex-string;\r
-                description\r
-                                "The Protocol Identifier is the protocol " +\r
-                                "specific " +\r
-                                "value associated with the protocol in a " +\r
-                                "colon separated list of hex values " +\r
-                                "(ie. 88:EE or 82).";\r
-              }\r
-              leaf eec-name {\r
-                type leafref {\r
-                  path "/mef-global:mef-global/profiles/" +\r
-                                    "eec-names/eec-name/name";\r
-                }\r
-                description\r
-                                "This attribute identifies the name of a " +\r
-                                "Egress Equivalence Class (EEC).";\r
-              }\r
-              leaf handling {\r
-                type mef-types:l2cp-handling-type;\r
-                description\r
-                                "The handling selection indicates whether " +\r
-                                "the L2CP Service Frames identified by this " +\r
-                                "list entry should be passed, discarded, " +\r
-                                "or peered.";\r
-                reference "[MEF45] Section 8.5.";\r
-              }\r
-              leaf-list subtype {\r
-                type yang:hex-string;\r
-                max-elements "255";\r
-                description\r
-                                "L2CP Subtype for this Destination MAC's " +\r
-                                "Protocol ID.";\r
-              }\r
-            }\r
-          }\r
-          leaf id {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "The L2CP ID identifies a specific profile for " +\r
-                        "Layer 2 Control Processing.";\r
-            reference "[MEF10.3] Section 8.5.";\r
-          }\r
-          leaf user-label {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "This attribute is a friendly name for the " +\r
-                        "specific L2CP profile.";\r
-          }\r
-        }\r
-      }\r
-      container l2cp-peering {\r
-        description\r
-                "Layer 2 Control Protocol (L2CP) Configuration " +\r
-                "for Peering Lists.";\r
-        list l2cp-profile {\r
-          key "id";\r
-          description\r
-                    "A list of global profiles for " +\r
-                    "Layer 2 Control Processing.";\r
-          reference "[MEF10.3] Section 8.5.";\r
-          container l2cps {\r
-            description\r
-                        "Layer 2 Control Protocol (L2CP) Profiles for " +\r
-                        "Peering.";\r
-            list l2cp {\r
-              key "dest-mac-addr peering-proto-name";\r
-              description\r
-                            "L2CP Destination MAC Address.";\r
-              reference "[MEF10.3] Section 8.5.";\r
-              leaf dest-mac-addr {\r
-                type yang:mac-address;\r
-                description\r
-                                "The Destination MAC Address for the " +\r
-                                "Layer 2 Control Protocol.";\r
-              }\r
-              leaf peering-proto-name {\r
-                type mef-types:identifier45;\r
-                description\r
-                                "This attribute is a friendly name for the " +\r
-                                "Protocol to be Peered. It is optional.";\r
-              }\r
-              leaf protocol {\r
-                type mef-types:l2cp-peering-protocol-type;\r
-                default "ethertype";\r
-                description\r
-                                "The Protocol is one of Ethertype, LLC, or Other.";\r
-              }\r
-              leaf protocol-id {\r
-                type yang:hex-string;\r
-                description\r
-                                "The Protocol Identifier is the protocol " +\r
-                                "specific value associated with the protocol " +\r
-                                "in a colon separated list of hex values " +\r
-                                "(ie. 88:EE or 82).";\r
-              }\r
-              leaf-list subtype {\r
-                type yang:hex-string;\r
-                max-elements "255";\r
-                description\r
-                                "L2CP Subtype for this Destination MAC's " +\r
-                                "Protocol ID.";\r
-              }\r
-            }\r
-          }\r
-          leaf id {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "The L2CP ID identifies a specific profile for " +\r
-                        "Layer 2 Control Processing.";\r
-            reference "[MEF10.3] Section 8.5.";\r
-          }\r
-          leaf user-label {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "This attribute is a friendly name for the " +\r
-                        "specific L2CP profile.";\r
-          }\r
-        }\r
-      }\r
-      container elmi {\r
-        description\r
-                "Ethernet Local Management Interface(ELMI).";\r
-        list elmi-profile {\r
-          key "id";\r
-          description\r
-                    "Ethernet Local Management Interface(ELMI) Profile ID.";\r
-          reference "[MEF10.3] [R88]. [MEF16].";\r
-          leaf id {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "Ethernet Local Management Interface(ELMI) " +\r
-                        "Profile ID.";\r
-            reference "[MEF10.3] [R88]. [MEF16].";\r
-          }\r
-          leaf user-label {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "This attribute is a friendly name for the " +\r
-                        "specific ELMI Category described within this " +\r
-                        "profile.";\r
-          }\r
-          leaf polling-counter {\r
-            type mef-types:elmi-polling-counter-type;\r
-            default "360";\r
-            description\r
-                        "Polling cycles between Full Status exchanges.";\r
-            reference "[MEF16] Section 5.6.1.";\r
-          }\r
-          leaf status-error-threshold {\r
-            type mef-types:elmi-status-error-threshold-type;\r
-            default "4";\r
-            description\r
-                        "The count of consecutive ELMI status polling " +\r
-                        "errors before raising an error.";\r
-            reference "[MEF16] Section 5.6.1.";\r
-          }\r
-          leaf polling-timer {\r
-            type mef-types:elmi-polling-timer-type;\r
-            default "10";\r
-            description\r
-                        "The timer started after tranmitting a Status " +\r
-                        "Enquiry. If the timer expires, record the error " +\r
-                        "if a STATUS message not received and resend " +\r
-                        "Status Enquiry.";\r
-            reference "[MEF16] Section 5.6.1.";\r
-          }\r
-          leaf polling-verification-timer {\r
-            type mef-types:elmi-polling-verification-timer-type;\r
-            default "15";\r
-            description\r
-                        "The type used for a timer started after " +\r
-                        "tranmitting a Status Message. If a Status " +\r
-                        "Enquiry is recieved before this timer " +\r
-                        "expires, record the error.";\r
-            reference "[MEF16] Section 5.6.1.";\r
-          }\r
-        }\r
-      }\r
-      container eec {\r
-        description\r
-                "Egress Equivalence Class (EEC) Profiles.";\r
-        list eec-profile {\r
-          key "id";\r
-          description\r
-                    "This attribute identifies the identifier of a " +\r
-                    "Egress Equivance Class (EEC) instance.";\r
-          reference "[MEF6.2] Appendix A.";\r
-          leaf id {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "This attribute identifies the label of a " +\r
-                        "Egress Equivance Class (EEC) instance.";\r
-          }\r
-          choice eec-id {\r
-            description\r
-                        "EEC Identifier.";\r
-            case pcp {\r
-              container eec-pcp {\r
-                presence "EEC Mode PCP.";\r
-                description\r
-                                "EEC Mode PCP.";\r
-                leaf default-pcp-eec-name {\r
-                  type leafref {\r
-                    path "/mef-global:mef-global/profiles/" +\r
-                                        "eec-names/eec-name/name";\r
-                  }\r
-                  description\r
-                                    "Default value for EEC Name for PCP " +\r
-                                    "when it has not been explicitly configured.";\r
-                }\r
-                leaf default-pcp-color {\r
-                  type mef-types:cos-color-type;\r
-                  default "green";\r
-                  description\r
-                                    "If the EEC ID = pcp, then this value " +\r
-                                    "will be used as the default Color when " +\r
-                                    "the PCP value does not have an explicitly " +\r
-                                    "configured Color.";\r
-                  reference "MEF 10.3 Section 10.3";\r
-                }\r
-                list pcp {\r
-                  key "pcp-value";\r
-                  description\r
-                                    "PCP.";\r
-                  leaf pcp-value {\r
-                    type mef-types:ieee8021p-priority-type;\r
-                    description\r
-                                        "Use the VLAN Tag IEEE 802.1p Priority " +\r
-                                        "Code Point value (0..7) for CoS.";\r
-                    reference "[MEF10.3] Section 10.2.1.";\r
-                  }\r
-                  leaf discard-value {\r
-                    type boolean;\r
-                    default "false";\r
-                    description\r
-                                        "Set to True to discard Service Frames " +\r
-                                        "that match to this PCP value.";\r
-                  }\r
-                  leaf eec-name {\r
-                    type leafref {\r
-                      path "/mef-global:mef-global/profiles/" +\r
-                                            "eec-names/eec-name/name";\r
-                    }\r
-                    description\r
-                                        "This attribute identifies the name of a " +\r
-                                        "Egress Equivalence Class instance.";\r
-                  }\r
-                  leaf color {\r
-                    type mef-types:cos-color-type;\r
-                    default "green";\r
-                    description\r
-                                        "EVC Per UNI: The EEC Color for " +\r
-                                        "Service Frames.";\r
-                    reference "[MEF10.3] [R102], [R103]. ";\r
-                  }\r
-                }\r
-              }\r
-            }\r
-            case dscp {\r
-              container eec-dscp {\r
-                presence "EEC Mode DSCP.";\r
-                description\r
-                                "ECC Mode DSCP.";\r
-                leaf default-ipv4-eec-name {\r
-                  type leafref {\r
-                    path "/mef-global:mef-global/profiles/" +\r
-                                        "eec-names/eec-name/name";\r
-                  }\r
-                  description\r
-                                    "Default value for EEC Name for DSCP IPv4 " +\r
-                                    "Packets when it has not been " +\r
-                                    "explicitly configured.";\r
-                }\r
-                leaf default-ipv4-color {\r
-                  type mef-types:cos-color-type;\r
-                  default "green";\r
-                  description\r
-                                    "If the EEC ID = dscp, then this value will " +\r
-                                    "be used as the default Color when the " +\r
-                                    "DSCP value for IPv4 does not have an " +\r
-                                    "explicitly configured Color.";\r
-                  reference "MEF 10.3 Section 10.3";\r
-                }\r
-                leaf default-ipv6-eec-name {\r
-                  type leafref {\r
-                    path "/mef-global:mef-global/profiles/" +\r
-                                        "eec-names/eec-name/name";\r
-                  }\r
-                  description\r
-                                    "Default value for EEC Name for DSCP IPv6 " +\r
-                                    "Packets when it has not been explicitly " +\r
-                                    "configured.";\r
-                }\r
-                leaf default-ipv6-color {\r
-                  type mef-types:cos-color-type;\r
-                  default "green";\r
-                  description\r
-                                    "If the EEC ID = dscp, then this value " +\r
-                                    "will be used as the default Color " +\r
-                                    "when the DSCP value for IPv6 does " +\r
-                                    "not have an explicitly configured Color.";\r
-                  reference "MEF 10.3 Section 10.3";\r
-                }\r
-                list ipv4-dscp {\r
-                  key "dscp-value";\r
-                  description\r
-                                    "DSCP value for IPv4 Packets.";\r
-                  leaf dscp-value {\r
-                    type inet:dscp;\r
-                    description\r
-                                        "Map CoS to IPv4 DSCP values.";\r
-                  }\r
-                  leaf discard-value {\r
-                    type boolean;\r
-                    default "false";\r
-                    description\r
-                                        "Set to True to discard Service Frames " +\r
-                                        "that match to this DSCP value.";\r
-                  }\r
-                  leaf eec-name {\r
-                    type leafref {\r
-                      path "/mef-global:mef-global/profiles/" +\r
-                                            "eec-names/eec-name/name";\r
-                    }\r
-                    description\r
-                                        "This attribute identifies the name " +\r
-                                        "of a Egress Equivalence Class instance.";\r
-                  }\r
-                  leaf color {\r
-                    type mef-types:cos-color-type;\r
-                    default "green";\r
-                    description\r
-                                        "EVC Per UNI: The EEC Color for " +\r
-                                        "Service Frames.";\r
-                    reference "[MEF10.3] [R102], [R103]. ";\r
-                  }\r
-                }\r
-                list ipv6-dscp {\r
-                  key "dscp-value";\r
-                  description\r
-                                    "DSCP value for IPv6 Packets.";\r
-                  leaf dscp-value {\r
-                    type inet:dscp;\r
-                    description\r
-                                        "Map EEC to IPv4 and IPv6 DSCP values.";\r
-                  }\r
-                  leaf discard-value {\r
-                    type boolean;\r
-                    default "false";\r
-                    description\r
-                                        "Set to True to discard Service Frames " +\r
-                                        "that match to this DSCP value.";\r
-                  }\r
-                  leaf eec-name {\r
-                    type leafref {\r
-                      path "/mef-global:mef-global/profiles/" +\r
-                                            "eec-names/eec-name/name";\r
-                    }\r
-                    description\r
-                                        "This attribute identifies the name of a " +\r
-                                        "Egress Equivalence Class instance.";\r
-                  }\r
-                  leaf color {\r
-                    type mef-types:cos-color-type;\r
-                    default "green";\r
-                    description\r
-                                        "EVC Per UNI: The EEC Color for " +\r
-                                        "Service Frames.";\r
-                    reference "[MEF10.3] [R102], [R103]. ";\r
-                  }\r
-                }\r
-              }\r
-            }\r
-          }\r
-        }\r
-      }\r
-      container cos {\r
-        description\r
-                "Class of Service (CoS) Profiles.";\r
-        list cos-profile {\r
-          key "id";\r
-          description\r
-                    "This attribute identifies the identifier of a " +\r
-                    "Class of Service (CoS) instance.";\r
-          reference "[MEF6.2] Appendix A.";\r
-          leaf id {\r
-            type mef-types:identifier45;\r
-            description\r
-                        "This attribute identifies the label of a " +\r
-                        "Class of Service (CoS) instance.";\r
-          }\r
-          choice cos-id {\r
-            description\r
-                        "CoS identifier.";\r
-            case evc {\r
-              container cos-evc {\r
-                presence "EVC ID PCP.";\r
-                description\r
-                                "CoS ID EVC.";\r
-                leaf default-evc-cos-name {\r
-                  type leafref {\r
-                    path "/mef-global:mef-global/profiles/" +\r
-                                        "cos-names/cos-name/name";\r
-                  }\r
-                  description\r
-                                    "This attribute identifies the name of a " +\r
-                                    "Class of Service (CoS) instance.";\r
-                }\r
-                leaf default-evc-color {\r
-                  type mef-types:cos-color-type;\r
-                  default "green";\r
-                  description\r
-                                    "If the CoS ID = evc, then all service " +\r
-                                    "frames are treated with the same color.";\r
-                  reference "MEF 10.3 Section 10.3";\r
-                }\r
-              }\r
-            }\r
-            case pcp {\r
-              container cos-pcp {\r
-                presence "CoS ID PCP.";\r
-                description\r
-                                "CoS ID PCP.";\r
-                leaf default-pcp-cos-name {\r
-                  type leafref {\r
-                    path "/mef-global:mef-global/profiles/" +\r
-                                        "cos-names/cos-name/name";\r
-                  }\r
-                  description\r
-                                    "Default value for CoS Name for PCP when it " +\r
-                                    "has not been explicitly configured.";\r
-                }\r
-                leaf default-pcp-color {\r
-                  type mef-types:cos-color-type;\r
-                  default "green";\r
-                  description\r
-                                    "If the CoS ID = pcp, then this value will " +\r
-                                    "be used as the default Color when the PCP " +\r
-                                    "value does not have an explicitly " +\r
-                                    "configured Color.";\r
-                  reference "MEF 10.3 Section 10.3";\r
-                }\r
-                list pcp {\r
-                  key "pcp-value";\r
-                  description\r
-                                    "PCP.";\r
-                  leaf pcp-value {\r
-                    type mef-types:ieee8021p-priority-type;\r
-                    description\r
-                                        "Use the VLAN Tag IEEE 802.1p Priority " +\r
-                                        "Code Point value (0..7) for CoS.";\r
-                  }\r
-                  leaf discard-value {\r
-                    type boolean;\r
-                    default "false";\r
-                    description\r
-                                        "Set to True to discard Service Frames " +\r
-                                        "that match to this PCP value.";\r
-                  }\r
-                  leaf cos-name {\r
-                    type leafref {\r
-                      path "/mef-global:mef-global/profiles/" +\r
-                                            "cos-names/cos-name/name";\r
-                    }\r
-                    description\r
-                                        "This attribute identifies the name of " +\r
-                                        "a class of service (CoS) instance.";\r
-                  }\r
-                  leaf color {\r
-                    type mef-types:cos-color-type;\r
-                    default "green";\r
-                    description\r
-                                        "EVC Per UNI: The CoS Color for " +\r
-                                        "Service Frames.";\r
-                    reference "[MEF10.3] [R102], [R103]. ";\r
-                  }\r
-                }\r
-              }\r
-            }\r
-            case dscp {\r
-              container cos-dscp {\r
-                presence "CoS ID DSCP.";\r
-                description\r
-                                "CoS ID DSCP.";\r
-                leaf default-ipv4-cos-name {\r
-                  type leafref {\r
-                    path "/mef-global:mef-global/profiles/" +\r
-                                        "cos-names/cos-name/name";\r
-                  }\r
-                  description\r
-                                    "Default value for CoS Name for DSCP " +\r
-                                    "IPv4 Packets when it has not been " +\r
-                                    "explicitly configured.";\r
-                }\r
-                leaf default-ipv4-color {\r
-                  type mef-types:cos-color-type;\r
-                  default "green";\r
-                  description\r
-                                    "If the CoS ID = dscp, then this value " +\r
-                                    "will be used as the default Color when " +\r
-                                    "the DSCP value for IPv4 does not have " +\r
-                                    "an explicitly configured Color.";\r
-                  reference "MEF 10.3 Section 10.3";\r
-                }\r
-                leaf default-ipv6-cos-name {\r
-                  type leafref {\r
-                    path "/mef-global:mef-global/profiles/" +\r
-                                        "cos-names/cos-name/name";\r
-                  }\r
-                  description\r
-                                    "Default value for CoS Name for DSCP " +\r
-                                    "IPv6 Packets when it has not been " +\r
-                                    "explicitly configured.";\r
-                }\r
-                leaf default-ipv6-color {\r
-                  type mef-types:cos-color-type;\r
-                  default "green";\r
-                  description\r
-                                    "If the CoS ID = dscp, then this value will " +\r
-                                    "be used as the default Color when the " +\r
-                                    "DSCP value for IPv6 does not have an " +\r
-                                    "explicitly configured Color.";\r
-                  reference "MEF 10.3 Section 10.3";\r
-                }\r
-                list ipv4-dscp {\r
-                  key "dscp-value";\r
-                  description\r
-                                    "DSCP value for IPv4 Packets.";\r
-                  leaf dscp-value {\r
-                    type inet:dscp;\r
-                    description\r
-                                        "Map CoS to IPv4 and IPv6 DSCP values.";\r
-                  }\r
-                  leaf discard-value {\r
-                    type boolean;\r
-                    default "false";\r
-                    description\r
-                                        "Set to True to discard Service Frames " +\r
-                                        "that match to this DSCP value.";\r
-                  }\r
-                  leaf cos-name {\r
-                    type leafref {\r
-                      path "/mef-global:mef-global/profiles/" +\r
-                                            "cos-names/cos-name/name";\r
-                    }\r
-                    description\r
-                                        "This attribute identifies the name of a " +\r
-                                        "Class of Service (CoS) instance.";\r
-                  }\r
-                  leaf color {\r
-                    type mef-types:cos-color-type;\r
-                    default "green";\r
-                    description\r
-                                        "EVC Per UNI: The CoS Color for " +\r
-                                        "Service Frames.";\r
-                    reference "[MEF10.3] [R102], [R103]. ";\r
-                  }\r
-                }\r
-                list ipv6-dscp {\r
-                  key "dscp-value";\r
-                  description\r
-                                    "DSCP value for IPv6 Packets.";\r
-                  leaf dscp-value {\r
-                    type inet:dscp;\r
-                    description\r
-                                        "Map CoS to IPv4 and IPv6 DSCP values.";\r
-                  }\r
-                  leaf discard-value {\r
-                    type boolean;\r
-                    default "false";\r
-                    description\r
-                                        "Set to True to discard Service Frames " +\r
-                                        "that match to this DSCP value.";\r
-                  }\r
-                  leaf cos-name {\r
-                    type leafref {\r
-                      path "/mef-global:mef-global/profiles/" +\r
-                                            "cos-names/cos-name/name";\r
-                    }\r
-                    description\r
-                                        "This attribute identifies the name of a " +\r
-                                        "Class of Service (CoS) instance.";\r
-                  }\r
-                  leaf color {\r
-                    type mef-types:cos-color-type;\r
-                    default "green";\r
-                    description\r
-                                        "EVC Per UNI: The CoS Color for " +\r
-                                        "Service Frames.";\r
-                    reference "[MEF10.3] [R102], [R103]. ";\r
-                  }\r
-                }\r
-              }\r
-            }\r
-          }\r
-        }\r
-      }\r
-    }\r
-\r
-    grouping tenant {\r
-      leaf name {\r
-        type string;\r
-        description "Tenant Name";\r
-      }\r
-    }\r
-\r
-    container tenants-instances {\r
-      list tenant-list {\r
-        key name;\r
-        unique name;\r
-        uses tenant;\r
-      }\r
-    }\r
-  }\r
-}\r