migrate sdnr features to phosphorus
[ccsdk/features.git] / sdnr / wt / devicemanager-onap / onf14 / provider / src / test / resources / tdm-container-2-0.yang
diff --git a/sdnr/wt/devicemanager-onap/onf14/provider/src/test/resources/tdm-container-2-0.yang b/sdnr/wt/devicemanager-onap/onf14/provider/src/test/resources/tdm-container-2-0.yang
new file mode 100644 (file)
index 0000000..efe0637
--- /dev/null
@@ -0,0 +1,899 @@
+module tdm-container-2-0 {\r
+  yang-version 1.1;\r
+  namespace "urn:onf:yang:tdm-container-2-0";\r
+  prefix tdm-container;\r
+\r
+  import ietf-yang-types {\r
+    prefix yang;\r
+  }\r
+  import core-model-1-4 {\r
+    prefix core-model;\r
+  }\r
+\r
+  organization\r
+    "openBackhaul.com proposal to Open Networking Foundation (ONF)";\r
+  contact\r
+    "WG Web : https://github.com/openBackhaul/Overview\r
+     WG List: TdmContainer@openBackhaul.com\r
+     Editor : Thorsten Heinze\r
+     Email  : Thorsten.Heinze@openBackhaul.com";\r
+  description\r
+    "This model is a technology specific amendment to the LayerProtocol class of the ONF Core IM for managing TDM interfaces (e.g. E1, STM-1).\r
+\r
+     Copyright 2019 openBackhaul.com\r
+\r
+     Licensed under the Apache License, Version 2.0 (the 'License');\r
+     you may not use this file except in compliance with the License.\r
+     You may obtain a copy of the License at\r
+     http://www.apache.org/licenses/LICENSE-2.0\r
+     Unless required by applicable law or agreed to in writing, software\r
+     distributed under the License is distributed on an 'AS IS' BASIS,\r
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+     See the License for the specific language governing permissions and\r
+     limitations under the License.";\r
+\r
+  revision 2020-01-23 {\r
+    description\r
+      "Model for the Transport SDN Pilot at Telefonica Germany.\r
+       Please view https://github.com/openBackhaul/tdmContainer/issues for changes.";\r
+    reference\r
+      "https://github.com/openBackhaul/tdmContainer/tree/tsp: Model definition\r
+       https://github.com/openBackhaul/onfCoreIm/tree/tsp: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";\r
+  }\r
+  revision 2019-11-23 {\r
+    description\r
+      "Model for the Transport SDN Pilot at Telefonica Germany.\r
+       Please view https://github.com/openBackhaul/tdmContainer/issues for changes.";\r
+    reference\r
+      "https://github.com/openBackhaul/tdmContainer/tree/tsp: Model definition\r
+       https://github.com/openBackhaul/onfCoreIm/tree/tsp: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";\r
+  }\r
+  revision 2019-07-05 {\r
+    description\r
+      "Model for the Transport SDN Pilot at Telefonica Germany.\r
+       Please view https://github.com/openBackhaul/tdmContainer/issues for changes.";\r
+    reference\r
+      "https://github.com/openBackhaul/tdmContainer/tree/tsp: Model definition\r
+       https://github.com/openBackhaul/onfCoreIm/tree/tsp: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";\r
+  }\r
+\r
+  identity LAYER_PROTOCOL_NAME_TYPE_TDM_CONTAINER_LAYER {\r
+    base core-model:LAYER_PROTOCOL_NAME_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  augment "/core-model:control-construct/core-model:logical-termination-point/core-model:layer-protocol" {\r
+    when "derived-from-or-self(./core-model:layer-protocol-name, 'tdm-container:LAYER_PROTOCOL_NAME_TYPE_TDM_CONTAINER_LAYER')";\r
+    uses tdm-container-lp-spec;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  /****************************************\r
+   * package notifications\r
+   **************************************/ \r
+\r
+  notification object-creation-notification {\r
+    uses object-creation-notification;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping object-creation-notification {\r
+    leaf counter {\r
+      type int64;\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Counts object creation notifications.";\r
+    }\r
+    leaf timestamp {\r
+      type yang:date-and-time;\r
+      default "2010-11-20T14:00:00+01:00";\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf object-id-ref {\r
+      type leafref {\r
+        path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";\r
+        require-instance false;\r
+      }\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf object-type {\r
+      type string;\r
+      default "Type of created object not specified.";\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  notification object-deletion-notification {\r
+    uses object-deletion-notification;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping object-deletion-notification {\r
+    leaf counter {\r
+      type int64;\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Counts object deletion notifications.";\r
+    }\r
+    leaf timestamp {\r
+      type yang:date-and-time;\r
+      default "2010-11-20T14:00:00+01:00";\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf object-id-ref {\r
+      type leafref {\r
+        path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";\r
+        require-instance false;\r
+      }\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  notification attribute-value-changed-notification {\r
+    uses attribute-value-changed-notification;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping attribute-value-changed-notification {\r
+    leaf counter {\r
+      type int64;\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Counts attribute value changed notifications.";\r
+    }\r
+    leaf timestamp {\r
+      type yang:date-and-time;\r
+      default "2010-11-20T14:00:00+01:00";\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf object-id-ref {\r
+      type leafref {\r
+        path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";\r
+        require-instance false;\r
+      }\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf attribute-name {\r
+      type string;\r
+      default "Attribute name not specified.";\r
+      config false;\r
+      description\r
+        "Name of the attribute that has been changed.";\r
+    }\r
+    leaf new-value {\r
+      type string;\r
+      default "New value not specified.";\r
+      config false;\r
+      description\r
+        "Attribute value converted to a string (xml, json, ...)";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  notification problem-notification {\r
+    uses problem-notification;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping problem-notification {\r
+    leaf counter {\r
+      type int64;\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Counts problem notifications";\r
+    }\r
+    leaf timestamp {\r
+      type yang:date-and-time;\r
+      default "2010-11-20T14:00:00+01:00";\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf object-id-ref {\r
+      type leafref {\r
+        path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";\r
+        require-instance false;\r
+      }\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf problem {\r
+      type string;\r
+      default "Problem name not specified.";\r
+      config false;\r
+      description\r
+        "Name of the problem according to supportedAlarmList";\r
+    }\r
+    leaf severity {\r
+      type severity-type;\r
+      default "SEVERITY_TYPE_WARNING";\r
+      config false;\r
+      description\r
+        "Severity of the problem according to problemKindSeverity";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  /****************************************\r
+   * grouping statements for object classes\r
+   **************************************/ \r
+  /****************************************\r
+   * package super-classes\r
+   **************************************/ \r
+\r
+  grouping current-problem {\r
+    leaf sequence-number {\r
+      type int16;\r
+      config false;\r
+      description\r
+        "Unique sequence number of the current problem object.";\r
+    }\r
+    leaf timestamp {\r
+      type yang:date-and-time;\r
+      default "2010-11-20T14:00:00+01:00";\r
+      config false;\r
+      description\r
+        "Time when the alarm was raised.";\r
+    }\r
+    leaf problem-severity {\r
+      type severity-type;\r
+      default "SEVERITY_TYPE_NOT_YET_DEFINED";\r
+      config false;\r
+      description\r
+        "Severity of the alarm.";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping current-performance {\r
+    leaf timestamp {\r
+      type yang:date-and-time;\r
+      default "2010-11-20T14:00:00+01:00";\r
+      config false;\r
+      description\r
+        "The timestamp associated with when the current data was collected.";\r
+    }\r
+    leaf suspect-interval-flag {\r
+      type boolean;\r
+      default "false";\r
+      config false;\r
+      description\r
+        "This attribute is used to indicate that the performance data for the current period may not be reliable. Some reasons for this to occur are:\r
+            – Suspect data were detected by the actual resource doing data collection.\r
+            – Transition of the administrativeState attribute to/from the 'lock' state.\r
+            – Transition of the operationalState to/from the 'disabled' state.\r
+            – Scheduler setting that inhibits the collection function.\r
+            – The performance counters were reset during the interval.\r
+            – The currentData (or subclass) object instance was created during the monitoring period.";\r
+    }\r
+    leaf elapsed-time {\r
+      type int64;\r
+      units "s";\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Number of seconds that elapsed since the last reset of the counter.";\r
+    }\r
+    leaf scanner-id {\r
+      type string;\r
+      default "Scanner ID not defined.";\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf granularity-period {\r
+      type granularity-period-type;\r
+      config false;\r
+      description\r
+        "Time period between reset of the underlying counter.";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping historical-performance {\r
+    leaf suspect-interval-flag {\r
+      type boolean;\r
+      default "false";\r
+      config false;\r
+      description\r
+        "This attribute indicates that the data collected during the interval is suspect.";\r
+    }\r
+    leaf history-data-id {\r
+      type string;\r
+      default "History Data ID not defined.";\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    leaf granularity-period {\r
+      type granularity-period-type;\r
+      config false;\r
+      description\r
+        "Time period between reset of the underlying counter.";\r
+    }\r
+    leaf period-end-time {\r
+      type yang:date-and-time;\r
+      config false;\r
+      description\r
+        "Time when the counter values have been recorded and the counter reset.";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping tdm-container-lp-spec {\r
+    container tdm-container-pac {\r
+      uses tdm-container-pac;\r
+      description\r
+        "none";\r
+    }\r
+    description\r
+      "The TdmContainerLpSpec and its attached classes MUST be provided on management interfaces of microwave devices, which are transporting TDM traffic.";\r
+  }\r
+\r
+  grouping tdm-container-pac {\r
+    container tdm-container-capability {\r
+      config false;\r
+      uses tdm-container-capability;\r
+      description\r
+        "none";\r
+    }\r
+    container tdm-container-configuration {\r
+      uses tdm-container-configuration;\r
+      description\r
+        "none";\r
+    }\r
+    container tdm-container-status {\r
+      config false;\r
+      uses tdm-container-status;\r
+      description\r
+        "none";\r
+    }\r
+    container tdm-container-current-problems {\r
+      config false;\r
+      uses tdm-container-current-problems;\r
+      description\r
+        "none";\r
+    }\r
+    container tdm-container-current-performance {\r
+      config false;\r
+      uses tdm-container-current-performance;\r
+      description\r
+        "none";\r
+    }\r
+    container tdm-container-historical-performances {\r
+      config false;\r
+      uses tdm-container-historical-performances;\r
+      description\r
+        "none";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping tdm-container-capability {\r
+    list supported-tdm-container-kind-list {\r
+      key "tdm-container-name";\r
+      config false;\r
+      min-elements 1;\r
+      uses tdm-container-kind;\r
+      description\r
+        "Lists the TDM containers that are supported.";\r
+    }\r
+    leaf admin-shut-down-is-avail {\r
+      type boolean;\r
+      default "false";\r
+      config false;\r
+      description\r
+        "1 = Manual switching on and off of the interface without deleting it (underlying OSI network layers are also not affected) is available.";\r
+    }\r
+    leaf-list supported-loop-back-kind-list {\r
+      type loop-back-type;\r
+      config false;\r
+      min-elements 1;\r
+      max-elements 3;\r
+      description\r
+        "List of supported kinds of looping back.";\r
+    }\r
+    leaf maintenance-timer-range {\r
+      type string;\r
+      default "Range of the maintenance timer not yet defined.";\r
+      config false;\r
+      description\r
+        "Available time periods for maintenance configurations to be described. Concrete values shall be separated by commas (e.g. '10, 60, 360'). Ranges shall be expressed as two values separated by a minus (e.g. '10-360').";\r
+    }\r
+    leaf-list supported-alarm-list {\r
+      type string;\r
+      config false;\r
+      min-elements 2;\r
+      description\r
+        "Available alarms to be listed. Mandatory:'framingIsFaulty' and 'containerIsDown'. Further alarms might be added by the vendor.";\r
+    }\r
+    leaf performance-monitoring-is-avail {\r
+      type boolean;\r
+      default "false";\r
+      config false;\r
+      description\r
+        "1 = Collection and aggregation of performance values is available.";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping tdm-container-configuration {\r
+    leaf interface-name {\r
+      type string;\r
+      default "Interface name not yet defined.";\r
+      description\r
+        "Description of the interface, could be a name, could be a number. Free text field to be filled by the operator.";\r
+    }\r
+    leaf interface-is-on {\r
+      type boolean;\r
+      default "false";\r
+      description\r
+        "Only relevant if (adminShutDownIsAvail==1). 1 = Activation of the interface. 0 = De-activation of the interface without deleting it (underlying OSI network layers are not affected).";\r
+    }\r
+    leaf tdm-container-kind {\r
+      type leafref {\r
+        path "/core-model:control-construct/core-model:logical-termination-point/core-model:layer-protocol/tdm-container:tdm-container-pac/tdm-container:tdm-container-capability/tdm-container:supported-tdm-container-kind-list/tdm-container:tdm-container-name";\r
+        require-instance false;\r
+      }\r
+      must 'boolean(/core-model:control-construct/core-model:logical-termination-point/core-model:layer-protocol/tdm-container:tdm-container-pac/tdm-container:tdm-container-capability/tdm-container:supported-tdm-container-kind-list[tdm-container-name=current()])';\r
+      description\r
+        "Type of TDM container.";\r
+    }\r
+    leaf segment-number {\r
+      type int16;\r
+      default "-1";\r
+      description\r
+        "Serving TDM structure is identified by LogicalTerminationPoint::_serverLtpRefList (Multiplicity = 1; One segment per TDM container). Serving Segment is identified by segmentID attribute. Type of segment must match type of container.";\r
+    }\r
+    leaf loop-back-kind-on {\r
+      type loop-back-type;\r
+      default "LOOP_BACK_TYPE_NOT_YET_DEFINED";\r
+      description\r
+        "Maintenance Feature. Configuration of a loop back of TDM time slots on this interface.";\r
+    }\r
+    leaf maintenance-timer {\r
+      type int32;\r
+      units "s";\r
+      default "-1";\r
+      description\r
+        "Time of existence of any maintenance configuration. 0 = maintenance timer is switched off. Valid values are defined in *Capability::maintenanceTimerRange.";\r
+    }\r
+    list problem-kind-severity-list {\r
+      key "problem-kind-name";\r
+      min-elements 2;\r
+      uses problem-kind-severity-type;\r
+      description\r
+        "Severity of the problem to be configured.";\r
+    }\r
+    leaf performance-monitoring-is-on {\r
+      type boolean;\r
+      default "false";\r
+      description\r
+        "Enables measurement, collection, storage and access to performance data.";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping tdm-container-status {\r
+    leaf interface-status {\r
+      type interface-status-type;\r
+      default "INTERFACE_STATUS_TYPE_NOT_YET_DEFINED";\r
+      config false;\r
+      description\r
+        "Operational status of the interface.";\r
+    }\r
+    leaf loop-back-kind-up {\r
+      type loop-back-type;\r
+      default "LOOP_BACK_TYPE_NOT_YET_DEFINED";\r
+      config false;\r
+      description\r
+        "The currently active (not just configured) type of loop back.";\r
+    }\r
+    leaf statistics-is-up {\r
+      type boolean;\r
+      default "false";\r
+      config false;\r
+      description\r
+        "1 = Statistics are currently collected and aggregated.";\r
+    }\r
+    leaf performance-monitoring-is-up {\r
+      type boolean;\r
+      default "false";\r
+      config false;\r
+      description\r
+        "1 = Performance values are currently collected and aggregated.";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping tdm-container-current-problems {\r
+    list current-problem-list {\r
+      key "sequence-number";\r
+      config false;\r
+      uses container-current-problem-type;\r
+      description\r
+        "none";\r
+    }\r
+    leaf number-of-current-problems {\r
+      type int8;\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Number of alarms, which are currently active on this interface.";\r
+    }\r
+    leaf time-of-latest-change {\r
+      type yang:date-and-time;\r
+      default "2010-11-20T14:00:00+01:00";\r
+      config false;\r
+      description\r
+        "Date and time when the list of alarms has been changed for the last time.";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping tdm-container-current-performance {\r
+    list current-performance-data-list {\r
+      key "granularity-period";\r
+      config false;\r
+      min-elements 1;\r
+      max-elements 2;\r
+      uses container-current-performance-type;\r
+      description\r
+        "At least values of the counters, which are reset every 15 minutes, are to be provided. If available, the current values of the counters, which are reset every 24 hour, can be provided, too.";\r
+    }\r
+    leaf number-of-current-performance-sets {\r
+      type int8;\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Number of sets of current performance values, which are provided in the list.";\r
+    }\r
+    description\r
+      "Aggregated performance information of the TDM container at a particular moment.";\r
+  }\r
+\r
+  grouping tdm-container-historical-performances {\r
+    list historical-performance-data-list {\r
+      key "granularity-period period-end-time";\r
+      config false;\r
+      uses container-historical-performance-type;\r
+      description\r
+        "none";\r
+    }\r
+    leaf number-of-historical-performance-sets {\r
+      type int16;\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Number of sets of historical performance values, which are provided in the list.";\r
+    }\r
+    leaf time-of-latest-change {\r
+      type yang:date-and-time;\r
+      default "2010-11-20T14:00:00+01:00";\r
+      config false;\r
+      description\r
+        "Date and time when the list of sets of historical performance values has been changed for the last time (e.g. new one added or existing one deleted).";\r
+    }\r
+    description\r
+      "Aggregated performance information of the TDM container for a pre-defined measurement interval.";\r
+  }\r
+\r
+  grouping tdm-container-kind {\r
+    leaf tdm-container-name {\r
+      type string;\r
+      config false;\r
+      description\r
+        "Names to be chosen from the following list: 'e1','t1','j1','e3','t3','stm1','cpri1','cpri2','cpri3','cpri4','cpri5','cpri6' or 'cpri7'";\r
+    }\r
+    leaf tdm-container-size {\r
+      type int32;\r
+      units "kbit/s";\r
+      default "-1";\r
+      config false;\r
+      description\r
+        "Capacity required for transporting this type of container (in kbit/s). Values to be chosen from the following list: '2048','1544','34000','44736 ','155520','614400','1228800','2457600','3072000','4915200','6144000' or '9830400;";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  /****************************************\r
+   * typedef statements\r
+   **************************************/ \r
+\r
+  typedef loop-back-type {\r
+    type identityref {\r
+      base LOOP_BACK_TYPE;\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  typedef container-performance-type {\r
+    type string;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  /*********************************************\r
+   * grouping statements for complex data types\r
+   *******************************************/ \r
+\r
+  identity LOOP_BACK_TYPE {\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity LOOP_BACK_TYPE_NONE {\r
+    base LOOP_BACK_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity LOOP_BACK_TYPE_BACK_TO_LOCAL {\r
+    base LOOP_BACK_TYPE;\r
+    description\r
+      "Returning the TDM time slots of the local site on the outgoing interface back to the local site.";\r
+  }\r
+\r
+  identity LOOP_BACK_TYPE_BACK_TO_REMOTE {\r
+    base LOOP_BACK_TYPE;\r
+    description\r
+      "Returning the incoming TDM time slots back to the remote site.";\r
+  }\r
+\r
+  identity LOOP_BACK_TYPE_NOT_YET_DEFINED {\r
+    base LOOP_BACK_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity GRANULARITY_PERIOD_TYPE {\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity GRANULARITY_PERIOD_TYPE_UNKNOWN {\r
+    base GRANULARITY_PERIOD_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity GRANULARITY_PERIOD_TYPE_PERIOD-15-MIN {\r
+    base GRANULARITY_PERIOD_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity GRANULARITY_PERIOD_TYPE_PERIOD-24-HOURS {\r
+    base GRANULARITY_PERIOD_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity GRANULARITY_PERIOD_TYPE_NOT_YET_DEFINED {\r
+    base GRANULARITY_PERIOD_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity SEVERITY_TYPE {\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity SEVERITY_TYPE_NON_ALARMED {\r
+    base SEVERITY_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity SEVERITY_TYPE_WARNING {\r
+    base SEVERITY_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity SEVERITY_TYPE_MINOR {\r
+    base SEVERITY_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity SEVERITY_TYPE_MAJOR {\r
+    base SEVERITY_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity SEVERITY_TYPE_CRITICAL {\r
+    base SEVERITY_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity SEVERITY_TYPE_NOT_YET_DEFINED {\r
+    base SEVERITY_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE {\r
+    description\r
+      "none";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_UP {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "Ready to pass packets.";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_DOWN {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "The interface does not pass any packets.";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_TESTING {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "In some test mode.  No operational packets can be passed.";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_UNKNOWN {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "Status cannot be determined for some reason.";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_DORMANT {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "Waiting for some external event.";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_NOT_PRESENT {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "Some component (typically hardware) is missing.";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_LOWER_LAYER_DOWN {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "Down due to state of lower-layer interface(s).";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_ADMIN_DOWN {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "Down due to configuration.";\r
+  }\r
+\r
+  identity INTERFACE_STATUS_TYPE_NOT_YET_DEFINED {\r
+    base INTERFACE_STATUS_TYPE;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  /****************************************\r
+   * package super-types\r
+   **************************************/ \r
+\r
+  typedef granularity-period-type {\r
+    type identityref {\r
+      base GRANULARITY_PERIOD_TYPE;\r
+    }\r
+    description\r
+      "The enumeration with the options for granularity period of the performance data.";\r
+  }\r
+\r
+  typedef severity-type {\r
+    type identityref {\r
+      base SEVERITY_TYPE;\r
+    }\r
+    description\r
+      "According to ITU-T M.3160";\r
+  }\r
+\r
+  typedef interface-status-type {\r
+    type identityref {\r
+      base INTERFACE_STATUS_TYPE;\r
+    }\r
+    description\r
+      "Current Interface Status";\r
+  }\r
+\r
+  grouping problem-kind-severity-type {\r
+    leaf problem-kind-name {\r
+      type string;\r
+      description\r
+        "Name of the alarm according to supportedAlarmList";\r
+    }\r
+    leaf problem-kind-severity {\r
+      type severity-type;\r
+      default "SEVERITY_TYPE_NOT_YET_DEFINED";\r
+      description\r
+        "Severity of this type of alarm.";\r
+    }\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping container-current-problem-type {\r
+    leaf problem-name {\r
+      type string;\r
+      default "Problem name not specified.";\r
+      config false;\r
+      description\r
+        "Name of the alarm according to Container::ContainerCapability::supportedAlarms";\r
+    }\r
+    uses current-problem;\r
+    description\r
+      "none";\r
+  }\r
+\r
+  grouping container-current-performance-type {\r
+    leaf performance-data {\r
+      type container-performance-type;\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    uses current-performance;\r
+    description\r
+      "Turns performance information into current performance information by inheriting from OTN_CurrentData.";\r
+  }\r
+\r
+  grouping container-historical-performance-type {\r
+    leaf performance-data {\r
+      type container-performance-type;\r
+      config false;\r
+      description\r
+        "none";\r
+    }\r
+    uses historical-performance;\r
+    description\r
+      "Turns performance information into historical performance information by inheriting from OTN_HistoryData.";\r
+  }\r
+}\r