Add TAPI Topology simulated network function type. 88/6888/1
authorAlex Stancu <alexandru.stancu@highstreet-technologies.com>
Tue, 19 Oct 2021 12:04:59 +0000 (15:04 +0300)
committerAlex Stancu <alexandru.stancu@highstreet-technologies.com>
Tue, 19 Oct 2021 12:06:43 +0000 (15:06 +0300)
Issue-ID: SIM-81
Change-Id: I475311b789b8ac7599e9604af7b3e467b3f322f3
Signed-off-by: Alex Stancu <alexandru.stancu@highstreet-technologies.com>
21 files changed:
ntsimulator/deploy/smo-nts-ng-topology-server/Dockerfile [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/config.json [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/container-tag.yaml [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/data/README.md [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/local.Dockerfile [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/iana-hardware.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/o-ran-common-identity-refs.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/o-ran-topology.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-common@2020-04-23.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-connectivity@2020-06-16.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-dsr@2020-04-23.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-equipment@2020-04-23.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-eth@2020-04-23.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-notification@2020-06-16.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-oam@2020-04-23.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-odu@2020-04-23.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-path-computation@2020-04-23.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-photonic-media@2020-06-16.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-streaming@2020-06-16.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-topology@2020-04-23.yang [new file with mode: 0644]
ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-virtual-network@2020-06-16.yang [new file with mode: 0644]

diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/Dockerfile b/ntsimulator/deploy/smo-nts-ng-topology-server/Dockerfile
new file mode 100644 (file)
index 0000000..14a94c5
--- /dev/null
@@ -0,0 +1,43 @@
+#
+# Copyright 2020 highstreet technologies GmbH and others
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+################
+#### DEVICE ####
+################
+
+FROM nexus3.o-ran-sc.org:10004/o-ran-sc/nts-ng-base:latest
+LABEL maintainer="alexandru.stancu@highstreet-technologies.com / adrian.lita@highstreet-technologies.com"
+
+# ntsim-ng configuration and deployment
+COPY ./yang /opt/dev/deploy/yang
+COPY ./data /opt/dev/deploy/data
+COPY ./config.json /opt/dev/ntsim-ng/config/config.json
+
+# ntsim-ng init docker
+RUN /opt/dev/ntsim-ng/ntsim-ng --container-init -w /opt/dev/ntsim-ng
+
+# finishing container build
+ARG BUILD_DATE
+LABEL build-date=$BUILD_DATE
+
+# add exposed ports
+EXPOSE 830-929
+EXPOSE 21-22
+
+ENV NTS_FUNCTION_TYPE=NTS_FUNCTION_TYPE_TOPOLOGY_SERVER
+
+# run
+WORKDIR /opt/dev/workspace
+CMD ["/opt/dev/ntsim-ng/ntsim-ng", "-w/opt/dev/ntsim-ng", "--supervisor"]
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/config.json b/ntsimulator/deploy/smo-nts-ng-topology-server/config.json
new file mode 100644 (file)
index 0000000..6a8587e
--- /dev/null
@@ -0,0 +1,65 @@
+{
+    "container-rules": {
+        "excluded-modules": [
+            "tapi-connectivity",
+            "tapi-equipment",
+            "tapi-eth",
+            "tapi-notification",
+            "tapi-oam",
+            "tapi-odu",
+            "tapi-path-computation",
+            "tapi-photonic-media",
+            "tapi-streaming",
+            "tapi-virtual-network"
+        ],
+        "excluded-features": []
+    },
+
+    "supervisor-rules": {
+        "netopeer": {
+            "path": "/usr/local/bin/netopeer2-server",
+            "args": ["-d", "-v2"],
+            "autorestart": true,
+            "stdout": "log/netopeer-stdout.log",
+            "stderr": "log/netopeer-stderr.log"
+        },
+
+        "ntsim-network-function": {
+            "path": "/opt/dev/ntsim-ng/ntsim-ng",
+            "args": ["-w/opt/dev/ntsim-ng", "-f"],
+            "nomanual": false
+        }
+    },
+
+    "datastore-random-generation-rules" : {
+        "excluded-modules": [
+            "sysrepo",
+            "sysrepo-monitoring",
+            "ietf-yang-library",
+            "ietf-netconf-acm",
+            "ietf-netconf-monitoring",
+            "nc-notifications",
+            "ietf-keystore",
+            "ietf-truststore",
+            "ietf-system",
+            "ietf-netconf-server",
+            "nts-network-function"
+        ],
+
+        "debug-max-string-size" : 50,
+        
+        "default-list-instances": 1,
+        "custom-list-instances" : []
+    },
+
+    "datastore-populate-rules": {
+        "random-generation-enabled": false,
+
+        "pre-generated-operational-data": [
+            
+        ],
+        "pre-generated-running-data": [
+            
+        ]
+    }
+}
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/container-tag.yaml b/ntsimulator/deploy/smo-nts-ng-topology-server/container-tag.yaml
new file mode 100644 (file)
index 0000000..05ecadb
--- /dev/null
@@ -0,0 +1,2 @@
+---
+tag: 1.3.6
\ No newline at end of file
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/data/README.md b/ntsimulator/deploy/smo-nts-ng-topology-server/data/README.md
new file mode 100644 (file)
index 0000000..7b501f4
--- /dev/null
@@ -0,0 +1,2 @@
+This folder should contain XML/JSON data for pre-populating running/operational.
+Data files by themselves are not taken into account until added to config.json
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/local.Dockerfile b/ntsimulator/deploy/smo-nts-ng-topology-server/local.Dockerfile
new file mode 100644 (file)
index 0000000..ca9257c
--- /dev/null
@@ -0,0 +1,43 @@
+#
+# Copyright 2020 highstreet technologies GmbH and others
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+################
+#### DEVICE ####
+################
+
+FROM o-ran-sc/nts-ng-base:latest
+LABEL maintainer="alexandru.stancu@highstreet-technologies.com / adrian.lita@highstreet-technologies.com"
+
+# ntsim-ng configuration and deployment
+COPY ./yang /opt/dev/deploy/yang
+COPY ./data /opt/dev/deploy/data
+COPY ./config.json /opt/dev/ntsim-ng/config/config.json
+
+# ntsim-ng init docker
+RUN /opt/dev/ntsim-ng/ntsim-ng --container-init -w /opt/dev/ntsim-ng
+
+# finishing container build
+ARG BUILD_DATE
+LABEL build-date=$BUILD_DATE
+
+# add exposed ports
+EXPOSE 830-929
+EXPOSE 21-22
+
+ENV NTS_FUNCTION_TYPE=NTS_FUNCTION_TYPE_TOPOLOGY_SERVER
+
+# run
+WORKDIR /opt/dev/workspace
+CMD ["/opt/dev/ntsim-ng/ntsim-ng", "-w/opt/dev/ntsim-ng", "--supervisor"]
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/iana-hardware.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/iana-hardware.yang
new file mode 100644 (file)
index 0000000..52bcaf3
--- /dev/null
@@ -0,0 +1,180 @@
+module iana-hardware {
+yang-version 1.1;
+namespace "urn:ietf:params:xml:ns:yang:iana-hardware";
+prefix ianahw;
+
+organization "IANA";
+contact
+  "        Internet Assigned Numbers Authority
+   Postal: ICANN
+           12025 Waterfront Drive, Suite 300
+           Los Angeles, CA  90094-2536
+           United States of America
+   Tel:    +1 310 301 5800
+   E-Mail: iana@iana.org>";
+
+description
+  "IANA-defined identities for hardware class.
+   The latest revision of this YANG module can be obtained from
+   the IANA website.
+   Requests for new values should be made to IANA via
+   email (iana@iana.org).
+   Copyright (c) 2018 IETF Trust and the persons identified as
+   authors of the code.  All rights reserved.
+   Redistribution and use in source and binary forms, with or
+   without modification, is permitted pursuant to, and subject
+   to the license terms contained in, the Simplified BSD License
+   set forth in Section 4.c of the IETF Trust's Legal Provisions
+   Relating to IETF Documents
+   (https://trustee.ietf.org/license-info).
+   The initial version of this YANG module is part of RFC 8348;
+   see the RFC itself for full legal notices.";
+reference
+  "https://www.iana.org/assignments/yang-parameters";
+
+revision 2018-03-13 {
+  description
+    "Initial revision.";
+  reference
+    "RFC 8348: A YANG Data Model for Hardware Management";
+}
+
+/*
+ * Identities
+ */
+
+identity hardware-class {
+  description
+    "This identity is the base for all hardware class
+     identifiers.";
+}
+
+identity unknown {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is unknown
+     to the server.";
+}
+
+identity chassis {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is an
+     overall container for networking equipment.  Any class of
+     physical component, except a stack, may be contained within a
+     chassis; a chassis may only be contained within a stack.";
+}
+
+identity backplane {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of device for aggregating and forwarding networking traffic,
+     such as a shared backplane in a modular ethernet switch.  Note
+     that an implementation may model a backplane as a single
+     physical component, which is actually implemented as multiple
+     discrete physical components (within a chassis or stack).";
+}
+
+identity container {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is capable
+     of containing one or more removable physical entities,
+     possibly of different types.  For example, each (empty or
+     full) slot in a chassis will be modeled as a container.  Note
+     that all removable physical components should be modeled
+     within a container component, such as field-replaceable
+     modules, fans, or power supplies.  Note that all known
+     containers should be modeled by the agent, including empty
+     containers.";
+}
+
+identity power-supply {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is a
+     power-supplying component.";
+}
+
+identity fan {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is a fan or
+     other heat-reduction component.";
+}
+
+identity sensor {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of sensor, such as a temperature sensor within a router
+     chassis.";
+}
+
+identity module {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of self-contained sub-system.  If a module component is
+     removable, then it should be modeled within a container
+     component; otherwise, it should be modeled directly within
+     another physical component (e.g., a chassis or another
+     module).";
+}
+
+identity port {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of networking port capable of receiving and/or transmitting
+     networking traffic.";
+}
+
+identity stack {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of super-container (possibly virtual) intended to group
+     together multiple chassis entities.  A stack may be realized
+     by a virtual cable, a real interconnect cable attached to
+     multiple chassis, or multiple interconnect cables.  A stack
+     should not be modeled within any other physical components,
+     but a stack may be contained within another stack.  Only
+     chassis components should be contained within a stack.";
+}
+
+identity cpu {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of central processing unit.";
+}
+
+identity energy-object {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of energy object, i.e., it is a piece of equipment that is
+     part of or attached to a communications network that is
+     monitored, it is controlled, or it aids in the management of
+     another device for Energy Management.";
+}
+
+identity battery {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of battery.";
+}
+
+identity storage-drive {
+  base ianahw:hardware-class;
+  description
+    "This identity is applicable if the hardware class is some sort
+     of component with data storage capability as its main
+     functionality, e.g., hard disk drive (HDD), solid-state device
+     (SSD), solid-state hybrid drive (SSHD), object storage device
+     (OSD), or other.";
+}
+}
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/o-ran-common-identity-refs.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/o-ran-common-identity-refs.yang
new file mode 100644 (file)
index 0000000..85c3a6c
--- /dev/null
@@ -0,0 +1,312 @@
+module o-ran-common-identity-refs {
+  yang-version 1.1;
+  namespace "urn:o-ran:wg1identityref:1.0";
+  prefix o-ran-iref;
+
+  import iana-hardware {
+    prefix ianahw;
+  }
+
+  organization
+    "O-RAN Alliance";
+  contact
+    "www.o-ran.org";
+  description
+    "This module defines a set of re-usable identity references, that can be
+     re-used across O-RAN working groups.
+
+     Copyright 2021 the O-RAN Alliance.
+
+     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
+     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+     ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+     LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+     INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+     POSSIBILITY OF SUCH DAMAGE.
+
+     Redistribution and use in source and binary forms, with or without
+     modification, are permitted provided that the following conditions are met:
+
+     * Redistributions of source code must retain the above copyright notice,
+     this list of conditions and the above disclaimer.
+     * Redistributions in binary form must reproduce the above copyright notice,
+     this list of conditions and the above disclaimer in the documentation
+     and/or other materials provided with the distribution.
+     * Neither the Members of the O-RAN Alliance nor the names of its
+     contributors may be used to endorse or promote products derived from
+     this software without specific prior written permission.";
+
+  revision 2021-10-12 {
+    description
+      "O-RAN SC: added SMO and UE functions";
+    reference
+      "O-RAN SC SIM project.";
+  }
+
+  revision 2021-07-16 {
+    description
+      "version 1.0.1
+
+       1) Updates according to change requests:
+         CR#xyz
+         CR#xyz";
+    reference
+      "O-RAN-WG2.IM.0-v02.00";
+  }
+  revision 2020-11-01 {
+    description
+      "version 1.0.0
+
+       1) initial version.";
+    reference
+      "ORAN-WG1.IM.0-v01.00";
+  }
+
+  // O-RAN functional identity types
+
+  identity o-ran-function-base {
+    description
+      "Base identity from which all O-RAN defined functions are derived.
+       This identity is abstract and MUST NOT be used as a value.";
+    reference
+      "O-RAN.WG1.O-RAN-Architecture-Description
+       Chapter: 1.3.1  Definitions";
+  }
+
+  identity o-ru-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an O-RAN Radio Unit Function.";
+  }
+
+  identity o-du-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an O-RAN Distributed Unit Function.";
+  }
+
+  identity o-cu-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to all O-RAN Central Unit Functions.
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  identity o-cu-up-function {
+    base o-cu-function;
+    description
+      "An identity corresponding to an O-RAN Central Unit User Plane Function.";
+  }
+
+  identity o-cu-cp-function {
+    base o-cu-function;
+    description
+      "An identity corresponding to an O-RAN Central Unit Control Plane 
+       Function.";
+  }
+
+  identity o-enb-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an O-RAN E-UTRAN Node B Function.
+       E-UTRAN: evolved UMTS Terrestrial Radio Access";
+  }
+
+  identity near-rt-ric-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an O-RAN Near real-time RAN intelligent
+       controller Function.";
+  }
+
+  identity user-equipment-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an UE Function.";
+  }
+  
+  identity smo-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an O-RAN SMO Function.";
+  }
+
+  identity managed-application-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an O-RAN managed application function
+       (also called 'xApp').";
+  }
+
+  // TODO to be aligned with OAM Architecture
+  //      2021-07-21: email to Lyndon send - CR required 
+
+  identity fronthaul-gateway-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an O-RAN Fronthaul Gateway Function.";
+  }
+
+  identity fronthaul-multiplexer-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an O-RAN Fronthaul Multiplexer Function.";
+  }
+  
+  identity transport-node-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to a Transport Node Function 
+       (such as  Transponders, Muxponders, ROADM, Wavelength Selected Switch, 
+       Optical Amplifier, Optical Terminal, Optical Repeater, Optical Filter, 
+       Optical Multiplexer, Microwave Terminal, Carrier Ethernet Routers, ... .";
+  }
+
+  identity o-cloud-ims-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to an Infrastructure Management Service 
+       Function.";
+  }
+
+  identity o-cloud-dms-function {
+    base o-ran-function-base;
+    description
+      "An identity corresponding to a Deployment Management Service Function.";
+  }
+
+  // O-RAN radio technology identity types
+
+  identity o-ran-radio-technology-base {
+    description
+      "Base identity for O-RAN defined radio technology types.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  identity new-radio-technology {
+    base o-ran-radio-technology-base;
+    description
+      "An identity corresponding to new radio technology.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  identity lte-technology {
+    base o-ran-radio-technology-base;
+    description
+      "An identity corresponding to lte technology.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  identity nb-iot {
+    base lte-technology;
+    description
+      "An identity corresponding to nb-iot technology.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  // O-RAN Transport technology identity types
+
+  identity o-ran-transport-technology-base {
+    description
+      "Base identity from which all O-RAN defined transport technology identities are derived.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  // O-RAN Fronthaul transport identity types
+
+  identity o-ran-fronthaul-transport-base {
+    description
+      "Base identity from which all O-RAN defined fronthaul transports are derived.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  identity ethernet-fronthaul-transport {
+    base o-ran-fronthaul-transport-base;
+    description
+      "an identity corresponding to fronthaul transport using ethernet based flows.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  // Hardware component identity types
+
+  identity o-ran-module {
+    base ianahw:module;
+    description
+      "Any O-RAN module that represents a self-contained sub-system.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  identity o-ran-hardware-class {
+    base ianahw:hardware-class;
+    description
+      "This identity corresponding to a generic O-RAN hardware class.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  identity fpga {
+    base o-ran-hardware-class;
+    description
+      "Represent an FPGA.
+
+       This identity is abstract and MUST NOT be used as a value.";
+  }
+
+  // O-RAN management interface identifiers
+
+  identity management-interface-id {
+    description
+      "Base identity for entity types. A unique identification of the
+       management interface.
+       This identity is abstract and MUST NOT be used for entries.";
+  }
+
+  identity o1 {
+    base management-interface-id;
+    description
+      "An identity for the operation and maintenance management interface
+       for network functions as defined by the O-RAN-Alliance WG10 as extension
+       to 3GPP NG NRM.";
+    reference
+      "O-RAN OAM Interface Specification by WG10";
+  }
+
+  identity o2 {
+    base management-interface-id;
+    description
+      "An identity for the operation and maintenance management interface
+       for a cloud infrastructure service and a could deployment service
+       (O-Cloud) as defined by O-RAN-Alliance WG 6.";
+    reference
+      "O-RAN xxx by WG6
+       TODO update!";
+  }
+
+  identity open-fronthaul-management-plane {
+    base management-interface-id;
+    description
+      "An identity for the operation and maintenance management interface for
+       O-RU functions as defined by O-RAN-Alliance WG 4.";
+    reference
+      "O-RAN Management Plane Specification by WG4";
+  }
+
+  identity transport-management-interface {
+    base management-interface-id;
+    description
+      "An identity for a yang based management interface for transport nodes.";
+  }
+}
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/o-ran-topology.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/o-ran-topology.yang
new file mode 100644 (file)
index 0000000..ec3512b
--- /dev/null
@@ -0,0 +1,90 @@
+module o-ran-topology {
+  yang-version 1.1;
+  namespace "urn:o-ran-common:topology:1.0";
+  prefix o-ran-topo;
+
+  import tapi-common {
+    prefix tapi-common;
+  }
+  import tapi-topology {
+    prefix tapi-topology;
+  }
+  import o-ran-common-identity-refs {
+    prefix o-ran-common;
+  }
+
+  organization
+    "O-RAN Alliance";
+  contact
+    "www.o-ran.org";
+  description
+    "This module contains YANG definitions for the O-RAN Topology augmentation of TAPI Topology.";
+
+  revision 2021-08-06 {
+    description
+      "Initial revision";
+    reference
+      "O-RAN";
+  }
+
+  typedef geographic-coordinate-degree {
+    type decimal64 {
+      fraction-digits 8;
+    }
+    description
+      "Decimal degree (DD) used to express latitude and longitude
+       geographic coordinates.
+       Copied from ietf-te-topology@2020-08-06.yang";
+  }
+
+  // geographic-coordinate-degree
+
+  grouping geolocation-container {
+    description
+      "Contains a GPS location.
+       Copied from ietf-te-topology@2020-08-06.yang";
+    container geolocation {
+      description
+        "Contains a GPS location.";
+      leaf altitude {
+        type int64;
+        units "millimeters";
+        description
+          "Distance above sea level.";
+      }
+      leaf latitude {
+        type geographic-coordinate-degree {
+          range "-90..90";
+        }
+        description
+          "Relative position north or south on the Earth's surface.";
+      }
+      leaf longitude {
+        type geographic-coordinate-degree {
+          range "-180..180";
+        }
+        description
+          "Angular distance east or west on the Earth's surface.";
+      }
+    }
+    // geolocation
+  }
+
+  augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node" {
+    description
+      "Augments the TAPI Topology node Context with geolocation information.";
+    uses geolocation-container;
+  }
+
+  augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node" {
+    description
+      "Augments the TAPI Topology node Context with the network function type";
+    leaf function {
+      type identityref {
+        base o-ran-common:o-ran-function-base;
+      }
+      description
+        "The type of the Network Function.";
+    }
+  }
+}
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-common@2020-04-23.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-common@2020-04-23.yang
new file mode 100644 (file)
index 0000000..f0cf183
--- /dev/null
@@ -0,0 +1,706 @@
+module tapi-common {\r
+    namespace "urn:onf:otcc:yang:tapi-common";\r
+    prefix tapi-common;\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://wiki.opennetworking.org/display/OTCC/TAPI>\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzin <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Common Model definitions.\r
+        Source: TapiCommon.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+        <https://github.com/OpenNetworkingFoundation/EagleUmlYang>\r
+        and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+        <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+        As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+        The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.\r
+        YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0.";\r
+    revision 2020-04-23 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";\r
+    }\r
+   /**************************\r
+    * definitions of refrences\r
+    **************************/\r
+    grouping service-interface-point-ref {\r
+        leaf service-interface-point-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-common:service-interface-point/tapi-common:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping admin-state-pac {\r
+        leaf administrative-state {\r
+            type administrative-state;\r
+            description "none";\r
+        }\r
+        leaf operational-state {\r
+            type operational-state;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf lifecycle-state {\r
+            type lifecycle-state;\r
+            config false;\r
+            description "none";\r
+        }\r
+        description "Provides state attributes that are applicable to an entity that can be administered. Such an entity also has operational and lifecycle aspects.";\r
+    }\r
+    grouping global-class {\r
+        leaf uuid {\r
+            type uuid;\r
+            description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable. An UUID carries no semantics with respect to the purpose or state of the entity.\r
+                UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.\r
+                Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} \r
+                Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";\r
+        }\r
+        list name {\r
+            key 'value-name';\r
+            uses name-and-value;\r
+            description "List of names. A property of an entity with a value that is unique in some namespace but may change during the life of the entity. A name carries no semantics with respect to the purpose of the entity.";\r
+        }\r
+        description "The TAPI GlobalComponent serves as the super class for all TAPI entities that can be directly retrieved by their ID. As such, these are first class entities and their ID is expected to be globally unique. ";\r
+    }\r
+    grouping lifecycle-state-pac {\r
+        leaf lifecycle-state {\r
+            type lifecycle-state;\r
+            config false;\r
+            description "none";\r
+        }\r
+        description "Provides state attributes for an entity that has lifeccycle aspects only.";\r
+    }\r
+    grouping local-class {\r
+        leaf local-id {\r
+            type string;\r
+            description "none";\r
+        }\r
+        list name {\r
+            key 'value-name';\r
+            uses name-and-value;\r
+            description "List of names. A property of an entity with a value that is unique in some namespace but may change during the life of the entity. A name carries no semantics with respect to the purpose of the entity.";\r
+        }\r
+        description "The TAPI GlobalComponent serves as the super class for all TAPI entities that can be directly retrieved by their ID. As such, these are first class entities and their ID is expected to be globally unique. ";\r
+    }\r
+    grouping operational-state-pac {\r
+        leaf operational-state {\r
+            type operational-state;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf lifecycle-state {\r
+            type lifecycle-state;\r
+            config false;\r
+            description "none";\r
+        }\r
+        description "Provides state attributes that are applicable to an entity that reflects operational aspects. Such an entity is expected to also have lifecycle aspects.";\r
+    }\r
+    container context {\r
+        uses tapi-context;\r
+        presence "Root container for all TAPI interaction";\r
+        description "none";\r
+    }\r
+    grouping tapi-context {\r
+        list service-interface-point {\r
+            key 'uuid';\r
+            uses service-interface-point;\r
+            description "none";\r
+        }\r
+        uses global-class;\r
+        description "The Network Control Domain (NCD) object class represents the scope of control that a particular SDN controller has with respect to a particular network, (i.e., encompassing a designated set of interconnected (virtual) network elements).";\r
+    }\r
+    grouping resource-spec {\r
+        uses global-class;\r
+        description "none";\r
+    }\r
+    grouping service-spec {\r
+        uses global-class;\r
+        description "none";\r
+    }\r
+    grouping service-interface-point {\r
+        leaf layer-protocol-name {\r
+            type layer-protocol-name;\r
+            config false;\r
+            description "Usage of layerProtocolName [>1]  in the ServiceInterfacePoint should be considered experimental";\r
+        }\r
+        leaf-list supported-layer-protocol-qualifier {\r
+            type layer-protocol-qualifier;\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type port-direction;\r
+            description "If direction attribute is missing the SIP instance is to be intended as 'BIDIRECTIONAL'";\r
+        }\r
+        uses resource-spec;\r
+        uses admin-state-pac;\r
+        uses capacity-pac;\r
+        description "The LogicalTerminationPoint (LTP) object class encapsulates the termination and adaptation functions of one or more transport layers. \r
+            The structure of LTP supports all transport protocols including circuit and packet forms.";\r
+    }\r
+    grouping capacity-pac {\r
+        container total-potential-capacity {\r
+            config false;\r
+            uses capacity;\r
+            description "An optimistic view of the capacity of the TopologicalEntity assuming that any shared capacity is available to be taken.";\r
+        }\r
+        container available-capacity {\r
+            config false;\r
+            uses capacity;\r
+            description "Capacity available to be assigned.";\r
+        }\r
+        description "The TopologicalEntity derives capacity from the underlying realization. \r
+            A TopologicalEntity may be an abstraction and virtualization of a subset of the underlying capability offered in a view or may be directly reflecting the underlying realization.\r
+            A TopologicalEntity may be directly used in the view or may be assigned to another view for use.\r
+            The clients supported by a multi-layer TopologicalEntity may interact such that the resources used by one client may impact those available to another. This is derived from the LTP spec details.\r
+            Represents the capacity available to user (client) along with client interaction and usage. \r
+            A TopologicalEntity may reflect one or more client protocols and one or more members for each profile.";\r
+    }\r
+    grouping termination-pac {\r
+        leaf termination-direction {\r
+            type termination-direction;\r
+            config false;\r
+            description "The overall directionality of the LP. \r
+                - A BIDIRECTIONAL LP will have some SINK and/or SOURCE flowss.\r
+                - A SINK LP can only contain elements with SINK flows or CONTRA_DIRECTION_SOURCE flows\r
+                - A SOURCE LP can only contain SOURCE flows or CONTRA_DIRECTION_SINK flows";\r
+        }\r
+        leaf termination-state {\r
+            type termination-state;\r
+            config false;\r
+            description "Indicates whether the layer is terminated and if so how.";\r
+        }\r
+        description "Each transport layer is represented by a LayerProtocol (LP) instance. The LayerProtocol instances it can be used for controlling termination and monitoring functionality. \r
+            It can also be used for controlling the adaptation (i.e. encapsulation and/or multiplexing of client signal), tandem connection monitoring, traffic conditioning and/or shaping functionality at an intermediate point along a connection. \r
+            Where the client – server relationship is fixed 1:1 and immutable, the layers can be encapsulated in a single LTP instance. Where the is a n:1 relationship between client and server, the layers must be split over two separate instances of LTP. ";\r
+    }\r
+\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    identity LAYER_PROTOCOL_QUALIFIER {\r
+        description "none";\r
+    }\r
+    identity LAYER_PROTOCOL_QUALIFIER_UNSPECIFIED {\r
+        base LAYER_PROTOCOL_QUALIFIER;\r
+        description "none";\r
+    }\r
+    typedef administrative-state {\r
+        type enumeration {\r
+            enum LOCKED {\r
+                description "Users are administratively prohibited from making use of the resource.";\r
+            }\r
+            enum UNLOCKED {\r
+                description "Users are allowed to use the resource";\r
+            }\r
+        }\r
+        description "The possible values of the administrativeState.";\r
+    }\r
+    typedef date-and-time {\r
+        type string;\r
+        description "This primitive type defines the date and time according to the following structure:\r
+            yyyyMMddhhmmss.s[Z|{+|-}HHMm] where:\r
+            yyyy    0000..9999    year\r
+            MM    01..12            month\r
+            dd        01..31            day\r
+            hh        00..23            hour\r
+            mm    00..59            minute\r
+            ss        00..59            second\r
+            s        .0...9            tenth of second (set to .0 if EMS or NE cannot support this granularity)\r
+            Z        Z                indicates UTC (rather than local time)\r
+            {+|-}    + or -            delta from UTC\r
+            HH        00..23            time zone difference in hours\r
+            Mm    00..59            time zone difference in minutes.";\r
+    }\r
+    typedef directive-value {\r
+        type enumeration {\r
+            enum MINIMIZE {\r
+                description "none";\r
+            }\r
+            enum MAXIMIZE {\r
+                description "none";\r
+            }\r
+            enum ALLOW {\r
+                description "none";\r
+            }\r
+            enum DISALLOW {\r
+                description "none";\r
+            }\r
+            enum DONT_CARE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef forwarding-direction {\r
+        type enumeration {\r
+            enum BIDIRECTIONAL {\r
+                description "The Fowarding entity supports both BIDIRECTIONAL flows at all Ports (i.e. all Ports have both an INPUT flow and an OUTPUT flow defined)";\r
+            }\r
+            enum UNIDIRECTIONAL {\r
+                description "The Forwarding entity has Ports that are either INPUT or OUTPUT. It has no BIDIRECTIONAL Ports.";\r
+            }\r
+            enum UNDEFINED_OR_UNKNOWN {\r
+                description "Not a normal state. The system is unable to determine the correct value.";\r
+            }\r
+        }\r
+        description "The directionality of a Forwarding entity.";\r
+    }\r
+    typedef layer-protocol-name {\r
+        type enumeration {\r
+            enum ODU {\r
+                description "Models the ODU layer as per ITU-T G.872";\r
+            }\r
+            enum ETH {\r
+                description "Models the ETH layer as per ITU-T G.8010";\r
+            }\r
+            enum DSR {\r
+                description "Models a Digital Signal of an unspecified rate. This value can be used when the intent is to respresent an generic digital layer signal without making any statement on its format or overhead (processing) capabilities.";\r
+            }\r
+            enum PHOTONIC_MEDIA {\r
+                description "Models the OCH, OTSi, OTSiA, OTSiG, OMS, OTS and Media channels as per ITU-T G.872 (2017) version 4";\r
+            }\r
+        }\r
+        description "Provides a controlled list of layer protocol names and indicates the naming authority.\r
+            Note that it is expected that attributes will be added to this structure to convey the naming authority name, the name of the layer protocol using a human readable string and any particular standard reference.\r
+            Layer protocol names include:\r
+            -    Layer 1 (L1): OTU, ODU\r
+            -    Layer 2 (L2): Carrier Grade Ethernet (ETY, ETH), MPLS-TP (MT)\r
+            ";\r
+    }\r
+    typedef lifecycle-state {\r
+        type enumeration {\r
+            enum PLANNED {\r
+                description "The resource is planned but is not present in the network.";\r
+            }\r
+            enum POTENTIAL_AVAILABLE {\r
+                description "The supporting resources are present in the network but are shared with other clients; or require further configuration before they can be used; or both.\r
+                    o    When a potential resource is configured and allocated to a client it is moved to the installed state for that client.\r
+                    o    If the potential resource has been consumed (e.g. allocated to another client) it is moved to the planned state for all other clients.";\r
+            }\r
+            enum POTENTIAL_BUSY {\r
+                description "The supporting resources are present in the network but are shared with other clients; or require further configuration before they can be used; or both.\r
+                    o    When a potential resource is configured and allocated to a client it is moved to the installed state for that client.\r
+                    o    If the potential resource has been consumed (e.g. allocated to another client) it is moved to the planned state for all other clients.";\r
+            }\r
+            enum INSTALLED {\r
+                description "The resource is present in the network and is capable of providing the service expected.";\r
+            }\r
+            enum PENDING_REMOVAL {\r
+                description "The resource has been marked for removal";\r
+            }\r
+        }\r
+        description "The possible values of the lifecycleState.";\r
+    }\r
+    grouping name-and-value {\r
+        leaf value-name {\r
+            type string;\r
+            description "The name of the value. The value need not have a name.";\r
+        }\r
+        leaf value {\r
+            type string;\r
+            description "The value";\r
+        }\r
+        description "A scoped name-value pair";\r
+    }\r
+    typedef operational-state {\r
+        type enumeration {\r
+            enum DISABLED {\r
+                description "The resource is unable to meet the SLA of the user of the resource. If no (explicit) SLA is defined the resource is disabled if it is totally inoperable and unable to provide service to the user.";\r
+            }\r
+            enum ENABLED {\r
+                description "The resource is partially or fully operable and available for use";\r
+            }\r
+        }\r
+        description "The possible values of the operationalState.";\r
+    }\r
+    typedef port-direction {\r
+        type enumeration {\r
+            enum BIDIRECTIONAL {\r
+                description "The Port has both an INPUT flow and an OUTPUT flow defined.";\r
+            }\r
+            enum INPUT {\r
+                description "The Port only has definition for a flow into the Forwarding entity, (i.e. an ingress flow of the Link or Connection, hence egress flow of NEP or CEP, CSEP etc.)";\r
+            }\r
+            enum OUTPUT {\r
+                description "The Port only has definition for a flow out of the Forwarding entity ((i.e. an egress flow of the Link or Connection, hence ingress flow of NEP or CEP, CSEP etc.)";\r
+            }\r
+            enum UNIDENTIFIED_OR_UNKNOWN {\r
+                description "Not a normal state. The system is unable to determine the correct value.";\r
+            }\r
+        }\r
+        description "The orientation of flow at the Port of a Forwarding entity";\r
+    }\r
+    typedef port-role {\r
+        type enumeration {\r
+            enum SYMMETRIC {\r
+                description "none";\r
+            }\r
+            enum ROOT {\r
+                description "none";\r
+            }\r
+            enum LEAF {\r
+                description "none";\r
+            }\r
+            enum TRUNK {\r
+                description "none";\r
+            }\r
+            enum UNKNOWN {\r
+                description "none";\r
+            }\r
+        }\r
+        description "The role of an end in the context of the function of the forwarding entity that it bounds";\r
+    }\r
+    typedef termination-direction {\r
+        type enumeration {\r
+            enum BIDIRECTIONAL {\r
+                description "A Termination with both SINK and SOURCE flows.";\r
+            }\r
+            enum SINK {\r
+                description "The flow is up the layer stack from the server side to the client side. \r
+                    Considering an example of a Termination function within the termination entity, a SINK flow:\r
+                    - will arrive at at the base of the termination function (the server side) where it is essentially at an INPUT to the termination component\r
+                    - then will be decoded and deconstructed \r
+                    - then relevant parts of the flow will be sent out of the termination function (the client side) where it is essentially at an OUTPUT from the termination component\r
+                    A SINK termination is one that only supports a SINK flow.\r
+                    A SINK termiation can be bound to an OUTPUT Port of a Forwarding entity";\r
+            }\r
+            enum SOURCE {\r
+                description "The flow is down the layer stack from the server side to the client side. \r
+                    Considering an example of a Termination function within the termination entity, a SOURCE flow:\r
+                    - will arrive at at the top of the termination function (the client side) where it is essentially at an INPUT to the termination component\r
+                    - then will be assembled with various overheads etc and will be coded \r
+                    - then coded form of the assembly of flow will be sent out of the termination function (the server side) where it is essentially at an OUTPUT from the termination component\r
+                    A SOURCE termination is one that only supports a SOURCE flow.\r
+                    A SOURCE termiation can be bound to an INPUT Port of a Forwarding entity";\r
+            }\r
+            enum UNDEFINED_OR_UNKNOWN {\r
+                description "Not a normal state. The system is unable to determine the correct value.";\r
+            }\r
+        }\r
+        description "The directionality of a termination entity";\r
+    }\r
+    typedef termination-state {\r
+        type enumeration {\r
+            enum LP_CAN_NEVER_TERMINATE {\r
+                description "A non-flexible case that can never be terminated.";\r
+            }\r
+            enum LT_NOT_TERMINATED {\r
+                description "A flexible termination that can terminate but is currently not terminated.";\r
+            }\r
+            enum TERMINATED_SERVER_TO_CLIENT_FLOW {\r
+                description "A flexible termination that is currently terminated for server to client flow only.";\r
+            }\r
+            enum TERMINATED_CLIENT_TO_SERVER_FLOW {\r
+                description "A flexible termination that is currently terminated for client to server flow only.";\r
+            }\r
+            enum TERMINATED_BIDIRECTIONAL {\r
+                description "A flexible termination that is currently terminated in both directions of flow.";\r
+            }\r
+            enum LT_PERMENANTLY_TERMINATED {\r
+                description "A non-flexible termination that is always terminated (in both directions of flow for a bidirectional case and in the one direction of flow for both unidirectional cases).";\r
+            }\r
+            enum TERMINATION_STATE_UNKNOWN {\r
+                description "There TerminationState cannot be determined.";\r
+            }\r
+        }\r
+        description "Provides support for the range of behaviours and specific states that an LP can take with respect to termination of the signal.\r
+            Indicates to what degree the LayerTermination is terminated.";\r
+    }\r
+    typedef uuid {\r
+        type string;\r
+        description "The univeral ID value where the mechanism for generation is defned by some authority not directly referenced in the structure.\r
+            UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.\r
+            Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} \r
+            Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";\r
+    }\r
+    grouping capacity {\r
+        container total-size {\r
+            uses capacity-value;\r
+            description "Total capacity of the TopologicalEntity in MB/s. In case of bandwidthProfile, this is expected to same as the committedInformationRate.";\r
+        }\r
+        container bandwidth-profile {\r
+            uses bandwidth-profile;\r
+            description "none";\r
+        }\r
+        description "Information on capacity of a particular TopologicalEntity.";\r
+    }\r
+    grouping bandwidth-profile {\r
+        leaf bw-profile-type {\r
+            type bandwidth-profile-type;\r
+            description "none";\r
+        }\r
+        container committed-information-rate {\r
+            uses capacity-value;\r
+            description "none";\r
+        }\r
+        container committed-burst-size {\r
+            uses capacity-value;\r
+            description "none";\r
+        }\r
+        container peak-information-rate {\r
+            uses capacity-value;\r
+            description "none";\r
+        }\r
+        container peak-burst-size {\r
+            uses capacity-value;\r
+            description "none";\r
+        }\r
+        leaf color-aware {\r
+            type boolean;\r
+            description "none";\r
+        }\r
+        leaf coupling-flag {\r
+            type boolean;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping capacity-value {\r
+        leaf value {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        leaf unit {\r
+            type capacity-unit;\r
+            description "none";\r
+        }\r
+        description "The Capacity (Bandwidth) values that are applicable for digital layers.";\r
+    }\r
+    typedef capacity-unit {\r
+        type enumeration {\r
+            enum TB {\r
+                description "Indicates that the integer CapacityValue is in TeraBytes";\r
+            }\r
+            enum TBPS {\r
+                description "Indicates that the integer CapacityValue is in Terabit-per-second";\r
+            }\r
+            enum GB {\r
+                description "Indicates that the integer CapacityValue is in GigaBytes";\r
+            }\r
+            enum GBPS {\r
+                description "Indicates that the integer CapacityValue is in Gigabit-per-second";\r
+            }\r
+            enum MB {\r
+                description "Indicates that the integer CapacityValue is in MegaBytes";\r
+            }\r
+            enum MBPS {\r
+                description "Indicates that the integer CapacityValue is in Megabit-per-second";\r
+            }\r
+            enum KB {\r
+                description "Indicates that the integer CapacityValue is in KiloBytes";\r
+            }\r
+            enum KBPS {\r
+                description "Indicates that the integer CapacityValue is in Kilobit-per-second";\r
+            }\r
+            enum GHz {\r
+                description "none";\r
+            }\r
+            enum MHz {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef bandwidth-profile-type {\r
+        type enumeration {\r
+            enum MEF_10.x {\r
+                description "none";\r
+            }\r
+            enum RFC_2697 {\r
+                description "none";\r
+            }\r
+            enum RFC_2698 {\r
+                description "none";\r
+            }\r
+            enum RFC_4115 {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping time-range {\r
+        leaf end-time {\r
+            type date-and-time;\r
+            description "none";\r
+        }\r
+        leaf start-time {\r
+            type date-and-time;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping time-period {\r
+        leaf value {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        leaf unit {\r
+            type time-unit;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    typedef time-unit {\r
+        type enumeration {\r
+            enum YEARS {\r
+                description "none";\r
+            }\r
+            enum MONTHS {\r
+                description "none";\r
+            }\r
+            enum DAYS {\r
+                description "none";\r
+            }\r
+            enum HOURS {\r
+                description "none";\r
+            }\r
+            enum MINUTES {\r
+                description "none";\r
+            }\r
+            enum SECONDS {\r
+                description "none";\r
+            }\r
+            enum MILLISECONDS {\r
+                description "none";\r
+            }\r
+            enum MICROSECONDS {\r
+                description "none";\r
+            }\r
+            enum NANOSECONDS {\r
+                description "none";\r
+            }\r
+            enum PICOSECONDS {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping time-interval {\r
+        list period {\r
+            key 'unit';\r
+            min-elements 1;\r
+            max-elements 5;\r
+            uses time-period;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    typedef layer-protocol-qualifier {\r
+        type identityref {\r
+            base LAYER_PROTOCOL_QUALIFIER;\r
+        }\r
+        description "This enumeration is used to qualify the sub-layers (if applicable) for a specific LayerProtocol.\r
+            This extensible enumeration is intentionally empty in the common module and will be augmented with layer-specific values in the respective technology-specific modules.\r
+            Examples:\r
+            - LayerProtocolName := OPTICAL_DATA_UNIT\r
+            LayerProtocolQualifier := 'ODU_FLEX', 'ODU_0', 'ODU_1', 'ODU_2', 'ODU_2E', 'ODU_3', 'ODU_4'', 'ODU_CBR'', 'ODU_GFP'', 'ODU_GFP_HAO', etc\r
+            - LayerProtocolName := DIGITAL_SIGNAL_RATE\r
+            LayerProtocolQualifier := 'GBE', '10_GBE_WAN', '10_GBE_LAN', '100_GBE', 'FC_100', 'FC_200', 'FC_400', 'FC_800', 'FC_1200', 'FC_1600', 'FC_3200', 'STM_1', 'STM_4', 'STM_16', 'STM_64', 'STM_256', 'OC_3', 'OC_12', 'OC_48', 'OC_192', 'OC_768', 'OTU_1', 'OTU_2', 'OTU_2E', 'OTU_3', 'OTU_4', 'GPON', 'XGPON', 'IB_SDR', 'IB_DDR', 'IB_QDR', 'SBCON_ESCON', 'DVB_ASI', 'SDI', 'SDI_1G5', 'SDI_3G', etc\r
+            - LayerProtocolName := PHOTONIC_MEDIA\r
+            LayerProtocolQualifier := OCH, OTSi, OTSiA, NMC, NMCA, SMC, SMCA, OMS, OTS\r
+            ";\r
+    }\r
+\r
+    /**************************\r
+    * package interfaces\r
+    **************************/ \r
+    rpc get-service-interface-point-details {\r
+        description "none";\r
+        input {\r
+            leaf sip-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container sip {\r
+                uses service-interface-point;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-service-interface-point-list {\r
+        description "none";\r
+        output {\r
+            list sip {\r
+                uses service-interface-point;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc update-service-interface-point {\r
+        description "none";\r
+        input {\r
+            leaf sip-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type administrative-state;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-connectivity@2020-06-16.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-connectivity@2020-06-16.yang
new file mode 100644 (file)
index 0000000..2dda923
--- /dev/null
@@ -0,0 +1,884 @@
+module tapi-connectivity {\r
+    namespace "urn:onf:otcc:yang:tapi-connectivity";\r
+    prefix tapi-connectivity;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    import tapi-path-computation {\r
+        prefix tapi-path-computation;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_yiFzE6g$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Connectivity Model definitions.\r
+        Source: TapiConnectivity.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+        <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_6pxiNxl$ >\r
+        and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+        <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_wxKUbJ_$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+        As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+        The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_zcAY1P4$ >.\r
+        YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0.";\r
+    revision 2020-06-16 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   - Minor corrections in comments.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_xm1nx_D$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_0xFu4bN$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur__2p0od1$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_4DGi8ul$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8KlxwJZ$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_-hMD5Xl$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur__C1vuym$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_5DYNwzZ$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_1xZSBRA$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_xt-GtqY$ >";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        container connectivity-context {\r
+            uses connectivity-context;\r
+            description "Augments the base TAPI Context with ConnectivityService information";\r
+        }\r
+        description "Augments the base TAPI Context with ConnectivityService information";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point" {\r
+        container cep-list {\r
+            uses cep-list;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+   /**************************\r
+    * definitions of references\r
+    **************************/\r
+    grouping connectivity-service-ref {\r
+        leaf connectivity-service-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping connectivity-service-end-point-ref {\r
+        uses connectivity-service-ref;\r
+        leaf connectivity-service-end-point-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:end-point/tapi-connectivity:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping connection-end-point-ref {\r
+        uses tapi-topology:node-edge-point-ref;\r
+        leaf connection-end-point-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point/tapi-connectivity:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping connection-ref {\r
+        leaf connection-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connection/tapi-connectivity:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping switch-control-ref {\r
+        uses connection-ref;\r
+        leaf switch-control-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connection/tapi-connectivity:switch-control/tapi-connectivity:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping route-ref {\r
+        uses connection-ref;\r
+        leaf route-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connection/tapi-connectivity:route/tapi-connectivity:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping connection {\r
+        list connection-end-point {\r
+            uses connection-end-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';\r
+            config false;\r
+            min-elements 2;\r
+            description "none";\r
+        }\r
+        list lower-connection {\r
+            uses connection-ref;\r
+            key 'connection-uuid';\r
+            config false;\r
+            description "An Connection object supports a recursive aggregation relationship such that the internal construction of an Connection can be exposed as multiple lower level Connection objects (partitioning).\r
+                Aggregation is used as for the Node/Topology  to allow changes in hierarchy. \r
+                Connection aggregation reflects Node/Topology aggregation. \r
+                The FC represents a Cross-Connection in an NE. The Cross-Connection in an NE is not necessarily the lowest level of FC partitioning.";\r
+        }\r
+        list supported-client-link {\r
+            uses tapi-topology:link-ref;\r
+            key 'topology-uuid link-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        list route {\r
+            key 'local-id';\r
+            config false;\r
+            uses route;\r
+            description "none";\r
+        }\r
+        list switch-control {\r
+            key 'uuid';\r
+            config false;\r
+            uses switch-control;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:forwarding-direction;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            description "none";\r
+        }\r
+        container connection-spec-reference {\r
+            config false;\r
+            uses connection-spec-reference;\r
+            description "Provides the reference to the spec that defines the connection type and cepRoles.";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses tapi-common:operational-state-pac;\r
+        description "The ForwardingConstruct (FC) object class models enabled potential for forwarding between two or more LTPs and like the LTP supports any transport protocol including all circuit and packet forms.\r
+            At the lowest level of recursion, a FC represents a cross-connection within an NE.";\r
+    }\r
+    grouping connection-end-point {\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf layer-protocol-qualifier {\r
+            type tapi-common:layer-protocol-qualifier;\r
+            config false;\r
+            description "none";\r
+        }\r
+        container parent-node-edge-point {\r
+            uses tapi-topology:node-edge-point-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        list client-node-edge-point {\r
+            uses tapi-topology:node-edge-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        list aggregated-connection-end-point {\r
+            uses connection-end-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf connection-port-direction {\r
+            type tapi-common:port-direction;\r
+            config false;\r
+            description "The orientation of defined flow at the EndPoint.";\r
+        }\r
+        leaf connection-port-role {\r
+            type tapi-common:port-role;\r
+            config false;\r
+            description "Each EP of the FC has a role (e.g., working, protection, protected, symmetric, hub, spoke, leaf, root)  in the context of the FC with respect to the FC function. ";\r
+        }\r
+        list cep-role {\r
+            uses cep-role;\r
+                       config false;\r
+            description "Defines the role of the CEP in the context of the connection spec.\r
+                There may be many cep role - connection spec combinations for a particular CEP where each corresponds to a specific connection associated with the CEP.";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses tapi-common:operational-state-pac;\r
+        uses tapi-common:termination-pac;\r
+        description "The LogicalTerminationPoint (LTP) object class encapsulates the termination and adaptation functions of one or more transport layers. \r
+            The structure of LTP supports all transport protocols including circuit and packet forms.";\r
+    }\r
+    grouping connectivity-constraint {\r
+        leaf service-layer {\r
+            type tapi-common:layer-protocol-name;\r
+            description "none";\r
+        }\r
+        leaf service-type {\r
+            type service-type;\r
+            description "none";\r
+        }\r
+        leaf service-level {\r
+            type string;\r
+            description "An abstract value the meaning of which is mutually agreed – typically represents metrics such as - Class of service, priority, resiliency, availability";\r
+        }\r
+        container requested-capacity {\r
+            uses tapi-common:capacity;\r
+            description "none";\r
+        }\r
+        leaf connectivity-direction {\r
+            type tapi-common:forwarding-direction;\r
+            description "none";\r
+        }\r
+        container schedule {\r
+            uses tapi-common:time-range;\r
+            description "none";\r
+        }\r
+        container coroute-inclusion {\r
+            uses connectivity-service-ref;\r
+            description "none";\r
+        }\r
+        list diversity-exclusion {\r
+            uses connectivity-service-ref;\r
+            key 'connectivity-service-uuid';\r
+            description "none";\r
+        }\r
+        leaf-list connection-exclusion {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        leaf-list connection-inclusion {\r
+            type tapi-common:uuid;\r
+            description "A ConnectivityService may use one or more existing Connections.\r
+                A common traditional strategy is to set up “stranded” connectivity in the core of the network as “express channels” (this is essentially a serial compound link, but can be treated as simple connections)\r
+                A connection inclusion capability allows for adoption of a discovered Connections.\r
+                A ConnectivityService is requested with a connection inclusion constraint that identifies a connection (or chain of connections) that is bounded by CEPs that each belong to a NEP that references a SIP that is referenced by a CSEP of the ConnectivityService such that all CSEPs are satisfied by CEPs of the existing Connection. will allow discovered Connections with no stated intent to be associated with an intent via the ConnectivityService.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping connectivity-service {\r
+        list end-point {\r
+            key 'local-id';\r
+            min-elements 2;\r
+            uses connectivity-service-end-point;\r
+            description "none";\r
+        }\r
+        list connection {\r
+            uses connection-ref;\r
+            key 'connection-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        uses tapi-common:service-spec;\r
+        uses connectivity-constraint;\r
+        uses tapi-path-computation:routing-constraint;\r
+        uses tapi-path-computation:topology-constraint;\r
+        uses resilience-constraint;\r
+        uses tapi-common:admin-state-pac;\r
+        description "The ForwardingConstruct (FC) object class models enabled potential for forwarding between two or more LTPs and like the LTP supports any transport protocol including all circuit and packet forms.\r
+            At the lowest level of recursion, a FC represents a cross-connection within an NE.";\r
+    }\r
+    grouping connectivity-service-end-point {\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            description "none";\r
+        }\r
+        leaf layer-protocol-qualifier {\r
+            type tapi-common:layer-protocol-qualifier;\r
+            description "none";\r
+        }\r
+        container service-interface-point {\r
+            uses tapi-common:service-interface-point-ref;\r
+            description "none";\r
+        }\r
+        list connection-end-point {\r
+            uses connection-end-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        container capacity {\r
+            uses tapi-common:capacity;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:port-direction;\r
+            description "The orientation of defined flow at the EndPoint.";\r
+        }\r
+        leaf role {\r
+            type tapi-common:port-role;\r
+            description "Each EP of the FC has a role (e.g., working, protection, protected, symmetric, hub, spoke, leaf, root)  in the context of the FC with respect to the FC function. ";\r
+        }\r
+        leaf protection-role {\r
+            type protection-role;\r
+            description "To specify the protection role of this Port when create or update ConnectivityService.";\r
+        }\r
+        container peer-fwd-connectivity-service-end-point {\r
+            uses connectivity-service-end-point-ref;\r
+            description "none";\r
+        }\r
+        container protecting-connectivity-service-end-point {\r
+            uses connectivity-service-end-point-ref;\r
+            description "none";\r
+        }\r
+        container server-connectivity-service-end-point {\r
+            uses connectivity-service-end-point-ref;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        uses tapi-common:admin-state-pac;\r
+        description "The association of the FC to LTPs is made via EndPoints.\r
+            The EndPoint (EP) object class models the access to the FC function. \r
+            The traffic forwarding between the associated EPs of the FC depends upon the type of FC and may be associated with FcSwitch object instances.  \r
+            In cases where there is resilience the EndPoint may convey the resilience role of the access to the FC. \r
+            It can represent a protected (resilient/reliable) point or a protecting (unreliable working or protection) point.\r
+            The EP replaces the Protection Unit of a traditional protection model. \r
+            The ForwadingConstruct can be considered as a component and the EndPoint as a Port on that component";\r
+    }\r
+    grouping route {\r
+        list connection-end-point {\r
+            uses connection-end-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';\r
+            config false;\r
+            min-elements 2;\r
+            description "none";\r
+        }\r
+        container resilience-route-pac {\r
+            uses resilience-route;\r
+            description "Provides optional resilience and state attributes to the Route.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "The Route of a Connection is modeled as a collection of Connection End Points.\r
+            The logical order of the Connection End Points within the Route object can be inferred by the TAPI client by the knowledge of the Topology information.";\r
+    }\r
+    grouping connectivity-context {\r
+        list connectivity-service {\r
+            key 'uuid';\r
+            uses connectivity-service;\r
+            description "none";\r
+        }\r
+        list connection {\r
+            key 'uuid';\r
+            config false;\r
+            uses connection;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping switch {\r
+        list selected-connection-end-point {\r
+            uses connection-end-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        list selected-route {\r
+            uses route-ref;\r
+            key 'connection-uuid route-local-id';\r
+                       config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        leaf selection-control {\r
+            type selection-control;\r
+            description "Degree of administrative control applied to the switch selection.";\r
+        }\r
+        leaf selection-reason {\r
+            type selection-reason;\r
+            config false;\r
+            description "The reason for the current switch selection.";\r
+        }\r
+        leaf switch-direction {\r
+            type tapi-common:port-direction;\r
+            description "Indicates whether the switch selects from ingress to the FC or to egress of the FC, or both.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "The class models the switched forwarding of traffic (traffic flow) between FcPorts (ConnectionEndPoints) and is present where there is protection functionality in the FC (Connection). \r
+            If an FC exposes protection (having two or more FcPorts that provide alternative identical inputs/outputs), the FC will have one or more associated FcSwitch objects to represent the alternative flow choices visible at the edge of the FC.\r
+            The FC switch represents and defines a protection switch structure encapsulated in the FC. \r
+            Essentially performs one of the functions of the Protection Group in a traditional model. It associates to 2 or more FcPorts each playing the role of a Protection Unit. \r
+            One or more protection, i.e. standby/backup, FcPorts provide protection for one or more working (i.e. regular/main/preferred) FcPorts where either protection or working can feed one or more protected FcPort.\r
+            The switch may be used in revertive or non-revertive (symmetric) mode. When in revertive mode it may define a waitToRestore time.\r
+            It may be used in one of several modes including source switch, destination switched, source and destination switched etc (covering cases such as 1+1 and 1:1).\r
+            It may be locked out (prevented from switching), force switched or manual switched.\r
+            It will indicate switch state and change of state.\r
+            The switch can be switched away from all sources such that it becomes open and hence two coordinated switches can both feed the same LTP so long as at least one of the two is switched away from all sources (is 'open').\r
+            The ability for a Switch to be 'high impedance' allows bidirectional ForwardingConstructs to be overlaid on the same bidirectional LTP where the appropriate control is enabled to prevent signal conflict.\r
+            This ability allows multiple alternate routes to be present that otherwise would be in conflict.";\r
+    }\r
+    grouping switch-control {\r
+        list sub-switch-control {\r
+            uses switch-control-ref;\r
+            key 'connection-uuid switch-control-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        list switch {\r
+            key 'local-id';\r
+            uses switch;\r
+            description "none";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses resilience-constraint;\r
+        description "Represents the capability to control and coordinate switches, to add/delete/modify FCs and to add/delete/modify LTPs/LPs so as to realize a protection scheme.";\r
+    }\r
+    grouping resilience-constraint {\r
+        container resilience-type {\r
+            uses tapi-topology:resilience-type;\r
+            description "none";\r
+        }\r
+        leaf restoration-coordinate-type {\r
+            type coordinate-type;\r
+            description " The coordination mechanism between multi-layers.";\r
+        }\r
+        leaf restore-priority {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        leaf reversion-mode {\r
+            type reversion-mode;\r
+            description "Indcates whether the protection scheme is revertive or non-revertive.";\r
+        }\r
+        leaf wait-to-revert-time {\r
+            type uint64;\r
+            default "15";\r
+            description "If the protection system is revertive, this attribute specifies the time, in minutes, to wait after a fault clears on a higher priority (preferred) resource before reverting to the preferred resource.";\r
+        }\r
+        leaf hold-off-time {\r
+            type uint64;\r
+            description "This attribute indicates the time, in milliseconds, between declaration of signal degrade or signal fail, and the initialization of the protection switching algorithm.";\r
+        }\r
+        leaf is-lock-out {\r
+            type boolean;\r
+            description "The resource is configured to temporarily not be available for use in the protection scheme(s) it is part of.\r
+                This overrides all other protection control states including forced.\r
+                If the item is locked out then it cannot be used under any circumstances.\r
+                Note: Only relevant when part of a protection scheme.";\r
+        }\r
+        leaf is-frozen {\r
+            type boolean;\r
+            description "Temporarily prevents any switch action to be taken and, as such, freezes the current state. \r
+                Until the freeze is cleared, additional near-end external commands are rejected and fault condition changes and received APS messages are ignored.\r
+                All administrative controls of any aspect of protection are rejected.";\r
+        }\r
+        leaf is-coordinated-switching-both-ends {\r
+            type boolean;\r
+            description "Is operating such that switching at both ends of each flow acorss the FC is coordinated at both ingress and egress ends.";\r
+        }\r
+        leaf max-switch-times {\r
+            type uint64;\r
+            description "Used to limit the maximum swtich times. When work fault disappears , and traffic return to the original work path, switch counter reset.";\r
+        }\r
+        leaf-list preferred-restoration-layer {\r
+            type tapi-common:layer-protocol-name;\r
+            description "Indicate which layer this resilience parameters package configured for.";\r
+        }\r
+        description "A list of control parameters to apply to a switch.";\r
+    }\r
+    grouping cep-list {\r
+        list connection-end-point {\r
+            key 'uuid';\r
+            uses connection-end-point;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping resilience-route {\r
+        leaf priority {\r
+            type uint64;\r
+            config false;\r
+            description "Value of 0 (zero) means 'unspecified priority'.\r
+                Highest priority is 1, sometimes referred as 'preferred' or 'main' or 'intended' route.\r
+                2 has lower priority than 1, 3 has lower priority than 2, etc.";\r
+        }\r
+        leaf route-state {\r
+            type route-state;\r
+            config false;\r
+            description "Current information on the route selection.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "This object adds resilience and state attributes to the Route.\r
+            When this object is not present, then the Route is intendend as 'current' Route of the Connection.";\r
+    }\r
+\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    identity ROUTE_STATE {\r
+        description "none";\r
+    }\r
+    identity ROUTE_STATE_CURRENT {\r
+        base ROUTE_STATE;\r
+        description "The route identified is the current route, i.e., is the one that is active and selected to support service.\r
+            ";\r
+    }\r
+    identity ROUTE_STATE_NOT_CURRENT {\r
+        base ROUTE_STATE;\r
+        description "The route is not the one supporting the service.";\r
+    }\r
+    identity ROUTE_STATE_UNKNOWN {\r
+        base ROUTE_STATE;\r
+        description "The route state is unknown.";\r
+    }\r
+    typedef service-type {\r
+        type enumeration {\r
+            enum POINT_TO_POINT_CONNECTIVITY {\r
+                description "none";\r
+            }\r
+            enum POINT_TO_MULTIPOINT_CONNECTIVITY {\r
+                description "none";\r
+            }\r
+            enum MULTIPOINT_CONNECTIVITY {\r
+                description "none";\r
+            }\r
+            enum ROOTED_MULTIPOINT_CONNECTIVITY {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef reversion-mode {\r
+        type enumeration {\r
+            enum REVERTIVE {\r
+                description "An FC switched to a lower priority (non-preferred) resource will revert to a higher priority (preferred) resource when that recovers (potentially after some hold-off time).";\r
+            }\r
+            enum NON-REVERTIVE {\r
+                description "An FC switched to a lower priority (non-preferred) resource will not revert to a higher priority (preferred) resource when that recovers.";\r
+            }\r
+        }\r
+        description "The reversion mode associated with protection.";\r
+    }\r
+    typedef selection-control {\r
+        type enumeration {\r
+            enum LOCK_OUT {\r
+                description "The resource is configured to temporarily not be available for use in the protection scheme(s) it is part of.\r
+                    This overrides all other protection control states including forced.\r
+                    If the item is locked out then it cannot be used under any circumstances.\r
+                    Note: Only relevant when part of a protection scheme.";\r
+            }\r
+            enum NORMAL {\r
+                description "none";\r
+            }\r
+            enum MANUAL {\r
+                description "none";\r
+            }\r
+            enum FORCED {\r
+                description "none";\r
+            }\r
+        }\r
+        description "Possible degrees of administrative control applied to the Route selection.";\r
+    }\r
+    typedef selection-reason {\r
+        type enumeration {\r
+            enum LOCKOUT {\r
+                description "none";\r
+            }\r
+            enum NORMAL {\r
+                description "none";\r
+            }\r
+            enum MANUAL {\r
+                description "none";\r
+            }\r
+            enum FORCED {\r
+                description "none";\r
+            }\r
+            enum WAIT_TO_REVERT {\r
+                description "none";\r
+            }\r
+            enum SIGNAL_DEGRADE {\r
+                description "none";\r
+            }\r
+            enum SIGNAL_FAIL {\r
+                description "none";\r
+            }\r
+        }\r
+        description "The cause of the current route selection.";\r
+    }\r
+    typedef coordinate-type {\r
+        type enumeration {\r
+            enum NO_COORDINATE {\r
+                description "none";\r
+            }\r
+            enum HOLD_OFF_TIME {\r
+                description "none";\r
+            }\r
+            enum WAIT_FOR_NOTIFICATION {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef protection-role {\r
+        type enumeration {\r
+            enum WORK {\r
+                description "none";\r
+            }\r
+            enum PROTECT {\r
+                description "none";\r
+            }\r
+            enum PROTECTED {\r
+                description "none";\r
+            }\r
+            enum NA {\r
+                description "none";\r
+            }\r
+            enum WORK_RESTORE {\r
+                description "none";\r
+            }\r
+            enum PROTECT_RESTORE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping cep-role {\r
+        leaf role-name {\r
+            type string;\r
+            description "The name of the cep role in the context of the referenced spec.";\r
+        }\r
+        container connection-spec-reference {\r
+            config false;\r
+            uses connection-spec-reference;\r
+            description "The reference to the spec that defines the cep role.";\r
+        }\r
+        description "The role of the cep in the context of the connection spec.";\r
+    }\r
+    grouping connection-spec-reference {\r
+        leaf connection-spec-id {\r
+            type tapi-common:uuid;\r
+            config false;\r
+            description "The reference to a formal spec. \r
+                This reference need not be provided (e.g., where there is no formal machine interpretable spec for the type of connection).";\r
+        }\r
+        leaf connection-spec-name {\r
+            type string;\r
+            config false;\r
+            description "The name of the connection spec.\r
+                This can be used alone (with no spec reference) where there is only a paper spec.";\r
+        }\r
+        description "The reference to a spec for a type of connection.";\r
+    }\r
+    typedef route-state {\r
+        type identityref {\r
+            base ROUTE_STATE;\r
+        }\r
+        description "Potential route states.";\r
+    }\r
+\r
+    /**************************\r
+    * package interfaces\r
+    **************************/ \r
+    rpc get-connection-details {\r
+        description "none";\r
+        input {\r
+            leaf connection-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container connection {\r
+                uses connection;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-connectivity-service-list {\r
+        description "none";\r
+        output {\r
+            list service {\r
+                key 'uuid';\r
+                uses connectivity-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-connectivity-service-details {\r
+        description "none";\r
+        input {\r
+            leaf service-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses connectivity-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc create-connectivity-service {\r
+        description "none";\r
+        input {\r
+            list end-point {\r
+                key 'local-id';\r
+                min-elements 2;\r
+                uses connectivity-service-end-point;\r
+                description "none";\r
+            }\r
+            container connectivity-constraint {\r
+                uses connectivity-constraint;\r
+                description "none";\r
+            }\r
+            container routing-constraint {\r
+                uses tapi-path-computation:routing-constraint;\r
+                description "none";\r
+            }\r
+            container topology-constraint {\r
+                uses tapi-path-computation:topology-constraint;\r
+                description "none";\r
+            }\r
+            container resilience-constraint {\r
+                uses resilience-constraint;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses connectivity-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc update-connectivity-service {\r
+        description "none";\r
+        input {\r
+            leaf service-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            list end-point {\r
+                key 'local-id';\r
+                uses connectivity-service-end-point;\r
+                description "none";\r
+            }\r
+            container connectivity-constraint {\r
+                uses connectivity-constraint;\r
+                description "none";\r
+            }\r
+            container routing-constraint {\r
+                uses tapi-path-computation:routing-constraint;\r
+                description "none";\r
+            }\r
+            container topology-constraint {\r
+                uses tapi-path-computation:topology-constraint;\r
+                description "none";\r
+            }\r
+            container resilience-constraint {\r
+                uses resilience-constraint;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses connectivity-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc delete-connectivity-service {\r
+        description "none";\r
+        input {\r
+            leaf service-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-connection-end-point-details {\r
+        description "none";\r
+        input {\r
+            leaf topology-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf node-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf nep-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf cep-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container connection-end-point {\r
+                uses connection-end-point;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-dsr@2020-04-23.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-dsr@2020-04-23.yang
new file mode 100644 (file)
index 0000000..4a71f0d
--- /dev/null
@@ -0,0 +1,241 @@
+module tapi-dsr {\r
+    namespace "urn:onf:otcc:yang:tapi-dsr";\r
+    prefix tapi-dsr;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G39KDEbL$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI DSR Model definitions.\r
+        Source: TapiDsr.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+          <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G4QHf0bG$ >\r
+          and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+          <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8IIivez$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+          As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+          The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G3bKxRf2$ >.\r
+          YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0";\r
+    revision 2020-04-23 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7tqhxFK$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7eDS6-t$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1ftwU5J$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G-5JStw4$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1Yf4AAN$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G27-pJK_$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8RnGvXg$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6Gy6YoeAv$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6GyqYDgG_$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1V9Thk9$ >";\r
+    }\r
+\r
+   /**************************\r
+    * package type-definitions\r
+    **************************/\r
+    identity DIGITAL_SIGNAL_TYPE {\r
+        base tapi-common:LAYER_PROTOCOL_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_GigE {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_10_GigE_LAN {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_10_GigE_WAN {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_40_GigE {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_100_GigE {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_FC_100 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_FC_200 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_FC_400 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_FC_800 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_FC_1200 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_FC_1600 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_FC_3200 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_STM_1 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_STM_4 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_STM_16 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_STM_64 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_STM_256 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OC_3 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OC_12 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OC_48 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OC_192 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OC_768 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OTU_1 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OTU_2 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OTU_2E {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OTU_3 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_OTU_4 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_GPON {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_XGPON {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_IB_SDR {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_IB_DDR {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_IB_QDR {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_SBCON_ESCON {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_DVB_ASI {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_SDI {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_SDI_1G5 {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    identity DIGITAL_SIGNAL_TYPE_SDI_3G {\r
+        base DIGITAL_SIGNAL_TYPE;\r
+        description "none";\r
+    }\r
+    typedef digital-signal-type {\r
+        type identityref {\r
+            base DIGITAL_SIGNAL_TYPE;\r
+        }\r
+        description "none";\r
+    }\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-equipment@2020-04-23.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-equipment@2020-04-23.yang
new file mode 100644 (file)
index 0000000..d99fdea
--- /dev/null
@@ -0,0 +1,731 @@
+module tapi-equipment {\r
+    namespace "urn:onf:otcc:yang:tapi-equipment";\r
+    prefix tapi-equipment;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W87JJX8d$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Equipment Model definitions.\r
+        Source: TapiEquipment.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+        <https://github.com/OpenNetworkingFoundation/EagleUmlYang>\r
+        and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+        <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+        As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+        The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.\r
+        YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0.";\r
+    revision 2020-04-23 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        container physical-context {\r
+            uses physical-context;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node" {\r
+        container supporting-physical-span {\r
+            uses supporting-physical-span;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point" {\r
+        container supporting-access-port {\r
+            uses supporting-access-port;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+   /**************************\r
+    * definitions of references\r
+    **************************/\r
+    grouping device-ref {\r
+        leaf device-uuid {\r
+               type leafref {\r
+                path '/tapi-common:context/tapi-equipment:physical-context/tapi-equipment:device/tapi-equipment:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping equipment-ref {\r
+       uses device-ref;\r
+        leaf equipment-uuid {\r
+               type leafref {\r
+                path '/tapi-common:context/tapi-equipment:physical-context/tapi-equipment:device/tapi-equipment:equipment/tapi-equipment:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping equipment-holder-ref {\r
+       uses equipment-ref;\r
+        leaf equipment-holder-uuid {\r
+               type leafref {\r
+                path '/tapi-common:context/tapi-equipment:physical-context/tapi-equipment:device/tapi-equipment:equipment/tapi-equipment:contained-holder/tapi-equipment:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping access-port-ref {\r
+       uses device-ref;\r
+        leaf access-port-uuid {\r
+               type leafref {\r
+                path '/tapi-common:context/tapi-equipment:physical-context/tapi-equipment:device/tapi-equipment:access-port/tapi-equipment:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping physical-span-ref {\r
+        leaf physical-span-uuid {\r
+               type leafref {\r
+                path '/tapi-common:context/tapi-equipment:physical-context/tapi-equipment:physical-span/tapi-equipment:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping abstract-strand-ref {\r
+       uses physical-span-ref;\r
+        leaf abstract-strand-local-id {\r
+               type leafref {\r
+                path '/tapi-common:context/tapi-equipment:physical-context/tapi-equipment:physical-span/tapi-equipment:abstract-strand/tapi-equipment:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    identity CONNECTOR_AND_PIN_ORIENTATION {\r
+        description "none";\r
+    }\r
+    identity CONNECTOR_AND_PIN_ORIENTATION_MALE {\r
+        base CONNECTOR_AND_PIN_ORIENTATION;\r
+        description "The connecting elements are dominantly protrusions.";\r
+    }\r
+    identity CONNECTOR_AND_PIN_ORIENTATION_FEMALE {\r
+        base CONNECTOR_AND_PIN_ORIENTATION;\r
+        description "The connecting elements are dominantly indentations.";\r
+    }\r
+    identity CONNECTOR_AND_PIN_ORIENTATION_SYMMETRIC_NEUTRAL {\r
+        base CONNECTOR_AND_PIN_ORIENTATION;\r
+        description "The pin (and housing) orientation combination is such that it is symmetric so a connector is compatible with itself.\r
+            The connecting element may be a surface rather than protrusions or indentations.";\r
+    }\r
+    identity EQUIPMENT_CATEGORY {\r
+        description "none";\r
+    }\r
+    identity EQUIPMENT_CATEGORY_SUBRACK {\r
+        base EQUIPMENT_CATEGORY;\r
+        description "An assembly with holders designed to accommodate CIRCUIT_PACKs. \r
+            The assembly is designed to be mounted in a RACK.";\r
+    }\r
+    identity EQUIPMENT_CATEGORY_CIRCUIT_PACK {\r
+        base EQUIPMENT_CATEGORY;\r
+        description "An assembly with connectors compatible with those in a holder.\r
+            The assembly is designed to be mounted in a holder (SLOT) of a SUBRACK.\r
+            May also support holders (SLOTs) for SMALL_FORMFACTOR_PLUGGABLEs.";\r
+    }\r
+    identity EQUIPMENT_CATEGORY_SMALL_FORMFACTOR_PLUGGABLE {\r
+        base EQUIPMENT_CATEGORY;\r
+        description "A small assembly (compared to a CIRCUIT_PACK) with connectors compatible with those in a holder.\r
+            The assembly is designed to be mounted in a holder (SLOT) of a CIRCUIT_PACK or STAND_ALONE_UNIT.";\r
+    }\r
+    identity EQUIPMENT_CATEGORY_STAND_ALONE_UNIT {\r
+        base EQUIPMENT_CATEGORY;\r
+        description "An assembly with connectors for cabling and potentially with holders.\r
+            The assembly is designed to be mounted in a freeform environment (on a table or simple mechanical cabinet).\r
+            May support holders (SLOTs) for CIRCUIT_PACKs or for SMALL_FORMFACTOR_PLUGGABLEs.";\r
+    }\r
+    identity EQUIPMENT_CATEGORY_RACK {\r
+        base EQUIPMENT_CATEGORY;\r
+        description "A mechanical assembly with cabling and predefined mounting points for particular SUBRACK types.\r
+            The assembly is designed to be mounted on the floor in a row with other RACKs.";\r
+    }\r
+    identity HOLDER_CATEGORY {\r
+        description "none";\r
+    }\r
+    identity HOLDER_CATEGORY_SLOT {\r
+        base HOLDER_CATEGORY;\r
+        description "A guided holder with fixed connectors.\r
+            The guided holder is designed to take a particular form of CIRCUIT_PACK or SMALL_FORMFACTOR_PLUGGABLE";\r
+    }\r
+    identity EQUIPMENT_OBJECT_TYPE {\r
+        description "none";\r
+    }\r
+    identity EQUIPMENT_OBJECT_TYPE_DEVICE {\r
+        base EQUIPMENT_OBJECT_TYPE;\r
+        description "none";\r
+    }\r
+    identity EQUIPMENT_OBJECT_TYPE_ACCESS_PORT {\r
+        base EQUIPMENT_OBJECT_TYPE;\r
+        description "none";\r
+    }\r
+    identity EQUIPMENT_OBJECT_TYPE_EQUIPMENT {\r
+        base EQUIPMENT_OBJECT_TYPE;\r
+        description "none";\r
+    }\r
+    identity EQUIPMENT_OBJECT_TYPE_HOLDER {\r
+        base EQUIPMENT_OBJECT_TYPE;\r
+        description "none";\r
+    }\r
+    identity EQUIPMENT_OBJECT_TYPE_PHYSICAL_SPAN {\r
+        base EQUIPMENT_OBJECT_TYPE;\r
+        description "none";\r
+    }\r
+    identity EQUIPMENT_OBJECT_TYPE_ABSTRACT_STRAND {\r
+        base EQUIPMENT_OBJECT_TYPE;\r
+        description "none";\r
+    }\r
+    typedef connector-and-pin-orientation {\r
+        type identityref {\r
+            base CONNECTOR_AND_PIN_ORIENTATION;\r
+        }\r
+        description "Most connector schemes are asymmetric such that there are two orientations of the connector where a mating is only possible between two connectors of different orientations. \r
+            A multi-pin connector may have a mix of pin orientations. In this case, it is expected that the dominant orientation of pin is chosen for the connector orientation.";\r
+    }\r
+    typedef equipment-category {\r
+        type identityref {\r
+            base EQUIPMENT_CATEGORY;\r
+        }\r
+        description "The form of equipment.";\r
+    }\r
+    typedef holder-category {\r
+        type identityref {\r
+            base HOLDER_CATEGORY;\r
+        }\r
+        description "The form of holder.";\r
+    }\r
+    grouping connector-pin-address {\r
+        leaf connector-identification {\r
+            type string;\r
+            description "Identification of the Connector in the context of the referenced Equipment.";\r
+        }\r
+        leaf pin-identification {\r
+            type string;\r
+            description "Where relevant, identification of the Pin in the context of the connector.\r
+                Where the whole connector is used, then individual Pins need not be identified.\r
+                Simple alternative to pinAndRole.";\r
+        }\r
+        leaf equipment-uuid {\r
+            type tapi-common:uuid;\r
+            description "Reference to the Equipment that is fitted with the Connector/Pin.";\r
+        }\r
+        list pin-and-role {\r
+            config false;\r
+            uses pin-and-role;\r
+            description "If there is more than one pin used in a connector and/or there is a need to identify the role of one or more pins then this property can be used.\r
+                For simple cases pinIdentification can be used instead.";\r
+        }\r
+        description "The identification of the location of the Connector and/or Pin.";\r
+    }\r
+    grouping actual-equipment {\r
+        list actual-non-field-replaceable-module {\r
+            config false;\r
+            uses actual-non-field-replaceable-module;\r
+            description "none";\r
+        }\r
+        container common-actual-properties {\r
+            config false;\r
+            uses common-actual-properties;\r
+            description "none";\r
+        }\r
+        container common-equipment-properties {\r
+            config false;\r
+            uses common-equipment-properties;\r
+            description "none";\r
+        }\r
+        description "The equipment that is actually present in the physical network.\r
+            It will expose all dynamic properties and some critical static properties.";\r
+    }\r
+    grouping actual-holder {\r
+        container common-holder-properties {\r
+            config false;\r
+            uses common-holder-properties;\r
+            description "none";\r
+        }\r
+        description "A holder in the ActualEquipment.";\r
+    }\r
+    grouping actual-non-field-replaceable-module {\r
+        container common-actual-properties {\r
+            config false;\r
+            uses common-actual-properties;\r
+            description "none";\r
+        }\r
+        container common-equipment-properties {\r
+            config false;\r
+            uses common-equipment-properties;\r
+            description "none";\r
+        }\r
+        description "A structure that represents an actual equipment that cannot be replaced in the field.\r
+            Is simply a subordinate part of an ActualEquipment (FRU). \r
+            Does not have any exposed holders (any associated holders are assumed to belong to the containing FRU).\r
+            Does not have any connectors (any associated connectors are assumed to belong to the containing FRU).\r
+            ";\r
+    }\r
+    grouping common-actual-properties {\r
+        leaf asset-instance-identifier {\r
+            type string;\r
+            description "This attribute represents the asset identifier of this instance from the manufacturer's perspective.";\r
+        }\r
+        leaf is-powered {\r
+            type boolean;\r
+            description "The state of the power being supplied to the equipment.\r
+                Note that this attribute summarizes the power state. \r
+                Full details on the actual power system would be provided from a number of PC instances representing the relevant parts of the Power function (e.g. different voltage supplies).";\r
+        }\r
+        leaf manufacture-date {\r
+            type tapi-common:date-and-time;\r
+            description "This attribute represents the date on which this instance is manufactured.";\r
+        }\r
+        leaf serial-number {\r
+            type string;\r
+            description "This attribute represents the serial number of this instance.";\r
+        }\r
+        leaf temperature {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "The measured temperature of the Equipment.";\r
+        }\r
+        description "Properties common to actual Equipment.";\r
+    }\r
+    grouping common-equipment-properties {\r
+        leaf asset-type-identifier {\r
+            type string;\r
+            description "Represents the invariant properties of the equipment asset allocated by the operator that define and characterize the type.";\r
+        }\r
+        leaf equipment-type-description {\r
+            type string;\r
+            description "Text describing the type of Equipment.";\r
+        }\r
+        leaf equipment-type-identifier {\r
+            type string;\r
+            description "This attribute identifies the part type of the equipment.";\r
+        }\r
+        leaf equipment-type-name {\r
+            type string;\r
+            description "This attribute identifies the type of the equipment.";\r
+        }\r
+        leaf equipment-type-version {\r
+            type string;\r
+            description "This attribute identifies the version of the equipment.";\r
+        }\r
+        leaf manufacturer-identifier {\r
+            type string;\r
+            description "The formal unique identifier of the manufacturer.";\r
+        }\r
+        leaf manufacturer-name {\r
+            type string;\r
+            description "The formal name of the manufacturer of the Equipment.";\r
+        }\r
+        description "Properties common to all aspects of Equipment.";\r
+    }\r
+    grouping common-holder-properties {\r
+        leaf holder-category {\r
+            type holder-category;\r
+            description "The type of holder.";\r
+        }\r
+        leaf is-guided {\r
+            type boolean;\r
+            description "This attribute indicates whether the holder has guides that constrain the position of the equipment in the holder or not.";\r
+        }\r
+        leaf holder-location {\r
+            type string;\r
+            description "The relative position of the holder in the context of its containing equipment along with the position of that containing Equipment (and further recursion).";\r
+        }\r
+        description "Properties common to all aspects of Holder.";\r
+    }\r
+    grouping expected-equipment {\r
+        list expected-non-field-replaceable-module {\r
+            config false;\r
+            uses expected-non-field-replaceable-module;\r
+            description "none";\r
+        }\r
+        list expected-holder {\r
+            config false;\r
+            uses expected-holder;\r
+            description "none";\r
+        }\r
+        container common-equipment-properties {\r
+            config false;\r
+            uses common-equipment-properties;\r
+            description "none";\r
+        }\r
+        description "A definition of the restrictions on the equipment that is expected to be present in the physical network at a particular 'place'.\r
+            The expected equipment will state the type and may constrain any other invariant properties. \r
+            It may also provide desired ranges for dynamic properties.";\r
+    }\r
+    grouping expected-holder {\r
+        container common-holder-properties {\r
+            config false;\r
+            uses common-holder-properties;\r
+            description "none";\r
+        }\r
+        description "A definition of a holder expected in the ActualEquipment (i.e. an ActualHolder) as part of the constraints provided by the ExpectedEquipment.";\r
+    }\r
+    grouping expected-non-field-replaceable-module {\r
+        container common-equipment-properties {\r
+            config false;\r
+            uses common-equipment-properties;\r
+            description "none";\r
+        }\r
+        description "A structure that represents an expected equipment that cannot be replaced in the field.\r
+            Is simply a subordinate part of an ExpectedEquipment (FRU). \r
+            Does not have any exposed holders (any associated holders are assumed to belong to the containing FRU).\r
+            Does not have any connectors (any associated connectors are assumed to belong to the containing FRU).\r
+            ";\r
+    }\r
+    typedef equipment-object-type {\r
+        type identityref {\r
+            base EQUIPMENT_OBJECT_TYPE;\r
+        }\r
+        description "The list of TAPI Equipment Object types/classes.";\r
+    }\r
+    grouping pin-and-role {\r
+        leaf location-in-connector {\r
+            type string;\r
+            config false;\r
+            description "The named location of the pin in the context of the connector.\r
+                This is likely to be the normal numbering/naming for the type of connetor, e.g. '7', '6-GND', 'Common' etc.";\r
+        }\r
+        leaf-list pin-role {\r
+            type string;\r
+            config false;\r
+            description "It is not always necessary to specify a role (or list of roles) as the connector locationInConnector may be sufficient (as these are sometimes clearly role based.\r
+                Each entry represents a role in the context of the specific access port.\r
+                Each entry ties the pin to a functional element in the associated NEP(s) etc.\r
+                For example:\r
+                - a pin might carry several distinct signals where each signal is idenitified in the list\r
+                - a pin may carry a signal and power\r
+                - a signal carried by a pin may be the receive flow (INPUT) to a bidirectional NEP or the transmit flow (OUTPUT) or indeed both (BIDIRECTIONAL).";\r
+        }\r
+        leaf pin-name {\r
+            type string;\r
+            config false;\r
+            description "Where the pin has a distinct location identifier and a distinct name this field can be used for the name.\r
+                For example:\r
+                - locationInConnector = 6, pinName = GND";\r
+        }\r
+        description "Provides an opportunity, for a pin, to give the location of the pin and the role of the pin.";\r
+    }\r
+\r
+    /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping equipment {\r
+        list contained-holder {\r
+            key 'uuid';\r
+            config false;\r
+            uses holder;\r
+            description "References the Holder in an Equipment that is available to take other Equipments.\r
+                For example:\r
+                - Slot in a sub-rack\r
+                - Slot in a Field Replaceable Unit that can take a small form-factor pluggable.";\r
+        }\r
+        leaf category {\r
+            type equipment-category;\r
+            config false;\r
+            description "This attribute provides the identifier for the form of equipments regarded as having particular shared characteristics.";\r
+        }\r
+        leaf equipment-location {\r
+            type string;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf geographical-location {\r
+            type string;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf is-expected-actual-mismatch {\r
+            type boolean;\r
+            config false;\r
+            description "none";\r
+        }\r
+        list expected-equipment {\r
+            uses expected-equipment;\r
+            description "none";\r
+        }\r
+        container actual-equipment {\r
+            uses actual-equipment;\r
+            description "none";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "Represents any relevant physical thing. \r
+            Can be either field replaceable or not field replaceable.\r
+            Note: The model is currently constrained to inside plant.";\r
+    }\r
+    grouping holder {\r
+        container occupying-fru {\r
+            uses equipment-ref;\r
+            config false;\r
+            description "The FRU that is occupying the holder. \r
+                A holder may be unoccupied. \r
+                An FRU may occupy more hat one holder (using or blocking are intentionally not distinguished here).";\r
+        }\r
+        container expected-holder {\r
+            config false;\r
+            uses expected-holder;\r
+            description "none";\r
+        }\r
+        container actual-holder {\r
+            config false;\r
+            uses actual-holder;\r
+            description "none";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "Represents a space in an equipment in which another equipment can be fitted in the field.";\r
+    }\r
+    grouping access-port {\r
+        list connector-pin {\r
+            key 'connector-identification pin-identification equipment-uuid';\r
+            config false;\r
+            min-elements 1;\r
+            uses connector-pin-address;\r
+            description "The list of Pins that support the AccessPort.";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "A group of pins that together support a signal group where any one pin removed from the group will prevent all signals of the signal group from flowing successfully.\r
+            In some cases the AccessPort may simply reference a single connector (e.g., where the pin-connector association is simpe such that the AccessPort references all pinsof one connector).";\r
+    }\r
+    grouping physical-span {\r
+        list access-port {\r
+            uses access-port-ref;\r
+            key "device-uuid access-port-uuid";\r
+            config false;\r
+            min-elements 2;\r
+            max-elements 2;\r
+            description "none";\r
+        }\r
+        list abstract-strand {\r
+            key 'local-id';\r
+            config false;\r
+            uses abstract-strand;\r
+            description "Both the serial segments that form an end-end strand and the parallel end-end strands.";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "An adjacency between AccessPorts. \r
+            The adjacency is supported by a group of strands between pins of the AccessPorts.\r
+            This is a physical abstraction.";\r
+    }\r
+    grouping abstract-strand {\r
+        list adjacent-strand {\r
+               uses abstract-strand-ref;\r
+               key "physical-span-uuid abstract-strand-local-id";\r
+            config false;\r
+            description "none";\r
+        }\r
+        list spliced-strand {\r
+               uses abstract-strand-ref;\r
+               key "physical-span-uuid abstract-strand-local-id";\r
+            config false;\r
+            max-elements 2;\r
+            description "none";\r
+        }\r
+        list connector-pin {\r
+            key 'connector-identification pin-identification equipment-uuid';\r
+            config false;\r
+            max-elements 2;\r
+            uses connector-pin-address;\r
+            description "A strand can end on two or more Pins (usually 2 pins, but a strand my be spliced to split a signal). This model supports only 2 ended strands.\r
+                A abstract strand may be spliced at both ends and hence have no direct relationship to pins or may be connected to pins at one or both ends.\r
+                In the essential model these Pins would be on connectors that plug in to connectors on Equipments.\r
+                The AbstractStrand is extended to the pins of the AccessPort which are the Pins on the Connectors of the Equipment.\r
+                In some cases it may not be relevant to represent the pin detail and hence the reference is to a connector alone.";\r
+        }\r
+        list strand-media-characteristics {\r
+            key 'value-name';\r
+            config false;\r
+            uses tapi-common:name-and-value;\r
+            description "Relevant physical properties of the abstract strand.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "This object represents an abstraction of one or more strands in series that provides sufficient detail to enable appropriate engineering.\r
+            A strand represents a continuous long, thin piece of a medium such as glass fiber or copper wire.\r
+            In this model a Strand:\r
+            - a strand has two ends\r
+            - a splice can only be between 2 strands.\r
+            - the end of a strand may have a splice, a connector or be hidden\r
+            - only one end can be hidden in an equipment\r
+            - where a cable has more than two end each strand only goes between two of the ends\r
+            This model does NOT account for multiple copper strands being spliced.";\r
+    }\r
+    grouping device {\r
+        list equipment {\r
+            key 'uuid';\r
+            config false;\r
+            uses equipment;\r
+            description "none";\r
+        }\r
+        list access-port {\r
+            key 'uuid';\r
+            config false;\r
+            uses access-port;\r
+            description "none";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "A logical grouping of Equipments and AccessPorts that are closely located and form a support a coherent system of related functions.";\r
+    }\r
+    grouping physical-context {\r
+        list device {\r
+            key 'uuid';\r
+            config false;\r
+            uses device;\r
+            description "none";\r
+        }\r
+        list physical-span {\r
+            key 'uuid';\r
+            config false;\r
+            uses physical-span;\r
+            description "none";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "none";\r
+    }\r
+    grouping supporting-physical-span {\r
+        container physical-span {\r
+            uses physical-span-ref;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping supporting-access-port {\r
+        container access-port {\r
+            uses access-port-ref;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+    /**************************\r
+    * package interfaces\r
+    **************************/ \r
+    rpc get-device-list {\r
+        description "none";\r
+        output {\r
+            list device {\r
+               key 'uuid';\r
+                uses device;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-physical-span-list {\r
+        description "none";\r
+        output {\r
+            list physical-span {\r
+               key 'uuid';\r
+                uses physical-span;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-device {\r
+        description "none";\r
+        input {\r
+            leaf uuid {\r
+                type tapi-common:uuid;\r
+                description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable.\r
+                    An UUID carries no semantics with respect to the purpose or state of the entity.\r
+                    UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.\r
+                    Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} \r
+                    Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";\r
+            }\r
+        }\r
+        output {\r
+            container device {\r
+                uses device;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-physical-span {\r
+        description "none";\r
+        input {\r
+            leaf uuid {\r
+                type tapi-common:uuid;\r
+                description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable.\r
+                    An UUID carries no semantics with respect to the purpose or state of the entity.\r
+                    UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.\r
+                    Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} \r
+                    Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";\r
+            }\r
+        }\r
+        output {\r
+            container physical-span {\r
+                uses physical-span;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-eth@2020-04-23.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-eth@2020-04-23.yang
new file mode 100644 (file)
index 0000000..18dc7ad
--- /dev/null
@@ -0,0 +1,1921 @@
+module tapi-eth {\r
+    namespace "urn:onf:otcc:yang:tapi-eth";\r
+    prefix tapi-eth;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    import tapi-connectivity {\r
+        prefix tapi-connectivity;\r
+    }\r
+    import tapi-oam {\r
+        prefix tapi-oam;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W87JJX8d$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Ethernet Model definitions.\r
+        Source: TapiEth.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+          <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W9QHQlY9$ >\r
+          and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+          <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W0qYvUcv$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+          As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+          The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W--ZdU-9$ >.\r
+          YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0";\r
+    revision 2020-04-23 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6Wy4g9HYF$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W4x7StMd$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W-egA4GT$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W4x7StMd$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W3pXLiCK$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W4x7StMd$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W_VCAFAh$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W4x7StMd$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W_WUahPW$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W35lRhTW$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W-v3LmU-$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W8JgYRPN$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6W5OrGOFi$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6WylpvjoG$ >";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {\r
+        container eth-connection-end-point-spec {\r
+            uses eth-connection-end-point-spec;\r
+            description "Augments the base LayerProtocol information in ConnectionEndPoint with ETH-specific information";\r
+        }\r
+        description "Augments the base LayerProtocol information in ConnectionEndPoint with ETH-specific information";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job" {\r
+        container eth-loopback-job {\r
+            uses eth-loopback-job;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg" {\r
+        container eth-meg-spec {\r
+            uses eth-meg-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep" {\r
+        container eth-mep-spec {\r
+            uses eth-mep-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mip" {\r
+        container eth-mip-spec {\r
+            uses eth-mip-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job" {\r
+        container eth-pro-active-2way-measurement-job {\r
+            uses eth-pro-active-2way-measurement-job;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job" {\r
+        container eth-link-trace-job {\r
+            uses eth-link-trace-job;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job" {\r
+        container eth-test-job {\r
+            uses eth-test-job;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job" {\r
+        container eth-pro-active-1way-measurement-job {\r
+            uses eth-pro-active-1way-measurement-job;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-pro-active-dm-performance-data {\r
+            uses eth-pro-active-dm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data" {\r
+        container eth-pro-active-dm-performance-data {\r
+            uses eth-pro-active-dm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-pro-active-lm-performance-data {\r
+            uses eth-pro-active-lm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data" {\r
+        container eth-pro-active-lm-performance-data {\r
+            uses eth-pro-active-lm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-on-demand-dm-performance-data {\r
+            uses eth-on-demand-dm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-on-demand-1-lm-performance-data {\r
+            uses eth-on-demand-1-lm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-on-demand-1-dm-performance-data {\r
+            uses eth-on-demand-1-dm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-pro-active-1-dm-performance-data {\r
+            uses eth-pro-active-1-dm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data" {\r
+        container eth-pro-active-1-dm-performance-data {\r
+            uses eth-pro-active-1-dm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-pro-active-1-lm-performance-data {\r
+            uses eth-pro-active-1-lm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data" {\r
+        container eth-pro-active-1-lm-performance-data {\r
+            uses eth-pro-active-1-lm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job" {\r
+        container eth-on-demand-1way-measurement-job {\r
+            uses eth-on-demand-1way-measurement-job;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job" {\r
+        container eth-on-demand-2way-measurement-job {\r
+            uses eth-on-demand-2way-measurement-job;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data" {\r
+        container eth-on-demand-1-dm-performance-data {\r
+            uses eth-on-demand-1-dm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data" {\r
+        container eth-on-demand-1-lm-performance-data {\r
+            uses eth-on-demand-1-lm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data" {\r
+        container eth-on-demand-dm-performance-data {\r
+            uses eth-on-demand-dm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-on-demand-lm-performance-data {\r
+            uses eth-on-demand-lm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data" {\r
+        container eth-on-demand-lm-performance-data {\r
+            uses eth-on-demand-lm-performance-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data" {\r
+        container eth-1-dm-threshold-data {\r
+            uses eth-1-dm-threshold-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data" {\r
+        container eth-1-lm-threshold-data {\r
+            uses eth-1-lm-threshold-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data" {\r
+        container eth-dm-threshold-data {\r
+            uses eth-dm-threshold-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data" {\r
+        container eth-lm-threshold-data {\r
+            uses eth-lm-threshold-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-link-trace-result-data {\r
+            uses eth-link-trace-result-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-test-result-data {\r
+            uses eth-test-result-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data" {\r
+        container eth-loopback-result-data {\r
+            uses eth-loopback-result-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping eth-ctp-pac {\r
+        leaf-list auxiliary-function-position-sequence {\r
+            type uint64;\r
+            description "This attribute indicates the positions (i.e., the relative order) of all the MEP, MIP, and TCS objects which are associated with the CTP.";\r
+        }\r
+        leaf vlan-config {\r
+            type uint64;\r
+            description "This attribute models the ETHx/ETH-m_A_So_MI_Vlan_Config information defined in G.8021.\r
+                range of type : -1, 0, 1..4094";\r
+        }\r
+        leaf csf-rdi-fdi-enable {\r
+            type boolean;\r
+            description "This attribute models the MI_CSFrdifdiEnable information defined in G.8021.";\r
+        }\r
+        leaf csf-report {\r
+            type boolean;\r
+            description "This attribute models the MI_CSF_Reported information defined in G.8021.\r
+                range of type : true, false";\r
+        }\r
+        leaf-list filter-config-snk {\r
+            type mac-address;\r
+            description "This attribute models the FilteConfig MI defined in 8.3/G.8021. It indicates the configured filter action for each of the 33 group MAC addresses for control frames. The 33 MAC addresses are:\r
+                01-80-C2-00-00-10, \r
+                01-80-C2-00-00-00 to 01-80-C2-00-00-0F, and \r
+                01-80-C2-00-00-20 to 01-80-C2-00-00-2F.\r
+                The filter action is Pass or Block. \r
+                If the destination address of the incoming ETH_CI_D matches one of the above addresses, the filter process shall perform the corresponding configured filter action. \r
+                If none of the above addresses match, the ETH_CI_D is passed.";\r
+        }\r
+        leaf mac-length {\r
+            type uint64;\r
+            default "2000";\r
+            description "This attribute models the MAC_Lenght MI defined in 8.6/G.8021 for the MAC Length Check process. It indicates the allowed maximum frame length in bytes.\r
+                range of type : 1518, 1522, 2000";\r
+        }\r
+        container filter-config {\r
+            uses control-frame-filter;\r
+            description "This attribute models the FilterConfig MI defined in section 8.3/G.8021. It indicates the configured filter action for each of the 33 group MAC addresses for control frames. The 33 MAC addresses are:\r
+                - All bridges address: 01-80-C2-00-00-10,\r
+                - Reserved addresses: 01-80-C2-00-00-00 to 01-80-C2-00-00-0F,\r
+                - GARP Application addresses: 01-80-C2-00-00-20 to 01-80-C2-00-00-2F.\r
+                The filter action is Pass or Block. \r
+                If the destination address of the incoming ETH_CI_D matches one of the above addresses, the filter process shall perform the corresponding configured filter action. \r
+                If none of the above addresses match, the ETH_CI_D is passed.";\r
+        }\r
+        leaf is-ssf-reported {\r
+            type boolean;\r
+            description "This attribute provisions whether the SSF defect should be reported as fault cause or not.\r
+                It models the ETH-LAG_FT_Sk_MI_SSF_Reported defined in G.8021.";\r
+        }\r
+        leaf pll-thr {\r
+            type uint64;\r
+            description "This attribute provisions the threshold for the number of active ports. If the number of active ports is more than zero but less than the provisioned threshold, a cPLL (Partial Link Loss) is raised. See section 9.7.1.2 of G.8021.\r
+                range of type : 0..number of ports";\r
+        }\r
+        leaf actor-oper-key {\r
+            type uint64;\r
+            config false;\r
+            description "See 802.1AX:\r
+                The current operational value of the Key for the Aggregator. The administrative Key value may differ from the operational Key value for the reasons discussed in 5.6.2.\r
+                The meaning of particular Key values is of local significance.\r
+                range of type : 16 bit";\r
+        }\r
+        leaf actor-system-id {\r
+            type mac-address;\r
+            description "See 802.1AX:\r
+                A MAC address used as a unique identifier for the System that contains this Aggregator.";\r
+        }\r
+        leaf actor-system-priority {\r
+            type uint64;\r
+            description "See 802.1AX:\r
+                Indicating the priority associated with the Actors System ID.\r
+                range of type : 2-octet";\r
+        }\r
+        leaf collector-max-delay {\r
+            type uint64;\r
+            description "See 802.1AX:\r
+                The value of this attribute defines the maximum delay, in tens of microseconds, that may be imposed by the Frame Collector between receiving a frame from an Aggregator Parser, and either delivering the frame to its MAC Client or discarding the frame (see IEEE 802.1AX clause 5.2.3.1.1).\r
+                range of type : 16-bit";\r
+        }\r
+        leaf data-rate {\r
+            type uint64;\r
+            config false;\r
+            description "See 802.1AX:\r
+                The current data rate, in bits per second, of the aggregate link. The value is calculated as N times the data rate of a single link in the aggregation, where N is the number of active links.";\r
+        }\r
+        leaf partner-oper-key {\r
+            type uint64;\r
+            config false;\r
+            description "See 802.1AX:\r
+                The current operational value of the Key for the Aggregators current protocol Partner. If the aggregation is manually configured, this Key value will be a value assigned by the local System.\r
+                range of type : 16-bit";\r
+        }\r
+        leaf partner-system-id {\r
+            type mac-address;\r
+            config false;\r
+            description "See 802.1AX:\r
+                A MAC address consisting of the unique identifier for the current protocol Partner of this Aggregator. A value of zero indicates that there is no known Partner. If the aggregation is manually configured, this System ID value will be a value assigned by the local System.";\r
+        }\r
+        leaf partner-system-priority {\r
+            type uint64;\r
+            config false;\r
+            description "See 802.1AX:\r
+                Indicates the priority associated with the Partners System ID. If the aggregation is manually configured, this System Priority value will be a value assigned by the local System.\r
+                range of type : 2-octet";\r
+        }\r
+        leaf csf-config {\r
+            type csf-config;\r
+            description "This attribute models the combination of all CSF related MI signals (MI_CSF_Enable, MI_CSFrdifdi_Enable, MI_CSFdci_Enable) as defined in G.8021.\r
+                range of type : true, false";\r
+        }\r
+        container traffic-shaping {\r
+            uses traffic-shaping-pac;\r
+            description "none";\r
+        }\r
+        container traffic-conditioning {\r
+            uses traffic-conditioning-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-connection-end-point-spec {\r
+        container ety-term {\r
+            uses ety-termination-pac;\r
+            description "none";\r
+        }\r
+        container eth-term {\r
+            uses eth-termination-pac;\r
+            description "none";\r
+        }\r
+        container eth-ctp {\r
+            uses eth-ctp-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-termination-pac {\r
+        container priority-regenerate {\r
+            uses priority-mapping;\r
+            description "This attribute models the ETHx/ETH-m _A_Sk_MI_P_Regenerate information defined in G.8021.";\r
+        }\r
+        leaf ether-type {\r
+            type vlan-type;\r
+            description "This attribute models the ETHx/ETH-m _A_Sk_MI_Etype information defined in G.8021.";\r
+        }\r
+        leaf-list filter-config-1 {\r
+            type mac-address;\r
+            description "This attribute models the ETHx/ETH-m_A_Sk_MI_Filter_Config information defined in G.8021.\r
+                It indicates the configured filter action for each of the 33 group MAC addresses for control frames.\r
+                The 33 MAC addresses are:\r
+                01-80-C2-00-00-10, \r
+                01-80-C2-00-00-00 to 01-80-C2-00-00-0F, and \r
+                01-80-C2-00-00-20 to 01-80-C2-00-00-2F.\r
+                The filter action is Pass or Block. \r
+                If the destination address of the incoming ETH_CI_D matches one of the above addresses, the filter process shall perform the corresponding configured filter action. \r
+                If none of the above addresses match, the ETH_CI_D is passed.\r
+                range of type : MacAddress: \r
+                01-80-C2-00-00-10, \r
+                01-80-C2-00-00-00 to \r
+                01-80-C2-00-00-0F, and \r
+                01-80-C2-00-00-20 to \r
+                01-80-C2-00-00-2F;\r
+                ActionEnum:\r
+                PASS, BLOCK";\r
+        }\r
+        leaf frametype-config {\r
+            type frame-type;\r
+            description "This attribute models the ETHx/ETH-m_A_Sk_MI_Frametype_Config information defined in G.8021.\r
+                range of type : see Enumeration";\r
+        }\r
+        leaf port-vid {\r
+            type vid;\r
+            default "1";\r
+            description "This attribute models the ETHx/ETH-m _A_Sk_MI_PVID information defined in G.8021.";\r
+        }\r
+        leaf priority-code-point-config {\r
+            type pcp-coding;\r
+            description "This attribute models the ETHx/ETH-m _A_Sk_MI_PCP_Config information defined in G.8021.\r
+                range of type : see Enumeration";\r
+        }\r
+        description "This object class models the Ethernet Flow Termination function located at a layer boundary.";\r
+    }\r
+    grouping ety-termination-pac {\r
+        leaf is-fts-enabled {\r
+            type boolean;\r
+            description "This attribute indicates whether Forced Transmitter Shutdown (FTS) is enabled or not. It models the ETYn_TT_So_MI_FTSEnable information.";\r
+        }\r
+        leaf is-tx-pause-enabled {\r
+            type boolean;\r
+            description "This attribute identifies whether the Transmit Pause process is enabled or not. It models the MI_TxPauseEnable defined in G.8021.";\r
+        }\r
+        leaf phy-type {\r
+            type ety-phy-type;\r
+            config false;\r
+            description "This attribute identifies the PHY type of the ETY trail termination. See IEEE 802.3 clause 30.3.2.1.2.";\r
+        }\r
+        leaf-list phy-type-list {\r
+            type ety-phy-type;\r
+            config false;\r
+            description "This attribute identifies the possible PHY types that could be supported at the ETY trail termination. See IEEE 802.3 clause 30.3.2.1.3.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping traffic-conditioning-pac {\r
+        list prio-config-list {\r
+            key 'queue-id';\r
+            config false;\r
+            uses priority-configuration;\r
+            description "This attribute indicates the Priority Splitter function for the mapping of the Ethernet frame priority (ETH_CI_P) values to the output queue.";\r
+        }\r
+        list cond-config-list {\r
+            key 'queue-id';\r
+            config false;\r
+            uses traffic-conditioning-configuration;\r
+            description "This attribute indicates for the conditioner process the conditioning parameters:\r
+                - Queue ID: Indicates the Queue ID\r
+                - Committed Information Rate (CIR): number of bits per second\r
+                - Committed Burst Size (CBS): number of bytes\r
+                - Excess Information Rate (EIR): number of bits per second\r
+                - Excess Burst Size (EBS): number of bytes\r
+                - Coupling flag (CF): 0 or 1\r
+                - Color mode (CM): color-blind and color-aware.";\r
+        }\r
+        leaf codirectional {\r
+            type boolean;\r
+            config false;\r
+            description "This attribute indicates the direction of the conditioner. The value of true means that the conditioner (modeled as a TCS Sink according to G.8021) is associated with the sink part of the containing CTP. The value of false means that the conditioner (modeled as a TCS Sink according to G.8021) is associated with the source part of the containing CTP.";\r
+        }\r
+        description "This object class models the ETH traffic conditioning function as defined in G.8021.\r
+            Basic attributes: codirectional, condConfigList, prioConfigList";\r
+    }\r
+    grouping traffic-shaping-pac {\r
+        list prio-config-list {\r
+            key 'queue-id';\r
+            config false;\r
+            uses priority-configuration;\r
+            description "This attribute configures the Priority Splitter function for the mapping of the Ethernet frame priority (ETH_CI_P) values to the output queue.";\r
+        }\r
+        list queue-config-list {\r
+            key 'queue-id';\r
+            config false;\r
+            uses queue-configuration;\r
+            description "This attribute configures the Queue depth and Dropping threshold parameters of the Queue process. The Queue depth sets the maximum size of the queue in bytes. An incoming ETH_CI traffic unit is dropped if there is insufficient space in the queue to hold the whole unit. The Dropping threshold sets the threshold of the queue. If the queue is filled beyond this threshold, incoming ETH_CI traffic units accompanied by the ETH_CI_DE signal set are dropped.";\r
+        }\r
+        leaf sched-config {\r
+            type scheduling-configuration;\r
+            config false;\r
+            description "This attribute configures the scheduler process. The value of this attribute is for further study because it is for further study in G.8021.\r
+                Scheduler is a pointer to a Scheduler object, which is to be defined in the future (because in G.8021, this is FFS).\r
+                Note that the only significance of the GTCS function defined in G.8021 is the use of a common scheduler for shaping. Given that, G.8052 models the common scheduler feature by having a common value for this attribute.";\r
+        }\r
+        leaf codirectional {\r
+            type boolean;\r
+            config false;\r
+            description "This attribute indicates the direction of the shaping function. The value of true means that the shaping (modeled as a TCS Source according to G.8021) is associated with the source part of the containing CTP. The value of false means that the shaping (modeled as a TCS Source according to G.8021) is associated with the sink part of the containing CTP.";\r
+        }\r
+        description "This object class models the ETH traffic shaping function as defined in G.8021.\r
+            Basic attribute: codirectional, prioConfigList, queueConfigList, schedConfig";\r
+    }\r
+    grouping eth-meg-spec {\r
+        leaf client-mel {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-mep-spec {\r
+        container eth-mep-common {\r
+            uses eth-mep-common;\r
+            description "none";\r
+        }\r
+        container eth-mep-source-pac {\r
+            uses eth-mep-source;\r
+            description "none";\r
+        }\r
+        container eth-mep-sink {\r
+            uses eth-mep-sink;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-mip-spec {\r
+        leaf mip-mac {\r
+            type mac-address;\r
+            config false;\r
+            description "This attribute contains the MAC address of the MIP instance.";\r
+        }\r
+        leaf is-full-mip {\r
+            type boolean;\r
+            config false;\r
+            description "This attribute indicates whether the MIP is a full MIP (true) or a down-half MIP (false).";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-loopback-job {\r
+        container eth-lb-msg {\r
+            uses eth-oam-msg-common-pac;\r
+            description "none";\r
+        }\r
+        leaf number {\r
+            type uint64;\r
+            description "G.8052: This parameter specifies how many LB messages to be sent for the LB_Series process.";\r
+        }\r
+        description "This class represents the Loopback (LB) process (send a series of LB messages carrying a test pattern to a particular MEP). The termination occurs at specified stop time (schedule attribute of OamJob).\r
+            This class models also the 'loopback discover' process, when destinationAddress is multicast.\r
+            When number is greater than 1, then the process is to perform a Loopback (LB) Series process (send a series of N LB messages to a particular MEP/MIP. ";\r
+    }\r
+    grouping eth-mep-common {\r
+        leaf mep-mac {\r
+            type mac-address;\r
+            config false;\r
+            description "This attribute contains the MAC Address of the MEP.";\r
+        }\r
+        leaf is-cc-enabled {\r
+            type boolean;\r
+            description "This attribute models the MI_CC_Enable signal defined in G.8021 and configured as specified in G8051.";\r
+        }\r
+        leaf cc-period {\r
+            type oam-period;\r
+            description "This attribute models the MI_CC_Period signal defined in G.8021 and configured as specified in G8051. \r
+                It is the period at which the CCM message should be sent. \r
+                Default values are: 3.33 ms for PS, 100 ms for PM, 1 s for FM.";\r
+        }\r
+        leaf cc-priority {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "7";\r
+            description "This attribute models the MI_CC_Pri signal defined in G.8021 and configured as specified in G8051. It is the priority at which the CCM message should be sent.";\r
+        }\r
+        leaf lck-period {\r
+            type oam-period;\r
+            description "This attribute models the MI_LCK_Period signal defined in G.8021 and configured as specified in G8051. It is the frequency at which the LCK messages should be sent.\r
+                range of type : 1s, 1min";\r
+        }\r
+        leaf lck-priority {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "7";\r
+            description "This attribute models the MI_LCK_Pri signal defined in G.8021 and configured as specified in G8051. It is the priority at which the LCK messages should be sent.";\r
+        }\r
+        description "Basic attributes: adminState, clientMel, megIdentifier, mepMac\r
+            Continuity Check Process related attributes: ccPeriod, ccPriority, isCcEnabled\r
+            Lock Process related attributes: lckPeriod, lckPriority\r
+            This object class models the MEP functions that are common to MEP Sink and MEP Source.";\r
+    }\r
+    grouping eth-mep-sink {\r
+        leaf-list dm-1-priority {\r
+            type uint64;\r
+            description "This attribute indicates the list of 1DM priorities for the MepSink.";\r
+        }\r
+        leaf ais-priority {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "7";\r
+            description "This attribute models the MI_AIS_Pri signal defined in G.8021 and configured as specified in G8051. It is the priority at which the AIS messages should be sent.";\r
+        }\r
+        leaf ais-period {\r
+            type oam-period;\r
+            description "This attribute models the MI_AIS_Period signal defined in G.8021 and configured as specified in G8051. It is the frequency at which the AIS messages should be sent.\r
+                range of type : 1s, 1min";\r
+        }\r
+        leaf is-csf-reported {\r
+            type boolean;\r
+            default "true";\r
+            description "This attribute models the MI_CSF_Reported signal defined in G.8021 and configured as specified in G8051. It configures whether the secondary failure CSF should be reported or not.";\r
+        }\r
+        leaf is-csf-rdi-fdi-enabled {\r
+            type boolean;\r
+            default "true";\r
+            description "This attribute models the MI_CSFrdifdiEnable signal defined in G.8021 and configured as specified in G8051.";\r
+        }\r
+        container bandwidth-report {\r
+            config false;\r
+            uses bandwidth-report;\r
+            description "This attribute models the content of the bandwidth report received by the MEP Sink from the peer MEP Source.";\r
+        }\r
+        leaf lm-degm {\r
+            type uint64;\r
+            default "10";\r
+            description "This attribute defines the number of consecutive bad seconds necessary for the 'degraded' detection. See also section 'Degraded signal defect (dDEG)' in G.8021.";\r
+        }\r
+        leaf lm-deg-thr {\r
+            type uint64;\r
+            default "30";\r
+            description "This attribute defines the threshold for declaring a 'bad second'. See also section 'Degraded signal defect (dDEG)' in G.8021.";\r
+        }\r
+        leaf lm-m {\r
+            type uint64 {\r
+                range "2..10";\r
+            }\r
+            default "10";\r
+            description "This attribute defines the number of consecutive good seconds necessary for the clearing of 'degraded'. See also section 'Degraded signal defect (dDEG)' in G.8021.";\r
+        }\r
+        leaf lm-tf-min {\r
+            type uint64;\r
+            description "This attribute defines the necessary number of transmitted frames to enable the detection of 'bad seconds'. See also section 'Degraded signal defect (dDEG)' in G.8021.";\r
+        }\r
+        description "1DM related attribute: 1DmPriority\r
+            AIS Process related attributes: aisPeriod, aisPriority\r
+            Bandwidth notification Process related attribute: bandwidthReport\r
+            Basic attribute: peerMepRefList\r
+            CSF Process related attributes: isCsfRdiFdiEnabled, isCsfReported\r
+            Defect correlation Process related attribute: currentProblemList\r
+            This object class models the MEP sink function. Instance of this object class can be created and contained by ETH CTP or TTP objects.\r
+            It also provides the management of the dual-ended maintenance job, such as test.\r
+            This object contains the configuration parameters for detecting 'degraded signal' (DEG).";\r
+    }\r
+    grouping eth-mep-source {\r
+        leaf aps-priority {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "7";\r
+            description "This attribute specifies the priority of the APS messages.\r
+                See section 8.1.5    APS insert process in G.8021.";\r
+        }\r
+        leaf csf-priority {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "7";\r
+            description "This attribute models the MI_CSF_Pri signal defined in G.8021 and configured as specified in G8051. It is the priority at which the CSF messages should be sent";\r
+        }\r
+        leaf csf-period {\r
+            type oam-period;\r
+            description "This attribute models the MI_CSF_Period signal defined in G.8021 and configured as specified in G8051. It is the period at which the CSF messages should be sent.\r
+                range of type : 1s, 1min";\r
+        }\r
+        leaf csf-config {\r
+            type csf-config;\r
+            description "This attribute models the combination of all CSF related MI signals (MI_CSF_Enable, MI_CSFrdifdi_Enable, MI_CSFdci_Enable) as defined in G.8021.";\r
+        }\r
+        description "APS Process related attribute: apsPriority\r
+            Basic attribute: mepIdentifier\r
+            CSF Process related attributes: csfConfig, csfPeriod, csfPriority\r
+            Link trace related operation: linkTrace\r
+            Loopback related operations: loopbackDiscover, loopbackSeries, loopbackTest, loopbackTestTerminate\r
+            On demand measurement job control related operation: establishOnDemandDualEndedMeasurementJobSource\r
+            Proactive measurement job control related operation: establishProActiveDualEndedMeasurementJobSource\r
+            Test related operations: testInitiatorStart, testInitiatorTerminate\r
+            This object class models the MEP source function. Instance of this object class can be created and contained by ETH CTP or TTP objects.\r
+            It also provides the management of single-ended maintenance jobs, such as loopback test, loopback discover, loopback series, link trace, and dual-ended maintenance job, such as test.";\r
+    }\r
+    grouping eth-link-trace-job {\r
+        container eth-lt-msg {\r
+            uses eth-oam-operation-common-pac;\r
+            description "none";\r
+        }\r
+        leaf time-to-live {\r
+            type uint64;\r
+            description "G.8052: This parameter provides the Time To Live (TTL) parameter of the Link Track protocol.\r
+                The TTL parameter allows the receiver (MIP or MEP) of the LTM frame to determine if the frame can be terminated. TTL is decremented every time the LTM frame is relayed. LTM frame with TTL<=1 is terminated and not relayed.";\r
+        }\r
+        description "This class represents the Link Trace (LT) process for fault localization or for discovering the intermediate MIPs along the link from the MEP Source to a target MEP or MIP. An LTM frame will be sent from the MEP source to the target MEP/MIP.\r
+            The termination occurs at specified stop time (schedule attribute of OamJob).";\r
+    }\r
+    grouping eth-test-job {\r
+        container eth-test-msg {\r
+            uses eth-oam-msg-common-pac;\r
+            description "none";\r
+        }\r
+        description "This class represents the 1-way on-demand in-service or out-of-service diagnostic test. The diagnostic test includes verifying bandwidth throughput, frame loss, bit errors, etc. TST frames are transmitted.\r
+            The termination occurs at specified stop time (schedule attribute of OamJob).";\r
+    }\r
+    grouping eth-on-demand-measurement-job-control-sink {\r
+        leaf responder-mep-id {\r
+            type string;\r
+            description "none";\r
+        }\r
+        leaf source-address {\r
+            type mac-address;\r
+            description "This attribute contains the MAC address of the peer MEP. See G.8013 for details.";\r
+        }\r
+        leaf priority {\r
+            type uint64;\r
+            default "7";\r
+            description "This attribute contains the priority of the OAM PDU frames.\r
+                range of type : 0, 1, 2, 3, 4, 5, 6, 7";\r
+        }\r
+        leaf test-identifier {\r
+            type uint64;\r
+            description "This attribute is used to distinguish each measurement session if multiple measurement sessions are simultaneously activated towards a peer MEP including concurrent on-demand and proactive tests. It must be unique at least within the context of any measurement type for the MEG and initiating MEP.\r
+                range of type : 0..(2^32) - 1";\r
+        }\r
+        description "This object class represents an on-demand measurement job controller sink for 1-way measurements. It is created as a result of an establishOnDemandDualEndedMeasurementJobSink() operation. It is deleted either automatically after the measurement job has completed (stop time reached) and the performance data AVC notification has been sent, or by an explicit abortOnDemandMeasurementJob() operation when the measurement job is running.";\r
+    }\r
+    grouping eth-on-demand-measurement-job-control-source {\r
+        leaf controller-mep-id {\r
+            type string;\r
+            description "none";\r
+        }\r
+        leaf oam-pdu-generation-type {\r
+            type oam-pdu-generation-type;\r
+            description "This attribute contains the pattern that is used for the generation of OAM PDUs.";\r
+        }\r
+        leaf destination-address {\r
+            type mac-address;\r
+            description "This attribute contains the MAC address of the peer MEP. See G.8013 for details.";\r
+        }\r
+        leaf priority {\r
+            type uint64;\r
+            default "7";\r
+            description "This attribute contains the priority of the OAM PDU frames.\r
+                range of type : 0, 1, 2, 3, 4, 5, 6, 7";\r
+        }\r
+        leaf message-period {\r
+            type message-period;\r
+            description "This attribute contains the frequency of the OAM message (PDU) generation within a series. \r
+                Note that the value 0 means that only one OAM message per measurement interval is generated.\r
+                range of type : See corresponding Enum.";\r
+        }\r
+        leaf repetition-period {\r
+            type repetition-period;\r
+            description "This attribute contains the time between the start of two measurement intervals. This IS applicable for the repetitive instance type and MAY be applicable for the repetitive series type. \r
+                Note that a value of 0 means not applicable (NA), which is for the cases of single instance, single series, or repetitive series without extra gap in between the measurement intervals (i.e., also as known as continuous series).";\r
+        }\r
+        leaf measurement-interval {\r
+            type uint64;\r
+            description "This attribute contains the discrete non overlapping periods of time (in seconds) during which measurements are performed (i.e., OAM messages are generated) and reports are gathered at the end of the measurement intervals. Note that the value 0 means a degenerated measurement interval with a single OAM message and the report is sent as immediately as possible.\r
+                range of type : Non-negative";\r
+        }\r
+        leaf test-identifier {\r
+            type uint64;\r
+            description "This attribute is used to distinguish each measurement session if multiple measurement sessions are simultaneously activated towards a peer MEP including concurrent on-demand and proactive tests. It must be unique at least within the context of any measurement type for the MEG and initiating MEP.\r
+                Note: The attribute is not used in case of LMM/LMR measurement.\r
+                range of type : 0..(2^32) - 1";\r
+        }\r
+        leaf data-tlv-length {\r
+            type uint64;\r
+            description "This parameter provides the size of the optional data TLV.\r
+                Non-negative integer represents the number of bytes for the length of the padding TLV.\r
+                Notes:\r
+                When configuring this parameter one should be aware of the maximum allowed total frame size limitation.\r
+                The attribute is not used in case of 2-way loss measurement.\r
+                range of type : Depends on the allowed MTU size.";\r
+        }\r
+        description "Basic attributes: destinationAddress, priority\r
+            Measurement configuration related attributes: oamPduGenerationType, startTime, stopTime, messagePeriod, repetitionPeriod, measurementInterval\r
+            Optional attributes: dataTlvLength, testIdentifier\r
+            This object class represents an on-demand measurement job controller source for 1-way measurements. It is created as a result of an establishOnDemandDualEndedMeasurementJobSource() operation. It is deleted either automatically after the measurement job has completed (stop time reached), or by an explicit abortOnDemandMeasurementJob() operation while the measurement job is running.";\r
+    }\r
+    grouping eth-pro-active-measurement-job-control-sink {\r
+        leaf responder-mep-id {\r
+            type string;\r
+            description "none";\r
+        }\r
+        leaf is-enabled {\r
+            type boolean;\r
+            default "true";\r
+            description "This attribute identifies the state of the measurement job. If set to TRUE, the MEP performs proactive Performance Measurement.";\r
+        }\r
+        leaf source-address {\r
+            type mac-address;\r
+            description "This attribute contains the MAC address of the peer MEP. See G.8013 for details.";\r
+        }\r
+        leaf test-identifier {\r
+            type uint64;\r
+            description "This attribute is used to distinguish each measurement session if multiple measurement sessions are simultaneously activated towards a peer MEP including concurrent on-demand and proactive tests. It must be unique at least within the context of any measurement type for the MEG and initiating MEP.\r
+                range of type : 0..(2^32) - 1";\r
+        }\r
+        description "This object class allows the control of the proactive 1-way measurement. It is created as a part of an establishProActiveDualEndedMeasurementJobSink() operation. Lifecycle: A pre-condition of deleting the object is that the Enable attribute should have the value FALSE.";\r
+    }\r
+    grouping eth-pro-active-measurement-job-control-source {\r
+        leaf controller-mep-id {\r
+            type string;\r
+            description "none";\r
+        }\r
+        leaf is-enabled {\r
+            type boolean;\r
+            default "true";\r
+            description "This attribute identifies the state of the measurement job. If set to TRUE, the MEP performs proactive Performance Measurement.";\r
+        }\r
+        leaf destination-address {\r
+            type mac-address;\r
+            description "This attribute provides the Unicast MAC address of the intented destination.";\r
+        }\r
+        leaf priority {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "7";\r
+            description "This attribute contains the priority value on which the MEP performs the measurement. When the measurement is enabled, the MEP should use this value to encode the priority of generated measurement frames. The EMF usese this value to assign the P parameter of the measurement operation.";\r
+        }\r
+        leaf period {\r
+            type oam-period;\r
+            description "This attribute indicates the period (frequency) of the measurement frame transmission.\r
+                range of type : 100ms, 1s, 10s";\r
+        }\r
+        leaf test-identifier {\r
+            type uint64;\r
+            description "This attribute is used to distinguish each measurement session if multiple measurement sessions are simultaneously activated towards a peer MEP including concurrent on-demand and proactive tests. It must be unique at least within the context of any measurement type for the MEG and initiating MEP.\r
+                Note: The attribute is not used in case of 2-way loss measurement. \r
+                range of type : 0..(2^32) - 1";\r
+        }\r
+        leaf data-tlv-length {\r
+            type uint64;\r
+            description "This parameter provides the size of the optional data TLV.\r
+                Non-negative integer represents the number of bytes for the length of the padding TLV.\r
+                Notes:\r
+                When configuring this parameter one should be aware of the maximum allowed total frame size limitation.\r
+                The attribute is not used in case of 2-way loss measurement.\r
+                range of type : Depends on the allowed MTU size.";\r
+        }\r
+        description "This object class represents a proactive measurement job controller source for 1way measurements. It is created as a part of an establishProactiveDualEndedMeasurementJobSource() operation.";\r
+    }\r
+    grouping eth-pro-active-1-dm-performance-data {\r
+        container pro-active-near-end-1-dm-parameters {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the statistical near end performnace parameters.";\r
+        }\r
+        description "This object class represents the PM current data collected in a pro-active delay measurement job (using 1DM).";\r
+    }\r
+    grouping eth-pro-active-1-lm-performance-data {\r
+        container pro-active-near-end-1-lm-parameters {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute contains the statistical near end performnace parameters.";\r
+        }\r
+        description "This object class represents the PM current data collected in a pro-active loss measurement job (using 1SL).";\r
+    }\r
+    grouping eth-pro-active-dm-performance-data {\r
+        container pro-active-bi-dir-dm-parameters {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the statistical bidirectional performnace parameters.";\r
+        }\r
+        container pro-active-far-end-dm-parameters {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the statistical far end performnace parameters.";\r
+        }\r
+        container pro-active-near-end-dm-parameters {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the statistical near end performnace parameters.";\r
+        }\r
+        description "This object class represents the PM current data collected in a pro-active delay measurement job (using DMM/DMR).";\r
+    }\r
+    grouping eth-pro-active-lm-performance-data {\r
+        container pro-active-far-end-lm-parameters {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute contains the statistical far end performnace parameters.";\r
+        }\r
+        container pro-active-near-end-lm-parameters {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute contains the statistical near end performnace parameters.";\r
+        }\r
+        leaf bidirectional-uas {\r
+            type uint64;\r
+            description "This attribute contains the bidirectional UAS (unavailable seconds) detected in the monitoring interval.\r
+                range of type : 0..900 for 15min interval or 0..86400 for 24 hr interval.";\r
+        }\r
+        description "This object class represents the PM current data collected in a pro-active loss measurement job (using LMM/LMR or SLM/SLR).";\r
+    }\r
+    grouping eth-on-demand-1-dm-performance-data {\r
+        container on-demand-near-end-1-dm-parameters {\r
+            uses on-demand-dm-performance-parameters;\r
+            description "This attribute contains the results of an on-demand frame delay measurement job in the ingress direction.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-on-demand-1-lm-performance-data {\r
+        container on-demand-near-end-1-lm-parameters {\r
+            uses on-demand-lm-performance-parameters;\r
+            description "This attribute contains the results of an on-demand synthetic loss measurement job in the ingress direction.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-on-demand-dm-performance-data {\r
+        container on-demand-far-end-dm-parameters {\r
+            uses on-demand-dm-performance-parameters;\r
+            description "This attribute contains the results of an on-demand frame delay measurement job in the ingress direction.";\r
+        }\r
+        container on-demand-near-end-dm-parameters {\r
+            uses on-demand-dm-performance-parameters;\r
+            description "This attribute contains the results of an on-demand frame delay measurement job in the ingress direction.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-on-demand-lm-performance-data {\r
+        container on-demand-far-end-lm-parameters {\r
+            uses on-demand-lm-performance-parameters;\r
+            description "This attribute contains the results of an on-demand synthetic loss measurement job in the egress direction.";\r
+        }\r
+        container on-demand-near-end-lm-parameters {\r
+            uses on-demand-lm-performance-parameters;\r
+            description "This attribute contains the results of an on-demand synthetic loss measurement job in the ingress direction.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-pro-active-1way-measurement-job {\r
+        container pro-active-control-1way-source {\r
+            uses eth-pro-active-measurement-job-control-source;\r
+            description "none";\r
+        }\r
+        container pro-active-control-1way-sink {\r
+            uses eth-pro-active-measurement-job-control-sink;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-pro-active-2way-measurement-job {\r
+        container pro-active-control-2way-source {\r
+            uses eth-pro-active-measurement-job-control-source;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-on-demand-2way-measurement-job {\r
+        container on-demand-control-2way-source {\r
+            uses eth-on-demand-measurement-job-control-source;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-on-demand-1way-measurement-job {\r
+        container on-demand-control-1way-source {\r
+            uses eth-on-demand-measurement-job-control-source;\r
+            description "none";\r
+        }\r
+        container on-demand-control-1way-sink {\r
+            uses eth-on-demand-measurement-job-control-sink;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-1-dm-threshold-data {\r
+        container near-end-1-dm-cross-threshold {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the near end cross threshold values of the delay measurements.";\r
+        }\r
+        container near-end-1-dm-clear-threshold {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the near end clear threshold values of the delay measurements.";\r
+        }\r
+        description "This data type contains the threshold values for frame delay related 1-way measurements.";\r
+    }\r
+    grouping eth-1-lm-threshold-data {\r
+        container near-end-1-lm-cross-threshold {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute contains the near end cross threshold values of the loss measurements.";\r
+        }\r
+        container near-end-1-lm-clear-threshold {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute is only valid for frame loss ratio parameters and counter type parameters working in the 'standing condition method' (see G.7710, section 10.1.7.2: Threshold reporting) and contains the near end clear threshold values of the loss measurements.";\r
+        }\r
+        description "This data type contains the threshold values for frame loss related 1-way measurements.";\r
+    }\r
+    grouping eth-dm-threshold-data {\r
+        container near-end-dm-cross-threshold {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the near end cross threshold values of the delay measurements.";\r
+        }\r
+        container near-end-dm-clear-threshold {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the near end clear threshold values of the delay measurements.";\r
+        }\r
+        container far-end-dm-cross-threshold {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the far end cross threshold values of the delay measurements.";\r
+        }\r
+        container far-end-dm-clear-threshold {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the far end clear threshold values of the delay measurements.";\r
+        }\r
+        container bi-dir-dm-cross-threshold {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the bidirectional cross threshold values of the delay measurements.";\r
+        }\r
+        container bi-dir-dm-clear-threshold {\r
+            uses statistical-dm-performance-parameters;\r
+            description "This attribute contains the bidirectional clear threshold values of the delay measurements.";\r
+        }\r
+        description "This data type contains the threshold values for frame delay related 2-way measurements.";\r
+    }\r
+    grouping eth-lm-threshold-data {\r
+        container near-end-lm-cross-threshold {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute contains the near end cross threshold values of the loss measurements.";\r
+        }\r
+        container near-end-lm-clear-threshold {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute is only valid for frame loss ratio parameters and counter type parameters working in the 'standing condition method' (see G.7710, section 10.1.7.2: Threshold reporting) and contains the near end clear threshold values of the loss measurements.";\r
+        }\r
+        container far-end-lm-cross-threshold {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute contains the far end cross threshold values of the loss measurements.";\r
+        }\r
+        container far-end-lm-clear-threshold {\r
+            uses statistical-lm-performance-parameters;\r
+            description "This attribute is only valid for frame loss ratio parameters and counter type parameters working in the 'standing condition method' (see G.7710, section 10.1.7.2: Threshold reporting) and contains the far end clear threshold values of the loss measurements.";\r
+        }\r
+        leaf bi-dir-lm-uas-cross-threshold {\r
+            type uint64;\r
+            description "This attribute contains the bidirectional cross threshold value of the UAS loss measurement.";\r
+        }\r
+        leaf bi-dir-lm-uas-clear-threshold {\r
+            type uint64;\r
+            description "This attribute is only valid for the UAS parameter working in the 'standing condition method' (see G.7710, section 10.1.7.2: Threshold reporting) and contains the bidirectional clear threshold value of the UAS loss measurement.";\r
+        }\r
+        description "This data type contains the threshold values for frame loss related 2-way measurements.";\r
+    }\r
+    grouping eth-loopback-result-data {\r
+        leaf rec-lbr-frames {\r
+            type uint64;\r
+            config false;\r
+            description "G.8052: This parameter returns the total number of received LBR messages, including the out of order LBR frames.";\r
+        }\r
+        leaf out-of-order-lbr-frames {\r
+            type uint64;\r
+            config false;\r
+            description "G.8052: This parameter returns the number of LBR traffic unites (messages) that were received out of order (OO).";\r
+        }\r
+        leaf sent-lbm-frames {\r
+            type uint64;\r
+            config false;\r
+            description "G.8052: This parameter returns the total number of sent LBM frames.";\r
+        }\r
+        leaf crc-lbr-frames {\r
+            type uint64;\r
+            config false;\r
+            description "G.8052: This parameter returns the number of LBR frames where the CRC in the pattern failed.";\r
+        }\r
+        leaf ber-lbr-frames {\r
+            type uint64;\r
+            config false;\r
+            description "G.8052: This parameter returns the number of LBR frames where there was a bit error in the pattern.";\r
+        }\r
+        leaf-list detected-peer-mep {\r
+            type mac-address;\r
+            config false;\r
+            description "G.8052: This parameter returns the MAC addresses of the discovered peer MEPs of the subject MEP.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-link-trace-result-data {\r
+        list result-list {\r
+            key 'source-address';\r
+            config false;\r
+            uses link-trace-result;\r
+            description "G.8052: This parameter returns the results of the LT process. It contains a list of the result received from the individual LTR frames.\r
+                The result from the individual LTR frame include the Source Mac Address, the TTL, and TLV.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-test-result-data {\r
+        leaf sent-tst-frames {\r
+            type uint64;\r
+            config false;\r
+            description "G.8052: This parameter returns the total number of sent TST frames.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-oam-operation-common-pac {\r
+        leaf destination-address {\r
+            type mac-address;\r
+            description "G.8052: This parameter provides the destination address, i.e., the MAC Address of the target MEP or MIP.";\r
+        }\r
+        leaf priority {\r
+            type uint64;\r
+            default "7";\r
+            description "G.8052: This parameter provides the priority to be used in the LBM frame.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping eth-oam-msg-common-pac {\r
+        leaf period {\r
+            type oam-period;\r
+            description "G.8052: This parameter provides the periodicity of the TST OAM messages.";\r
+        }\r
+        leaf drop-eligibility {\r
+            type boolean;\r
+            description "G.8052: This parameter provides the eligibility of frames with unicast ETH-TST information to be discarded when congestion conditions are encountered.";\r
+        }\r
+        leaf data-tlv-length {\r
+            type uint64;\r
+            description "G.8052: This parameter provides the length (in number of octet) of the optional Data TLV to be included in the TST frame.";\r
+        }\r
+        leaf test-pattern {\r
+            type uint64;\r
+            description "G.8052: This parameter provides the test pattern to be used in the optional Data TLV.\r
+                Examples of test patterns include pseudo-random bit sequence (PRBS) 2^31-1 as specified in clause 5.8 of [ITU-T O.150], all '0' pattern, etc.\r
+                The following values of pattern types are defined:\r
+                0: 'Null signal without CRC-32'\r
+                1: 'Null signal with CRC-32'\r
+                2: 'PRBS 2^31-1 without CRC-32'\r
+                3: 'PRBS 2^31-1 with CRC-32'.";\r
+        }\r
+        uses eth-oam-operation-common-pac;\r
+        description "none";\r
+    }\r
+\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    identity ETH_OAM_JOB_TYPE {\r
+        base tapi-oam:OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_1DM {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_1SLM {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_LM_CCM {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_LM_LMM {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_SLM {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_DM {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_LTC {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_LBK {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    identity ETH_OAM_JOB_TYPE_ETH_TEST {\r
+        base ETH_OAM_JOB_TYPE;\r
+        description "none";\r
+    }\r
+    grouping priority-configuration {\r
+        leaf queue-id {\r
+            type uint64 {\r
+                range "1..8";\r
+            }\r
+            description "none";\r
+        }\r
+        leaf priority {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping queue-configuration {\r
+        leaf queue-id {\r
+            type uint64;\r
+            description "This attribute indicates the queue id.";\r
+        }\r
+        leaf queue-depth {\r
+            type uint64;\r
+            description "This attribute defines the depth of the queue in bytes.";\r
+        }\r
+        leaf queue-threshold {\r
+            type uint64;\r
+            description "This attribute defines the threshold of the queue in bytes.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping traffic-conditioning-configuration {\r
+        leaf cir {\r
+            type uint64;\r
+            description "This attribute indicates the Committed Information Rate in bits/s.";\r
+        }\r
+        leaf cbs {\r
+            type uint64;\r
+            description "This attribute indicates the Committed Burst Size in bytes.";\r
+        }\r
+        leaf eir {\r
+            type uint64;\r
+            description "This attribute indicates the Excess Information Rate in bits/s.";\r
+        }\r
+        leaf ebs {\r
+            type uint64;\r
+            description "This attribute indicates the Excess Burst Size in bytes.";\r
+        }\r
+        leaf coupling-flag {\r
+            type boolean;\r
+            description "This attribute indicates the coupling flag.";\r
+        }\r
+        leaf colour-mode {\r
+            type colour-mode;\r
+            description "This attribute indicates the colour mode.";\r
+        }\r
+        leaf queue-id {\r
+            type uint64 {\r
+                range "1..8";\r
+            }\r
+            description "This attribute indicates the queue id.";\r
+        }\r
+        description "none";\r
+    }\r
+    typedef mac-address {\r
+        type string;\r
+        description "This primitive data type contains an Ethernet MAC address defined by IEEE 802a. The format of the address consists of 12 hexadecimal characters, grouped in pairs and separated by '-' (e.g., 03-27-AC-75-3E-1D).";\r
+    }\r
+    grouping priority-mapping {\r
+        leaf priority-0 {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            description "This attribute defines the new priority value for the old priority value 0.";\r
+        }\r
+        leaf priority-1 {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "1";\r
+            description "This attribute defines the new priority value for the old priority value 1.";\r
+        }\r
+        leaf priority-2 {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "2";\r
+            description "This attribute defines the new priority value for the old priority value 2.";\r
+        }\r
+        leaf priority-3 {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "3";\r
+            description "This attribute defines the new priority value for the old priority value 3.";\r
+        }\r
+        leaf priority-4 {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "4";\r
+            description "This attribute defines the new priority value for the old priority value 4.";\r
+        }\r
+        leaf priority-5 {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "5";\r
+            description "This attribute defines the new priority value for the old priority value 5.";\r
+        }\r
+        leaf priority-6 {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "6";\r
+            description "This attribute defines the new priority value for the old priority value 6.";\r
+        }\r
+        leaf priority-7 {\r
+            type uint64 {\r
+                range "0..7";\r
+            }\r
+            default "7";\r
+            description "This attribute defines the new priority value for the old priority value 7.";\r
+        }\r
+        description "This data type provides the priority mapping done in the 'P Regenerate' process defined in G.8021.";\r
+    }\r
+    typedef vid {\r
+        type string;\r
+        description "This primitive type models the 12 Bit VLAN identifier of a VLAN tag.";\r
+    }\r
+    typedef modify-cross-connection-data {\r
+        type string;\r
+        description "none";\r
+    }\r
+    grouping address-tuple {\r
+        leaf address {\r
+            type mac-address;\r
+            description "This attribute contains the MAC address of the address tuple.";\r
+        }\r
+        leaf-list port-list {\r
+            type mac-address;\r
+            description "This attribute contains the ports associated to the MAC address in the address tuple.";\r
+        }\r
+        description "This data type contains an address tuple consisting of a MAC address and a corresponding port list.";\r
+    }\r
+    typedef scheduling-configuration {\r
+        type string;\r
+        description "The syntax of this dataType is pending on the specification in G.8021, which is for further study.";\r
+    }\r
+    grouping control-frame-filter {\r
+        leaf c-2-00-00-10 {\r
+            type boolean;\r
+            description "This attribute identifies the 'All LANs Bridge Management Group Address'.";\r
+        }\r
+        leaf c-2-00-00-00 {\r
+            type boolean;\r
+            description "This attribute identifies the STP/RSTP/MSTP protocol address.";\r
+        }\r
+        leaf c-2-00-00-01 {\r
+            type boolean;\r
+            description "This attribute identifies the IEEE MAC-specific Control Protocols group address (PAUSE protocol).";\r
+        }\r
+        leaf c-2-00-00-02 {\r
+            type boolean;\r
+            description "This attribute identifies the IEEE 802.3 Slow_Protocols_Multicast address (LACP/LAMP or Link OAM protocols).";\r
+        }\r
+        leaf c-2-00-00-03 {\r
+            type boolean;\r
+            description "This attribute identifies the Nearest non-TPMR Bridge group address (Port Authentication protocol).";\r
+        }\r
+        leaf c-2-00-00-04 {\r
+            type boolean;\r
+            description "This attribute identifies the IEEE MAC-specific Control Protocols group address.";\r
+        }\r
+        leaf c-2-00-00-05 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-06 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-07 {\r
+            type boolean;\r
+            description "This attribute identifies the Metro Ethernet Forum E-LMI protocol group address.";\r
+        }\r
+        leaf c-2-00-00-08 {\r
+            type boolean;\r
+            description "This attribute identifies the Provider Bridge Group address.";\r
+        }\r
+        leaf c-2-00-00-09 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-0-a {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-0-b {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-0-c {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-0-d {\r
+            type boolean;\r
+            description "This attribute identifies the Provider Bridge MVRP address.";\r
+        }\r
+        leaf c-2-00-00-0-e {\r
+            type boolean;\r
+            description "This attribute identifies the Individual LAN Scope group address, Nearest Bridge group address (LLDP protocol).";\r
+        }\r
+        leaf c-2-00-00-0-f {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-20 {\r
+            type boolean;\r
+            description "This attribute identifies the Customer and Provider Bridge MMRP address.";\r
+        }\r
+        leaf c-2-00-00-21 {\r
+            type boolean;\r
+            description "This attribute identifies the Customer Bridge MVRP address.";\r
+        }\r
+        leaf c-2-00-00-22 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-23 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-24 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-25 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-26 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-27 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-28 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-29 {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-2-a {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-2-b {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-2-c {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-2-d {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-2-e {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        leaf c-2-00-00-2-f {\r
+            type boolean;\r
+            description "Reserved for future standardization.";\r
+        }\r
+        description "This data type identifies the filter action for each of the 33 group MAC addresses (control frames).\r
+            Value 'false' means block: The frame is discarded by the filter process.\r
+            Value 'true' means pass: The frame is passed unchanged through the filter process.";\r
+    }\r
+    grouping bandwidth-report {\r
+        leaf source-mac-address {\r
+            type mac-address;\r
+            description "The sourceMacAddress is the address from the far end.";\r
+        }\r
+        leaf port-id {\r
+            type uint64;\r
+            description "This attribute returns the far end port identifier.";\r
+        }\r
+        leaf nominal-bandwidth {\r
+            type uint64;\r
+            description "This attribute returns the configured bandwidth";\r
+        }\r
+        leaf current-bandwidth {\r
+            type uint64;\r
+            description "This attribute returns the current bandwidth.";\r
+        }\r
+        description "Data type for the bandwidth report.";\r
+    }\r
+    typedef admin-state {\r
+        type enumeration {\r
+            enum LOCK {\r
+                description "none";\r
+            }\r
+            enum NORMAL {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef colour-mode {\r
+        type enumeration {\r
+            enum COLOUR_BLIND {\r
+                description "none";\r
+            }\r
+            enum COLOUR_AWARE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef csf-config {\r
+        type enumeration {\r
+            enum DISABLED {\r
+                description "This literal covers the following states of the CSF related MI informations:\r
+                    - MI_CSF_Enable is false\r
+                    - MI_CSFrdifdi_Enable is false\r
+                    - MI_CSFdci_Enable is false.";\r
+            }\r
+            enum ENABLED {\r
+                description "This literal covers the following states of the CSF related MI informations:\r
+                    - MI_CSF_Enable is true\r
+                    - MI_CSFrdifdi_Enable is false\r
+                    - MI_CSFdci_Enable is false.";\r
+            }\r
+            enum ENABLED_WITH_RDI_FDI {\r
+                description "This literal covers the following states of the CSF related MI informations:\r
+                    - MI_CSF_Enable is true\r
+                    - MI_CSFrdifdi_Enable is true\r
+                    - MI_CSFdci_Enable is false.";\r
+            }\r
+            enum ENABLED_WITH_RDI_FDI_DCI {\r
+                description "This literal covers the following states of the CSF related MI informations:\r
+                    - MI_CSF_Enable is true\r
+                    - MI_CSFrdifdi_Enable is true\r
+                    - MI_CSFdci_Enable is true.";\r
+            }\r
+            enum ENABLED_WITH_DCI {\r
+                description "This literal covers the following states of the CSF related MI informations:\r
+                    - MI_CSF_Enable is true\r
+                    - MI_CSFrdifdi_Enable is false\r
+                    - MI_CSFdci_Enable is true.";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef ety-phy-type {\r
+        type enumeration {\r
+            enum OTHER {\r
+                description "none";\r
+            }\r
+            enum UNKNOWN {\r
+                description "none";\r
+            }\r
+            enum NONE {\r
+                description "none";\r
+            }\r
+            enum 2BASE_TL {\r
+                description "none";\r
+            }\r
+            enum 10MBIT_S {\r
+                description "none";\r
+            }\r
+            enum 10PASS_TS {\r
+                description "none";\r
+            }\r
+            enum 100BASE_T4 {\r
+                description "none";\r
+            }\r
+            enum 100BASE_X {\r
+                description "none";\r
+            }\r
+            enum 100BASE_T2 {\r
+                description "none";\r
+            }\r
+            enum 1000BASE_X {\r
+                description "none";\r
+            }\r
+            enum 1000BASE_T {\r
+                description "none";\r
+            }\r
+            enum 10GBASE-X {\r
+                description "none";\r
+            }\r
+            enum 10GBASE_R {\r
+                description "none";\r
+            }\r
+            enum 10GBASE_W {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef frame-type {\r
+        type enumeration {\r
+            enum ADMIT_ONLY_VLAN_TAGGED_FRAMES {\r
+                description "none";\r
+            }\r
+            enum ADMIT_ONLY_UNTAGGED_AND_PRIORITY_TAGGED_FRAMES {\r
+                description "none";\r
+            }\r
+            enum ADMIT_ALL_FRAMES {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef oam-period {\r
+        type enumeration {\r
+            enum 3_33MS {\r
+                description "Default for protection.";\r
+            }\r
+            enum 10MS {\r
+                description "none";\r
+            }\r
+            enum 100MS {\r
+                description "none";\r
+            }\r
+            enum 1S {\r
+                description "none";\r
+            }\r
+            enum 10S {\r
+                description "none";\r
+            }\r
+            enum 1MIN {\r
+                description "none";\r
+            }\r
+            enum 10MIN {\r
+                description "none";\r
+            }\r
+        }\r
+        description "Provides the frequency for the OAM PDU insertion.";\r
+    }\r
+    typedef pcp-coding {\r
+        type enumeration {\r
+            enum 8P0D {\r
+                description "none";\r
+            }\r
+            enum 7P1D {\r
+                description "none";\r
+            }\r
+            enum 6P2D {\r
+                description "none";\r
+            }\r
+            enum 5P3D {\r
+                description "none";\r
+            }\r
+            enum DEI {\r
+                description "This enumeration value means that all priorities should be drop eligible.\r
+                    DEI = Drop Eligibility Indicator";\r
+            }\r
+        }\r
+        description "This enum models the coding of the Priority Code Point as defined in section 'Priority Code Point encoding' of IEEE 802.1Q.";\r
+    }\r
+    typedef vlan-type {\r
+        type enumeration {\r
+            enum C_Tag {\r
+                description "0x8100";\r
+            }\r
+            enum S_Tag {\r
+                description "0x88a8";\r
+            }\r
+            enum I_Tag {\r
+                description "88-e7";\r
+            }\r
+        }\r
+        description "This enumeration contains the Ethertypes defined in IEEE 802.1Q.";\r
+    }\r
+    typedef repetition-period {\r
+        type enumeration {\r
+            enum 1MIN {\r
+                description "none";\r
+            }\r
+            enum 1S {\r
+                description "none";\r
+            }\r
+            enum 10S {\r
+                description "none";\r
+            }\r
+            enum 0 {\r
+                description "none";\r
+            }\r
+        }\r
+        description "This enumeration defines the allowed values for the repetition period in on-demand measurements.\r
+            Note: The value 0 means that the value is not relevant.";\r
+    }\r
+    typedef message-period {\r
+        type enumeration {\r
+            enum 10MS {\r
+                description "none";\r
+            }\r
+            enum 100MS {\r
+                description "none";\r
+            }\r
+            enum 1S {\r
+                description "none";\r
+            }\r
+            enum 10S {\r
+                description "none";\r
+            }\r
+            enum 0 {\r
+                description "none";\r
+            }\r
+        }\r
+        description "This enumeration defines the allowed values for the message period in on-demand measurements.\r
+            Notes:\r
+            The value 10ms is only used in synthetic loss measurements.\r
+            The value 0 means that the value is not relevant.";\r
+    }\r
+    typedef oam-pdu-generation-type {\r
+        type enumeration {\r
+            enum SINGLE_INSTANCE {\r
+                description "none";\r
+            }\r
+            enum REPETITIVE_INSTANCE {\r
+                description "none";\r
+            }\r
+            enum SINGLE_SERIES {\r
+                description "none";\r
+            }\r
+            enum REPETITIVE_SERIES {\r
+                description "none";\r
+            }\r
+        }\r
+        description "This enumeration defines the generation pattern of the on-demand OAM PDUs (messages). ";\r
+    }\r
+    grouping on-demand-dm-performance-parameters {\r
+        leaf number-of-samples {\r
+            type uint64;\r
+            description "This attribute contains the number of received DM frames (successful samples) used for this frame delay measurement.\r
+                range of type : non-negative";\r
+        }\r
+        leaf-list frame-delay-list {\r
+            type uint64;\r
+            description "This attribute contains the frame delays measured in ns (nano second, 1x10e-9 seconds). The multiplicity is defined by the numberOfSamples attribute.";\r
+        }\r
+        leaf-list frame-delay-variation-list {\r
+            type uint64;\r
+            description "This attribute contains the frame delay variations measured in ns (nano second).  The multiplicity is defined by (numberOfSamples - 1, for numberOfSamples > 0).";\r
+        }\r
+        description "This data type contains the results of an on-demand delay measurement job.";\r
+    }\r
+    grouping on-demand-lm-performance-parameters {\r
+        leaf total-transmitted-frames {\r
+            type uint64;\r
+            description "This attribute contains the total number of frames transmitted.";\r
+        }\r
+        leaf total-lost-frames {\r
+            type uint64;\r
+            description "This attribute contains the total number of frames lost.";\r
+        }\r
+        leaf total-frame-loss-ratio {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "This attribute contains the frame loss ratio (number of lost frames divided by the number of total frames (N_LF / N_TF)).\r
+                The accuracy of the value is for further study.";\r
+        }\r
+        description "This data type contains the results of an on-demand loss measurement job.";\r
+    }\r
+    grouping statistical-dm-performance-parameters {\r
+        leaf minimum-frame-delay {\r
+            type uint64;\r
+            description "This attribute contains the minimum frame delay observed over the monitored period. It is measured in units of ns (nano second, 1x10e-9 seconds).";\r
+        }\r
+        leaf average-frame-delay {\r
+            type uint64;\r
+            description "This attribute contains the average frame delay observed over the monitored period. It is measured in units of ns (nano second, 1x10e-9 seconds).";\r
+        }\r
+        leaf maximum-frame-delay {\r
+            type uint64;\r
+            description "This attribute contains the maximum frame delay observed over the monitored period. It is measured in units of ns (nano second, 1x10e-9 seconds).";\r
+        }\r
+        leaf minimum-frame-delay-variation {\r
+            type uint64;\r
+            description "This attribute contains the minimum frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).";\r
+        }\r
+        leaf average-frame-delay-variation {\r
+            type uint64;\r
+            description "This attribute contains the average frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).";\r
+        }\r
+        leaf maximum-frame-delay-variation {\r
+            type uint64;\r
+            description "This attribute contains the maximum frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).";\r
+        }\r
+        description "This data type contains the statistical delay measurement performance parameters.";\r
+    }\r
+    grouping statistical-lm-performance-parameters {\r
+        leaf minimum-frame-loss-ratio {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "This attribute contains the minimum frame loss ratio calculated over a period of time.\r
+                The accuracy of the value is for further study.";\r
+        }\r
+        leaf average-frame-loss-ratio {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "This attribute contains the average frame loss ratio calculated over a period of time.\r
+                The accuracy of the value is for further study.";\r
+        }\r
+        leaf maximum-frame-loss-ratio {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "This attribute contains the maximum frame loss ratio calculated over a period of time.\r
+                The accuracy of the value is for further study.";\r
+        }\r
+        leaf ses {\r
+            type uint64;\r
+            description "This attribute contains the SES detected in the monitoring interval.\r
+                range of type : 0..900 for 15min interval or 0..86400 for 24 hr interval.";\r
+        }\r
+        leaf uas {\r
+            type uint64;\r
+            description "This attribute contains UAS (unavailable seconds) detected in the monitoring interval.\r
+                range of type : 0..900 for 15min interval or 0..86400 for 24 hr interval.";\r
+        }\r
+        description "This data type contains the statistical loss measurement performance parameters.";\r
+    }\r
+    typedef eth-oam-job-type {\r
+        type identityref {\r
+            base ETH_OAM_JOB_TYPE;\r
+        }\r
+        description "none";\r
+    }\r
+    grouping link-trace-result {\r
+        leaf source-address {\r
+            type mac-address;\r
+            description "G.8052: This attribute contains the source MAC Address of an individual LTR frame result.";\r
+        }\r
+        leaf time-to-live {\r
+            type uint64;\r
+            description "G.8052: This attribute contains the Time To Live (TTL) value of an individual LTR frame result.";\r
+        }\r
+        leaf data-tlv-length {\r
+            type uint64;\r
+            description "G.8052: This attribute contains the length (in number of octets) of the Data TLV of an individual LTR frame result.";\r
+        }\r
+        description "G.8052: This data type contains the result from an individual LTR frame.";\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-notification@2020-06-16.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-notification@2020-06-16.yang
new file mode 100644 (file)
index 0000000..058692f
--- /dev/null
@@ -0,0 +1,634 @@
+module tapi-notification {\r
+    namespace "urn:onf:otcc:yang:tapi-notification";\r
+    prefix tapi-notification;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G39KDEbL$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Notification Model definitions.\r
+        Source: TapiNotification.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+          <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G4QHf0bG$ >\r
+          and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+          <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8IIivez$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+          As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+          The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G3bKxRf2$ >.\r
+          YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0";\r
+    revision 2020-06-16 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   - Added DEVICE to ObjectType.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7tqhxFK$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7eDS6-t$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1ftwU5J$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G-5JStw4$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1Yf4AAN$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G27-pJK_$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8RnGvXg$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6Gy6YoeAv$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6GyqYDgG_$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1V9Thk9$ >";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        container notification-context {\r
+            uses notification-context;\r
+            description "Augments the base TAPI Context with NotificationService information";\r
+        }\r
+        description "Augments the base TAPI Context with NotificationService information";\r
+    }\r
+    /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping notification-subscription-service {\r
+        list notification {\r
+            key 'uuid';\r
+            config false;\r
+            uses notification;\r
+            description "none";\r
+        }\r
+        container notification-channel {\r
+            config false;\r
+            uses notification-channel;\r
+            description "none";\r
+        }\r
+        container subscription-filter {\r
+            uses subscription-filter;\r
+            description "none";\r
+        }\r
+        leaf subscription-state {\r
+            type subscription-state;\r
+            description "none";\r
+        }\r
+        leaf-list supported-notification-types {\r
+            type notification-type;\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        leaf-list supported-object-types {\r
+            type object-type;\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        uses tapi-common:service-spec;\r
+        description "none";\r
+    }\r
+    grouping subscription-filter {\r
+        leaf-list requested-notification-types {\r
+            type notification-type;\r
+            description "none";\r
+        }\r
+        leaf-list requested-object-types {\r
+            type object-type;\r
+            description "none";\r
+        }\r
+        leaf-list requested-layer-protocols {\r
+            type tapi-common:layer-protocol-name;\r
+            description "none";\r
+        }\r
+        leaf-list requested-object-identifier {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        leaf include-content {\r
+            type boolean;\r
+            description "Indicates whether the published Notification includes content or just the Notification Id (which enables retrieval of the notification at the later stage)";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    notification notification {\r
+        uses notification;\r
+        description "none";\r
+    }\r
+    grouping notification {\r
+        leaf notification-type {\r
+            type notification-type;\r
+            description "none";\r
+        }\r
+        leaf target-object-type {\r
+            type object-type;\r
+            description "none";\r
+        }\r
+        leaf target-object-identifier {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        list target-object-name {\r
+            key 'value-name';\r
+            min-elements 1;\r
+            uses tapi-common:name-and-value;\r
+            description "none";\r
+        }\r
+        leaf event-time-stamp {\r
+            type tapi-common:date-and-time;\r
+            description "none";\r
+        }\r
+        leaf sequence-number {\r
+            type uint64;\r
+            config false;\r
+            description "A monotonous increasing sequence number associated with the notification.\r
+                The exact semantics of how this sequence number is assigned (per channel or subscription or source or system) is left undefined.";\r
+        }\r
+        leaf source-indicator {\r
+            type source-indicator;\r
+            description "none";\r
+        }\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            description "none";\r
+        }\r
+        list changed-attributes {\r
+            key 'value-name';\r
+            uses name-and-value-change;\r
+            description "none";\r
+        }\r
+        list additional-info {\r
+            key 'value-name';\r
+            uses tapi-common:name-and-value;\r
+            description "none";\r
+        }\r
+        leaf additional-text {\r
+            type string;\r
+            description "none";\r
+        }\r
+        container tca-info {\r
+            uses tca-info;\r
+            description "none";\r
+        }\r
+        container alarm-info {\r
+            uses alarm-info;\r
+            description "none";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        description "none";\r
+    }\r
+    grouping notification-channel {\r
+        leaf stream-address {\r
+            type string;\r
+            config false;\r
+            description "The address/location/URI of the channel/stream to which the subscribed notifications are published.\r
+                This specifics of this is typically dependent on the implementation protocol & mechanism and hence is typed as a string.";\r
+        }\r
+        leaf next-sequence-no {\r
+            type uint64;\r
+            config false;\r
+            description "The sequence number of the next notification that will be published on the channel";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    grouping notification-context {\r
+        list notif-subscription {\r
+            key 'uuid';\r
+            uses notification-subscription-service;\r
+            description "none";\r
+        }\r
+        list notification {\r
+            key 'uuid';\r
+            config false;\r
+            uses notification;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping alarm-info {\r
+        leaf is-transient {\r
+            type boolean;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf perceived-severity {\r
+            type perceived-severity-type;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf probable-cause {\r
+            type string;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf service-affecting {\r
+            type service-affecting;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping tca-info {\r
+        leaf is-transient {\r
+            type boolean;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf threshold-crossing {\r
+            type threshold-crossing-type;\r
+            description "none";\r
+        }\r
+        leaf threshold-parameter {\r
+            type string;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf threshold-value {\r
+            type uint64;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf perceived-severity {\r
+            type perceived-tca-severity;\r
+            description "none";\r
+        }\r
+        leaf measurement-interval {\r
+            type tapi-common:date-and-time;\r
+            description "none";\r
+        }\r
+        leaf suspect-interval-flag {\r
+            type boolean;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    grouping name-and-value-change {\r
+        leaf value-name {\r
+            type string;\r
+            description "The name of the value. The value need not have a name.";\r
+        }\r
+        leaf old-value {\r
+            type string;\r
+            description "The value";\r
+        }\r
+        leaf new-value {\r
+            type string;\r
+            description "The value";\r
+        }\r
+        description "A scoped name-value triple, including old value and new value";\r
+    }\r
+    typedef notification-type {\r
+        type enumeration {\r
+            enum OBJECT_CREATION {\r
+                description "Not a normal state. The system is unable to determine the correct value.";\r
+            }\r
+            enum OBJECT_DELETION {\r
+                description "none";\r
+            }\r
+            enum ATTRIBUTE_VALUE_CHANGE {\r
+                description "none";\r
+            }\r
+            enum ALARM_EVENT {\r
+                description "none";\r
+            }\r
+            enum THRESHOLD_CROSSING_ALERT {\r
+                description "none";\r
+            }\r
+        }\r
+        description "List of supported Notifications types.";\r
+    }\r
+    typedef object-type {\r
+        type enumeration {\r
+            enum TOPOLOGY {\r
+                description "none";\r
+            }\r
+            enum NODE {\r
+                description "none";\r
+            }\r
+            enum LINK {\r
+                description "none";\r
+            }\r
+            enum CONNECTION {\r
+                description "none";\r
+            }\r
+            enum PATH {\r
+                description "none";\r
+            }\r
+            enum CONNECTIVITY_SERVICE {\r
+                description "none";\r
+            }\r
+            enum VIRTUAL_NETWORK_SERVICE {\r
+                description "none";\r
+            }\r
+            enum PATH_COMPUTATION_SERVICE {\r
+                description "none";\r
+            }\r
+            enum NODE_EDGE_POINT {\r
+                description "none";\r
+            }\r
+            enum SERVICE_INTERFACE_POINT {\r
+                description "none";\r
+            }\r
+            enum CONNECTION_END_POINT {\r
+                description "none";\r
+            }\r
+            enum MAINTENANCE_ENTITY_GROUP {\r
+                description "none";\r
+            }\r
+            enum MAINTENANCE_ENTITY {\r
+                description "none";\r
+            }\r
+            enum MEG_END_POINT {\r
+                description "none";\r
+            }\r
+            enum MEG_INTERMEDIATE_POINT {\r
+                description "none";\r
+            }\r
+            enum SWITCH_CONTROL {\r
+                description "none";\r
+            }\r
+            enum SWITCH {\r
+                description "none";\r
+            }\r
+            enum ROUTE {\r
+                description "none";\r
+            }\r
+            enum NODE_RULE_GROUP {\r
+                description "none";\r
+            }\r
+            enum INTER_RULE_GROUP {\r
+                description "none";\r
+            }\r
+            enum RULE {\r
+                description "none";\r
+            }\r
+            enum OAM_JOB {\r
+                description "none";\r
+            }\r
+            enum ACCESS_PORT {\r
+                description "none";\r
+            }\r
+            enum EQUIPMENT {\r
+                description "none";\r
+            }\r
+            enum HOLDER {\r
+                description "none";\r
+            }\r
+            enum PHYSICAL_SPAN {\r
+                description "none";\r
+            }\r
+            enum ABSTRACT_STRAND {\r
+                description "none";\r
+            }\r
+            enum DEVICE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "The list of TAPI Global Object Class types on which Notifications can be raised.";\r
+    }\r
+    typedef source-indicator {\r
+        type enumeration {\r
+            enum RESOURCE_OPERATION {\r
+                description "none";\r
+            }\r
+            enum MANAGEMENT_OPERATION {\r
+                description "none";\r
+            }\r
+            enum UNKNOWN {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef subscription-state {\r
+        type enumeration {\r
+            enum SUSPENDED {\r
+                description "none";\r
+            }\r
+            enum ACTIVE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef perceived-severity-type {\r
+        type enumeration {\r
+            enum CRITICAL {\r
+                description "none";\r
+            }\r
+            enum MAJOR {\r
+                description "none";\r
+            }\r
+            enum MINOR {\r
+                description "none";\r
+            }\r
+            enum WARNING {\r
+                description "none";\r
+            }\r
+            enum CLEARED {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef threshold-crossing-type {\r
+        type enumeration {\r
+            enum THRESHOLD_ABOVE {\r
+                description "none";\r
+            }\r
+            enum THRESHOLD_BELOW {\r
+                description "none";\r
+            }\r
+            enum CLEARED {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef service-affecting {\r
+        type enumeration {\r
+            enum SERVICE_AFFECTING {\r
+                description "none";\r
+            }\r
+            enum NOT_SERVICE_AFFECTING {\r
+                description "none";\r
+            }\r
+            enum UNKNOWN {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef perceived-tca-severity {\r
+        type enumeration {\r
+            enum WARNING {\r
+                description "none";\r
+            }\r
+            enum CLEAR {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+\r
+    /**************************\r
+    * package interfaces\r
+    **************************/ \r
+    rpc get-supported-notification-types {\r
+        description "none";\r
+        output {\r
+            leaf-list supported-notification-types {\r
+                type notification-type;\r
+                min-elements 1;\r
+                description "none";\r
+            }\r
+            leaf-list supported-object-types {\r
+                type object-type;\r
+                min-elements 1;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc create-notification-subscription-service {\r
+        description "none";\r
+        input {\r
+            container subscription-filter {\r
+                uses subscription-filter;\r
+                description "none";\r
+            }\r
+            leaf subscription-state {\r
+                type subscription-state;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container subscription-service {\r
+                uses notification-subscription-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc update-notification-subscription-service {\r
+        description "none";\r
+        input {\r
+            leaf subscription-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            container subscription-filter {\r
+                uses subscription-filter;\r
+                description "none";\r
+            }\r
+            leaf subscription-state {\r
+                type subscription-state;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container subscription-service {\r
+                uses notification-subscription-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc delete-notification-subscription-service {\r
+        description "none";\r
+        input {\r
+            leaf subscription-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container subscription-service {\r
+                uses notification-subscription-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-notification-subscription-service-details {\r
+        description "none";\r
+        input {\r
+            leaf subscription-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container subscription-service {\r
+                uses notification-subscription-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-notification-subscription-service-list {\r
+        description "none";\r
+        output {\r
+            list subscription-service {\r
+                key 'uuid';\r
+                uses notification-subscription-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-notification-list {\r
+        description "none";\r
+        input {\r
+            leaf subscription-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf time-period {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            list notification {\r
+                key 'uuid';\r
+                uses notification;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-oam@2020-04-23.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-oam@2020-04-23.yang
new file mode 100644 (file)
index 0000000..bb445d3
--- /dev/null
@@ -0,0 +1,842 @@
+module tapi-oam {\r
+    namespace "urn:onf:otcc:yang:tapi-oam";\r
+    prefix tapi-oam;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    import tapi-connectivity {\r
+        prefix tapi-connectivity;\r
+    }\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G39KDEbL$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI OAM Model definitions.\r
+        Source: TapiOam.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+          <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G4QHf0bG$ >\r
+          and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+          <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8IIivez$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+          As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+          The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G3bKxRf2$ >.\r
+          YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0";\r
+    revision 2020-04-23 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7tqhxFK$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7eDS6-t$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1ftwU5J$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G-5JStw4$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1Yf4AAN$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G27-pJK_$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8RnGvXg$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6Gy6YoeAv$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6GyqYDgG_$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1V9Thk9$ >";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        container oam-context {\r
+            uses oam-context;\r
+            description "Augments the base TAPI Context with OamService information";\r
+        }\r
+        description "Augments the base TAPI Context with OamService information";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {\r
+        container mep-mip-list {\r
+            uses mep-mip-list;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * definitions of references\r
+    **************************/\r
+    grouping oam-service-ref {\r
+        leaf oam-service-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-service/tapi-oam:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping oam-service-end-point-ref {\r
+        uses oam-service-ref;\r
+        leaf oam-service-end-point-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-service/tapi-oam:end-point/tapi-oam:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping meg-ref {\r
+        leaf meg-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping maintenance-entity-ref {\r
+        uses meg-ref;\r
+        leaf maintenance-entity-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:me/tapi-oam:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping mep-ref {\r
+        uses meg-ref;\r
+        leaf mep-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep/tapi-oam:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping mip-ref {\r
+        uses meg-ref;\r
+        leaf mip-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mip/tapi-oam:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping oam-job-ref {\r
+        leaf oam-job-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping pm-current-data-ref {\r
+        uses oam-job-ref;\r
+        leaf pm-current-data-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping pm-history-data-ref {\r
+        uses pm-current-data-ref;\r
+        leaf pm-history-data-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data/tapi-oam:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping oam-profile-ref {\r
+        leaf oam-profile-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping pm-threshold-data-ref {\r
+        uses oam-profile-ref;\r
+        leaf pm-threshold-data-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data/tapi-oam:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping pm-bin-data-ref {\r
+        uses oam-profile-ref;\r
+        leaf pm-bin-data-local-id {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-bin-data/tapi-oam:local-id';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package object-classes\r
+    **************************/\r
+    grouping mep {\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:termination-direction;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf mep-identifier {\r
+            type string;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf-list peer-mep-identifier {\r
+            type string;\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        uses tapi-common:operational-state-pac;\r
+        description "none";\r
+    }\r
+    grouping oam-job {\r
+        list oam-service-end-point {\r
+            uses oam-service-end-point-ref;\r
+            key 'oam-service-uuid oam-service-end-point-local-id';\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        container oam-profile {\r
+            uses oam-profile-ref;\r
+            description "none";\r
+        }\r
+        list pm-current-data {\r
+            key 'local-id';\r
+            config false;\r
+            uses pm-current-data;\r
+            description "Granularity period of the CurrentData identifies the specific CurrentData instance in the scope of this OamJob.\r
+                For example, typically at least\r
+                one 15min and\r
+                one 24hr;\r
+                optionally one additional configurable (< 15min)";\r
+        }\r
+        leaf oam-job-type {\r
+            type oam-job-type;\r
+            description "none";\r
+        }\r
+        container schedule {\r
+            uses tapi-common:time-range;\r
+            description "none";\r
+        }\r
+        leaf creation-time {\r
+            type tapi-common:date-and-time;\r
+            config false;\r
+            description "none";\r
+        }\r
+        uses tapi-common:global-class;\r
+        uses tapi-common:admin-state-pac;\r
+        description "none";\r
+    }\r
+    grouping meg {\r
+        list mep {\r
+            key 'local-id';\r
+            config false;\r
+            uses mep;\r
+            description "1. ME may have 0 MEPs (case of transit domains where at least 1 MIP is present)\r
+                2. ME may have 1 MEP (case of edge domaind, where the peer MEP is ouside the managed domain)\r
+                3. ME may have 2 MEPs";\r
+        }\r
+        list mip {\r
+            key 'local-id';\r
+            config false;\r
+            uses mip;\r
+            description "ME may 0, 1, or more MIPs";\r
+        }\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:forwarding-direction;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf meg-level {\r
+            type uint64;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf meg-identifier {\r
+            type string;\r
+            config false;\r
+            description "none";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses tapi-common:operational-state-pac;\r
+        description "none";\r
+    }\r
+    grouping mip {\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    grouping oam-service {\r
+        list end-point {\r
+            key 'local-id';\r
+            min-elements 2;\r
+            uses oam-service-end-point;\r
+            description "none";\r
+        }\r
+        container meg {\r
+            uses meg-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        container oam-profile {\r
+            uses oam-profile-ref;\r
+            description "none";\r
+        }\r
+        uses tapi-common:service-spec;\r
+        uses tapi-common:admin-state-pac;\r
+        uses oam-constraint;\r
+        description "none";\r
+    }\r
+    grouping oam-context {\r
+        list oam-service {\r
+            key 'uuid';\r
+            uses oam-service;\r
+            description "none";\r
+        }\r
+        list meg {\r
+            key 'uuid';\r
+            config false;\r
+            uses meg;\r
+            description "none";\r
+        }\r
+        list oam-job {\r
+            key 'uuid';\r
+            uses oam-job;\r
+            description "none";\r
+        }\r
+        list oam-profile {\r
+            key 'uuid';\r
+            uses oam-profile;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping oam-service-end-point {\r
+        container service-interface-point {\r
+            uses tapi-common:service-interface-point-ref;\r
+            description "none";\r
+        }\r
+        container connectivity-service-end-point {\r
+            uses tapi-connectivity:connectivity-service-end-point-ref;\r
+            description "none";\r
+        }\r
+        container mep {\r
+            uses mep-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        container mip {\r
+            uses mip-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:port-direction;\r
+            description "none";\r
+        }\r
+        leaf mep-identifier {\r
+            type string;\r
+            description "This attribute contains the identifier of the MEP.\r
+                This attribute is empty in case the OSEP relates to the provisioing of an MIP.\r
+                ";\r
+        }\r
+        leaf-list peer-mep-identifier {\r
+            type string;\r
+            description "This attribute models the MI_PeerMEP_ID[i] defined in G.8021 and configured as specified in G.8051. It provides the identifiers of the MEPs which are peer to the subject MEP.\r
+                This attribute is not specified in case the OSEP relates to the provisioing of an MIP.\r
+                In case of P2P, there is only one peer";\r
+        }\r
+        uses tapi-common:local-class;\r
+        uses tapi-common:admin-state-pac;\r
+        description "none";\r
+    }\r
+    grouping mep-mip-list {\r
+        list mip {\r
+            uses mip-ref;\r
+            key 'meg-uuid mip-local-id';\r
+            description "none";\r
+        }\r
+        list mep {\r
+            uses mep-ref;\r
+            key 'meg-uuid mep-local-id';\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping oam-constraint {\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:forwarding-direction;\r
+            description "none";\r
+        }\r
+        leaf meg-level {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping pm-current-data {\r
+        list pm-history-data {\r
+            key 'local-id';\r
+            config false;\r
+            uses pm-history-data;\r
+            description "in case of 24hr Current Data, at least 1 History Data.\r
+                In case of 15min Current Data, at least 16 History Data.\r
+                In case of <15min, the number of History Data shall be able to cover a span of 4 hours.";\r
+        }\r
+        container granularity-period {\r
+            uses tapi-common:time-period;\r
+            description "none";\r
+        }\r
+        leaf timestamp {\r
+            type tapi-common:date-and-time;\r
+            config false;\r
+            description "This attribute indicates the start of the current monitoring interval.\r
+                The value is bound to the quarter of an hour in case of a 15 minute interval and bound to the hour in case of a 24 hour interval.";\r
+        }\r
+        container elapsed-time {\r
+            uses tapi-common:time-interval;\r
+            description "none";\r
+        }\r
+        leaf suspect-interval-flag {\r
+            type boolean;\r
+            description "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
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    grouping pm-history-data {\r
+        container granularity-period {\r
+            uses tapi-common:time-period;\r
+            description "none";\r
+        }\r
+        leaf period-end-time {\r
+            type tapi-common:date-and-time;\r
+            description "none";\r
+        }\r
+        leaf suspect-interval-flag {\r
+            type boolean;\r
+            config false;\r
+            description "This attribute indicates that the performance data may not be reliable.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    grouping oam-profile {\r
+        list pm-threshold-data {\r
+            key 'local-id';\r
+            min-elements 1;\r
+            uses pm-threshold-data;\r
+            description "none";\r
+        }\r
+        list pm-bin-data {\r
+            key 'local-id';\r
+            min-elements 1;\r
+            uses pm-bin-data;\r
+            description "none";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "none";\r
+    }\r
+    grouping pm-threshold-data {\r
+        container granularity-period {\r
+            uses tapi-common:time-period;\r
+            description "none";\r
+        }\r
+        leaf is-transient {\r
+            type boolean;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    grouping pm-bin-data {\r
+        container granularity-period {\r
+            uses tapi-common:time-period;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package type-definitions\r
+    **************************/\r
+    identity OAM_JOB_TYPE {\r
+        description "none";\r
+    }\r
+    typedef oam-job-type {\r
+        type identityref {\r
+            base OAM_JOB_TYPE;\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package interfaces\r
+    **************************/\r
+    rpc create-oam-service {\r
+        description "none";\r
+        input {\r
+            list end-point {\r
+                key 'local-id';\r
+                min-elements 2;\r
+                uses oam-service-end-point;\r
+                description "none";\r
+            }\r
+            container oam-constraint {\r
+                uses oam-constraint;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses oam-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc delete-oam-service {\r
+        description "none";\r
+        input {\r
+            leaf service-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-oam-service {\r
+        description "none";\r
+        input {\r
+            leaf service-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses oam-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc create-oam-job {\r
+        description "none";\r
+        input {\r
+            leaf oam-job-type {\r
+                type oam-job-type;\r
+                description "none";\r
+            }\r
+            list oam-service-end-point {\r
+                key 'local-id';\r
+                min-elements 2;\r
+                uses oam-service-end-point;\r
+                description "none";\r
+            }\r
+            container oam-profile {\r
+                uses oam-profile;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf schedule {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container oam-job {\r
+                uses oam-job;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-oam-job {\r
+        description "none";\r
+        input {\r
+            leaf job-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container oam-job {\r
+                uses oam-job;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-oam-service-list {\r
+        description "none";\r
+        output {\r
+            list service {\r
+                key 'uuid';\r
+                uses oam-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-meg {\r
+        description "none";\r
+        input {\r
+            leaf service-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container meg {\r
+                uses meg;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc update-oam-service {\r
+        description "none";\r
+        input {\r
+            leaf service-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            list end-point {\r
+                key 'local-id';\r
+                uses oam-service-end-point;\r
+                description "none";\r
+            }\r
+            container oam-constraint {\r
+                uses oam-constraint;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses oam-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc delete-oam-job {\r
+        description "none";\r
+        input {\r
+            leaf job-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc update-oam-job {\r
+        description "none";\r
+        input {\r
+            leaf job-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            container oam-profile {\r
+                uses oam-profile;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf schedule {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container oam-job {\r
+                uses oam-job;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc create-oam-service-end-point {\r
+        description "none";\r
+        input {\r
+            leaf service-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf sip-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf c-sep-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf layer {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf direction {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf mep-identifier {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf-list peer-mep-identifier {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container end-point {\r
+                uses oam-service-end-point;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc delete-oam-service-end-point {\r
+        description "none";\r
+        input {\r
+            leaf service-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf o-sep-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc update-oam-service-end-point {\r
+        description "none";\r
+        input {\r
+            leaf service-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf o-sep-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf state {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container end-point {\r
+                uses oam-service-end-point;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-oam-service-end-point {\r
+        description "none";\r
+        input {\r
+            leaf service-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf o-sep-id {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container end-point {\r
+                uses oam-service-end-point;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-odu@2020-04-23.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-odu@2020-04-23.yang
new file mode 100644 (file)
index 0000000..9674de4
--- /dev/null
@@ -0,0 +1,878 @@
+module tapi-odu {\r
+    namespace "urn:onf:otcc:yang:tapi-odu";\r
+    prefix tapi-odu;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    import tapi-connectivity {\r
+        prefix tapi-connectivity;\r
+    }\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    import tapi-oam {\r
+        prefix tapi-oam;\r
+    }\r
+    import tapi-dsr {\r
+        prefix tapi-dsr;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G39KDEbL$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI ODU Model definitions.\r
+        Source: TapiOdu.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+          <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G4QHf0bG$ >\r
+          and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+          <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8IIivez$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+          As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+          The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G3bKxRf2$ >.\r
+          YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0";\r
+    revision 2020-04-23 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7tqhxFK$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7eDS6-t$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1ftwU5J$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G-5JStw4$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1Yf4AAN$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G27-pJK_$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8RnGvXg$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6Gy6YoeAv$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6GyqYDgG_$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1V9Thk9$ >";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point" {\r
+        container odu-node-edge-point-spec {\r
+            uses odu-node-edge-point-spec;\r
+            description "Augments the base LayerProtocol information in NodeEdgePoint with ODU-specific information";\r
+        }\r
+        description "Augments the base LayerProtocol information in NodeEdgePoint with ODU-specific information";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {\r
+        container odu-connection-end-point-spec {\r
+            uses odu-connection-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep" {\r
+        container odu-connection-end-point-spec {\r
+            uses odu-connection-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mip" {\r
+        container odu-mip-spec {\r
+            uses odu-mip-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:end-point" {\r
+        container odu-connectivity-service-end-point-spec {\r
+            uses odu-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping odu-termination-and-client-adaptation-pac {\r
+        leaf opu-tributary-slot-size {\r
+            type odu-slot-size;\r
+            config false;\r
+            description "This attribute is applicable for ODU2 and ODU3 CTP only. It indicates the slot size of the ODU CTP.";\r
+        }\r
+        leaf auto-payload-type {\r
+            type boolean;\r
+            config false;\r
+            description "This attribute is applicable when the ODU CTP object instance represents a lower order ODU CTP Source at the client layer of the ODUP/ODUj-21 adaptation function. The value of true of this attribute configures that the adaptation source function shall fall back to the payload type PT=20 if the conditions specified in 14.3.10.1/G.798 are satisfied. ";\r
+        }\r
+        leaf configured-client-type {\r
+            type tapi-dsr:digital-signal-type;\r
+            config false;\r
+            description "This attribute configures the type of the client CTP of the server ODU TTP.";\r
+        }\r
+        leaf configured-mapping-type {\r
+            type mapping-type;\r
+            config false;\r
+            description "This attributes indicates the configured mapping type.";\r
+        }\r
+        container accepted-payload-type {\r
+            config false;\r
+            uses odu-payload-type;\r
+            description "This attribute is applicable when the ODU CTP object instance represents a lower order ODU CTP Sink at the client layer of the ODUP/ODU[i]j or ODUP/ODUj-21 adaptation function. \r
+                This attribute is a 2-digit Hex code that indicates the new accepted payload type.\r
+                Valid values are defined in Table 15-8 of ITU-T Recommendation G.709 with one additional value UN_INTERPRETABLE.";\r
+        }\r
+        container fec-parameters {\r
+            config false;\r
+            uses fec-properties;\r
+            description "none";\r
+        }\r
+        leaf-list odu-cn-effective-time-slot-list {\r
+            type uint64;\r
+            description "This attribute contains a set of distinct (i.e. unique) integers (e.g. 2, 3, 5, 9, 15, 34 representing the tributary slots TS#1.2, TS#1.3, TS#1.5, TS#1.9, TS#1.15, and TS#2.14)\r
+                which represents the list of effective time slots which are available for carrying ODUk clients.\r
+                Each entry in the list is an integer value (P) representing the time slot name TS#A.B (see ITU-T Recommendation G.709 (v5) Clause 20.1).\r
+                The mapping between P and A & B is: A = [P/20] + 1; B = P - (P/20]*20; where the sqaure bracket represents the whole integer.";\r
+        }\r
+        description "This Pac contains the attributes associated with the client adaptation function of the server layer TTP\r
+            It is present only if the CEP contains a TTP";\r
+    }\r
+    grouping odu-connection-end-point-spec {\r
+        container odu-common {\r
+            uses odu-common-pac;\r
+            description "none";\r
+        }\r
+        container odu-term-and-adapter {\r
+            config false;\r
+            uses odu-termination-and-client-adaptation-pac;\r
+            description "none";\r
+        }\r
+        container odu-ctp {\r
+            config false;\r
+            uses odu-ctp-pac;\r
+            description "none";\r
+        }\r
+        container odu-protection {\r
+            config false;\r
+            uses odu-protection-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-pool-pac {\r
+        leaf client-capacity {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        leaf max-client-instances {\r
+            type uint64;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf max-client-size {\r
+            type uint64;\r
+            config false;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-node-edge-point-spec {\r
+        container odu-pool {\r
+            config false;\r
+            uses odu-pool-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-ctp-pac {\r
+        leaf-list tributary-slot-list {\r
+            type uint64;\r
+            config false;\r
+            description "ITU-T G.875 (v5)\r
+                This attribute contains a set of distinct (i.e. unique) integers (e.g. 2, 3, 5, 9, 15 representing the tributary slots TS#2, TS#3, TS#5, TS#9 and TS#15) which represents the resources occupied by the ODUk CTP (e.g. an ODUflex with a bit rate of 6.25G setup over an HO-ODUk).\r
+                This attribute applies when the ODUk CTP is carried by a sever layer ODU TTP object. It will not apply if this ODUk CTP object is directly carried by an OTUk TTP object (i.e. OTUk has no tributary slots).\r
+                The upper bound of the integer allowed in this set and its relationship with the tributary slots are a function of the ODU server layer to which the ODUk CTP is carried over.\r
+                In case the ODU server layer is an HO-ODUk, each entry in the list is an integer value (i) representing the tributary slot name TS#i and the upper bound is the maximum number of tributary slots within the HO-ODUk (see ITU-T Recommendation G.709 (v5) clause 19).\r
+                Thus, for example, M=8/32/80 for ODU2/ODU3/ODU4 server layers (respectively) using 1.25G slot size.\r
+                In case the ODU server layer is an ODUCn, each entry in the list is an integer value (P) representing the time slot name TS#A.B (e.g. 2, 3, 5, 9, 15, 34 representing the tributary slots TS#1.2, TS#1.3, TS#1.5, TS#1.9, TS#1.15, and TS#2.14) and the upper und is 20*n (see ITU-T Recommendation G.709 (v5) Clause 20.1).\r
+                The mapping between P and A & B is: A = [P/20] + 1; B = P - (P/20]*20; where the square bracket represents the whole integer. Note that the value of this attribute can be changed only in the case of ODUflex and has to be through specific operations (i.e. not be changing the attribute tributarySlotList directly).";\r
+        }\r
+        leaf tributary-port-number {\r
+            type uint64;\r
+            config false;\r
+            description "This attribute identifies the tributary port number that is associated with the ODUk CTP. This attribute applies when the ODUk CTP is multiplexed into a server layer ODU TTP object.\r
+                It will not apply if this ODUk CTP object is directly mapped into an OTUk TTP object (i.e. OTUk has no tributary slots).\r
+                The upper bound of the integer allowed in this set is a function of the ODU server layer into which the ODUk CTP is multiplexed.\r
+                In case the ODU server layer is an HO-ODUk, the upper bound is the maximum number of tributary slots within the HO-ODUk (see ITU-T Recommendation G.709 (v5) clause 19.4.1).\r
+                Thus, for example, M=8/32/80 for ODU2/ODU3/ODU4 server layers (respectively) using 1.25G slot size.\r
+                In case the ODU server layer is an ODUCn, the upper bound is M=10*n (see ITU-T Recommendation G.709 (v5) Clause 20.4.1).\r
+                range of type : The value range depends on the size of the Tributary Port Number (TPN) field used which depends on th server-layer ODU or OTU.\r
+                In case of ODUk mapping into OTUk, there is no TPN field, so the tributaryPortNumber shall be zero.\r
+                In case of LO ODUj mapping over ODU1, ODU2 or ODU3, the TPN is encoded in a 6-bit field so the value range is 0-63. See clause 14.4.1/G.709-2016.\r
+                In case of LO ODUj mapping over ODU4, the TPN is encoded in a 7-bit field so the value range is 0-127. See clause 14.4.1.4/G.709-2016.\r
+                In case of ODUk mapping over ODUCn, the TPN is encoded in a 14-bit field so the value range is 0-16383. See clause 20.4.1.1/G.709-2016.\r
+                ";\r
+        }\r
+        leaf accepted-msi {\r
+            type string;\r
+            config false;\r
+            description "This attribute is applicable when the ODU CTP object instance represents a lower order ODU1 or ODU2 CTP Sink at the client layer of the ODU3P/ODU12 adaptation function or represents a lower order ODUj CTP Sink at the client layer of the ODUP/ODUj-21 adaptation function. This attribute is a 1-byte field that represents the accepted multiplex structure of the adaptation function. ";\r
+        }\r
+        description "This Pac contains the attributes associated with the CTP\r
+            It is present only if the CEP contains a CTP";\r
+    }\r
+    grouping odu-mep-spec {\r
+        container odu-mep {\r
+            uses odu-mep-pac;\r
+            description "none";\r
+        }\r
+        container odu-ncm {\r
+            config false;\r
+            uses odu-ncm-pac;\r
+            description "none";\r
+        }\r
+        container odu-tcm {\r
+            config false;\r
+            uses odu-tcm-mep-pac;\r
+            description "none";\r
+        }\r
+        container odu-defect {\r
+            uses odu-defect-pac;\r
+            description "none";\r
+        }\r
+        container odu-pm {\r
+            uses odu-pm-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-protection-pac {\r
+        leaf aps-enable {\r
+            type boolean;\r
+            default "true";\r
+            description "This attribute is for enabling/disabling the automatic protection switching (APS) capability at the transport adaptation function that is represented by the ODU_ConnectionTerminationPoint object class. It triggers the MI_APS_EN signal to the transport adaptation function.";\r
+        }\r
+        leaf aps-level {\r
+            type uint64;\r
+            description "This attribute is for configuring the automatic protection switching (APS) level that should operate at the transport adaptation function that is represented by the ODU_ConnectionTerminationPoint object class. It triggers the MI_APS_LVL signal to the transport adaptation function. The value 0 means path and the values 1 through 6 mean TCM level 1 through 6 respectively.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-ncm-pac {\r
+        leaf-list tcm-fields-in-use {\r
+            type uint64;\r
+            config false;\r
+            description "This attribute indicates the used TCM fields of the ODU OH.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-tcm-mep-pac {\r
+        leaf tcm-extension {\r
+            type tcm-extension;\r
+            description "none";\r
+        }\r
+        leaf tcm-mode {\r
+            type tcm-mode;\r
+            description "This attribute specifies the TCM mode at the entity. Valid values are: Operational, Monitor, and Transparent.";\r
+        }\r
+        leaf codirectional {\r
+            type boolean;\r
+            config false;\r
+            description "This attribute specifies the directionality of the ODUT MEP with respect to the associated ODU CEP. The value of TRUE means that the sink part of the ODUT MEP terminates the same signal direction as the sink part of the ODU CEP. The Source part behaves similarly. This attribute is meaningful only on objects instantiated under ODU CEP, and at least one among ODU CEP and the subordinate object is bidirectional.";\r
+        }\r
+        leaf ac-status-source {\r
+            type tcm-status;\r
+            config false;\r
+            description "This attribute indicates the status of the accepted TCM. ";\r
+        }\r
+        leaf ac-status-sink {\r
+            type tcm-status;\r
+            config false;\r
+            description "This attribute indicates the status of the accepted TCM. ";\r
+        }\r
+        leaf admin-state-source {\r
+            type tapi-common:administrative-state;\r
+            description "This attribute provides the capability to provision the LOCK signal at the source, which is one of the ODU maintenance signals.  When a Tandem Connection endpoint is set to admin state locked, it will insert the ODU-LCK signal in the source direction.";\r
+        }\r
+        leaf admin-state-sink {\r
+            type tapi-common:administrative-state;\r
+            description "This attribute provides the capability to provision the LOCK signal at the sink, which is one of the ODU maintenance signals. When a Tandem Connection endpoint is set to admin state locked, it will insert the ODU-LCK signal in the downstream direction.";\r
+        }\r
+        uses odu-tcm-mip-pac;\r
+        description "none";\r
+    }\r
+    grouping odu-mip-spec {\r
+        container odu-mip {\r
+            config false;\r
+            uses odu-mip-pac;\r
+            description "none";\r
+        }\r
+        container odu-ncm {\r
+            config false;\r
+            uses odu-ncm-pac;\r
+            description "none";\r
+        }\r
+        container odu-tcm {\r
+            config false;\r
+            uses odu-tcm-mip-pac;\r
+            description "none";\r
+        }\r
+        container odu-pm {\r
+            uses odu-pm-pac;\r
+            description "none";\r
+        }\r
+        container odu-defect {\r
+            uses odu-defect-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-mip-pac {\r
+        leaf acti {\r
+            type string;\r
+            config false;\r
+            description "The Trail Trace Identifier (TTI) information recovered (Accepted) from the TTI overhead position at the sink of a trail.";\r
+        }\r
+        leaf ex-dapi {\r
+            type string;\r
+            description "The Expected Destination Access Point Identifier (ExDAPI), provisioned by the managing system, to be compared with the TTI accepted at the overhead position of the sink for the purpose of checking the integrity of connectivity.";\r
+        }\r
+        leaf ex-sapi {\r
+            type string;\r
+            description "The Expected Source Access Point Identifier (ExSAPI), provisioned by the managing system, to be compared with the TTI accepted at the overhead position of the sink for the purpose of checking the integrity of connectivity.\r
+                ";\r
+        }\r
+        leaf tim-act-disabled {\r
+            type boolean;\r
+            default "true";\r
+            description "This attribute provides the control capability for the managing system to enable or disable the Consequent Action function when detecting Trace Identifier Mismatch (TIM) at the trail termination sink.";\r
+        }\r
+        leaf tim-det-mode {\r
+            type tim-det-mo;\r
+            description "This attribute indicates the mode of the Trace Identifier Mismatch (TIM) Detection function allowed values: OFF, SAPIonly, DAPIonly, SAPIandDAPI";\r
+        }\r
+        leaf deg-m {\r
+            type uint64;\r
+            description "This attribute indicates the threshold level for declaring a Degraded Signal defect (dDEG). A dDEG shall be declared if DegM consecutive bad PM Seconds are detected.";\r
+        }\r
+        container deg-thr {\r
+            uses deg-thr;\r
+            description "This attribute indicates the threshold level for declaring a performance monitoring (PM) Second to be bad. The value of the threshold can be provisioned in terms of number of errored blocks or in terms of percentage of errored blocks. For percentage-based specification, in order to support provision of less than 1%, the specification consists of two fields. The first field indicates the granularity of percentage. For examples, in 1%, in 0.1%, or in 0.01%, etc. The second field indicates the multiple of the granularity. For number of errored block based, the value is a positive integer.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-tcm-mip-pac {\r
+        leaf tcm-field {\r
+            type uint64;\r
+            config false;\r
+            description "This attribute indicates the tandem connection monitoring field of the ODU OH.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-mep-pac {\r
+        leaf dm-source {\r
+            type boolean;\r
+            description "This attribute is for configuring the delay measurement process at the trail termination function represented by the subject TTP object class. It models the MI_DM_Source MI signal. If MI_DM_Source is false, then the value of the DMp bit is determined by the RI_DM. If MI_DM_Source is true, then the value of the DMp bit is set to MI_DMValue.";\r
+        }\r
+        leaf dm-value {\r
+            type boolean;\r
+            description "This attribute is for setting the DMp and DMti bits of the delay measurement process. The value of 'true' sets the DMp and DMti bits to 0 and the value of 'false' to 1.";\r
+        }\r
+        leaf txti {\r
+            type string;\r
+            description "The Trail Trace Identifier (TTI) information, provisioned by the managing system at the termination source, to be placed in the TTI overhead position of the source of a trail for transmission.\r
+                ";\r
+        }\r
+        uses odu-mip-pac;\r
+        description "none";\r
+    }\r
+    grouping odu-common-pac {\r
+        leaf odu-type {\r
+            type odu-type;\r
+            config false;\r
+            description "This attribute specifies the type of the ODU termination point.";\r
+        }\r
+        leaf odu-rate {\r
+            type uint64;\r
+            config false;\r
+            description "This attribute indicates the rate of the ODU termination point in Kbits/s. \r
+                This attribute is Set at create; i.e., once created it cannot be changed directly. \r
+                In case of resizable ODU flex, its value can be changed via HAO (not directly on the attribute). \r
+                This attribute indicates the rate of the ODU termination point.\r
+                Valid values shall be consistent with the oduType configuration as shown in Table 7-2/G.709 v5.\r
+                Setting this value for fixed-rate ODUk types (e.g., ODU0), is optional.\r
+                The default value is derived from the configured oduType, as defined in Table 7-2/G.709 v5.\r
+                Setting this value for ODUCn type is optional. The default value is derived from the configured n of the ODUCn as defined in Table 7-2/G.709 v5.";\r
+        }\r
+        leaf odu-rate-tolerance {\r
+            type uint64;\r
+            config false;\r
+            description "This attribute indicates the rate tolerance of the ODU termination point. \r
+                Valid values are real value in the unit of ppm. \r
+                Standardized values are defined in Table 7-2/G.709.";\r
+        }\r
+        leaf number-of-odu-c {\r
+            type uint64;\r
+            default "1";\r
+            description "This attribute specifies the number of ODUC instances of the ODUCn.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-pm-pac {\r
+        leaf n-bbe {\r
+            type uint64;\r
+            description "Near-end Background Block Error";\r
+        }\r
+        leaf f-bbe {\r
+            type uint64;\r
+            config false;\r
+            description "Far-end Background Block Error";\r
+        }\r
+        leaf n-ses {\r
+            type uint64;\r
+            description "Near-end Severely Errored Second";\r
+        }\r
+        leaf f-ses {\r
+            type uint64;\r
+            description "Far-end Severely Errored Second";\r
+        }\r
+        container uas {\r
+            uses uas-choice;\r
+            description "UnAvailable Second";\r
+        }\r
+        description "Instance of this object class contains the ODUP layer-specific Current Data. This object class is a subclass of the OTN_CurrentData object class.\r
+            PM data attributes: fBbe, fSes, nBbe, nSes. uas";\r
+    }\r
+    grouping odu-defect-pac {\r
+        leaf bdi {\r
+            type boolean;\r
+            config false;\r
+            description "Backward Defect Indication";\r
+        }\r
+        leaf deg {\r
+            type boolean;\r
+            config false;\r
+            description "Signal Degraded";\r
+        }\r
+        leaf lck {\r
+            type boolean;\r
+            config false;\r
+            description "Locked";\r
+        }\r
+        leaf oci {\r
+            type boolean;\r
+            config false;\r
+            description "Open Connection Indicator";\r
+        }\r
+        leaf ssf {\r
+            type boolean;\r
+            config false;\r
+            description "Server Signal Failure";\r
+        }\r
+        leaf tim {\r
+            type boolean;\r
+            config false;\r
+            description "Trail Trace Identifier Mismatch";\r
+        }\r
+        description "The valid list of defects raised on the entity. If the value of any attribute is true, then the corresponding defect is raised.";\r
+    }\r
+    grouping odu-connectivity-service-end-point-spec {\r
+        container odu-csep-ctp-pac {\r
+            uses odu-csep-ctp-pac;\r
+            description "none";\r
+        }\r
+        container odu-csep-ttp-pac {\r
+            uses odu-csep-ttp-pac;\r
+            description "none";\r
+        }\r
+        container odu-csep-common-pac {\r
+            uses odu-csep-common-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-csep-ctp-pac {\r
+        leaf tributary-port-number {\r
+            type uint64;\r
+            description "This attribute identifies the tributary port number that is associated with the ODUk CTP. This attribute applies when the ODUk CTP is multiplexed into a server layer ODU TTP object.\r
+                It will not apply if this ODUk CTP object is directly mapped into an OTUk TTP object (i.e. OTUk has no tributary slots).\r
+                The upper bound of the integer allowed in this set is a function of the ODU server layer into which the ODUk CTP is multiplexed.\r
+                In case the ODU server layer is an HO-ODUk, the upper bound is the maximum number of tributary slots within the HO-ODUk (see ITU-T Recommendation G.709 (v5) clause 19.4.1).\r
+                Thus, for example, M=8/32/80 for ODU2/ODU3/ODU4 server layers (respectively) using 1.25G slot size.\r
+                In case the ODU server layer is an ODUCn, the upper bound is M=10*n (see ITU-T Recommendation G.709 (v5) Clause 20.4.1).\r
+                range of type : The value range depends on the size of the Tributary Port Number (TPN) field used which depends on th server-layer ODU or OTU.\r
+                In case of ODUk mapping into OTUk, there is no TPN field, so the tributaryPortNumber shall be zero.\r
+                In case of LO ODUj mapping over ODU1, ODU2 or ODU3, the TPN is encoded in a 6-bit field so the value range is 0-63. See clause 14.4.1/G.709-2016.\r
+                In case of LO ODUj mapping over ODU4, the TPN is encoded in a 7-bit field so the value range is 0-127. See clause 14.4.1.4/G.709-2016.\r
+                In case of ODUk mapping over ODUCn, the TPN is encoded in a 14-bit field so the value range is 0-16383. See clause 20.4.1.1/G.709-2016.\r
+                ";\r
+        }\r
+        leaf-list tributary-slot-list {\r
+            type uint64;\r
+            description "ITU-T G.875 (v5)\r
+                This attribute contains a set of distinct (i.e. unique) integers (e.g. 2, 3, 5, 9, 15 representing the tributary slots TS#2, TS#3, TS#5, TS#9 and TS#15) which represents the resources occupied by the ODUk CTP (e.g. an ODUflex with a bit rate of 6.25G setup over an HO-ODUk).\r
+                This attribute applies when the ODUk CTP is carried by a sever layer ODU TTP object. It will not apply if this ODUk CTP object is directly carried by an OTUk TTP object (i.e. OTUk has no tributary slots).\r
+                The upper bound of the integer allowed in this set and its relationship with the tributary slots are a function of the ODU server layer to which the ODUk CTP is carried over.\r
+                In case the ODU server layer is an HO-ODUk, each entry in the list is an integer value (i) representing the tributary slot name TS#i and the upper bound is the maximum number of tributary slots within the HO-ODUk (see ITU-T Recommendation G.709 (v5) clause 19).\r
+                Thus, for example, M=8/32/80 for ODU2/ODU3/ODU4 server layers (respectively) using 1.25G slot size.\r
+                In case the ODU server layer is an ODUCn, each entry in the list is an integer value (P) representing the time slot name TS#A.B (e.g. 2, 3, 5, 9, 15, 34 representing the tributary slots TS#1.2, TS#1.3, TS#1.5, TS#1.9, TS#1.15, and TS#2.14) and the upper und is 20*n (see ITU-T Recommendation G.709 (v5) Clause 20.1).\r
+                The mapping between P and A & B is: A = [P/20] + 1; B = P - (P/20]*20; where the square bracket represents the whole integer. Note that the value of this attribute can be changed only in the case of ODUflex and has to be through specific operations (i.e. not be changing the attribute tributarySlotList directly).";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-csep-ttp-pac {\r
+        leaf configured-mapping-type {\r
+            type mapping-type;\r
+            description "This attributes indicates the configured mapping type.";\r
+        }\r
+        leaf configured-client-type {\r
+            type tapi-dsr:digital-signal-type;\r
+            config false;\r
+            description "This attribute configures the type of the client CTP of the server ODU TTP.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-csep-common-pac {\r
+        leaf odu-type {\r
+            type odu-type;\r
+            description "This attribute specifies the type of the ODU termination point.";\r
+        }\r
+        leaf odu-rate {\r
+            type uint64;\r
+            description "This attribute indicates the rate of the ODU termination point in Kbits/s. \r
+                This attribute is Set at create; i.e., once created it cannot be changed directly. \r
+                In case of resizable ODU flex, its value can be changed via HAO (not directly on the attribute). \r
+                This attribute indicates the rate of the ODU termination point.\r
+                Valid values shall be consistent with the oduType configuration as shown in Table 7-2/G.709 v5.\r
+                Setting this value for fixed-rate ODUk types (e.g., ODU0), is optional.\r
+                The default value is derived from the configured oduType, as defined in Table 7-2/G.709 v5.\r
+                Setting this value for ODUCn type is optional. The default value is derived from the configured n of the ODUCn as defined in Table 7-2/G.709 v5.";\r
+        }\r
+        leaf opu-tributary-slot-size {\r
+            type odu-slot-size;\r
+            description "This attribute is applicable for ODU2 and ODU3 CTP only. It indicates the slot size of the ODU CTP.";\r
+        }\r
+        leaf number-of-odu-c {\r
+            type uint64;\r
+            default "1";\r
+            description "This attribute specifies the number of ODUC instances of the ODUCn.";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    identity ODU_TYPE {\r
+        base tapi-common:LAYER_PROTOCOL_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity ODU_TYPE_ODU0 {\r
+        base ODU_TYPE;\r
+        description "none";\r
+    }\r
+    identity ODU_TYPE_ODU1 {\r
+        base ODU_TYPE;\r
+        description "none";\r
+    }\r
+    identity ODU_TYPE_ODU2 {\r
+        base ODU_TYPE;\r
+        description "none";\r
+    }\r
+    identity ODU_TYPE_ODU2E {\r
+        base ODU_TYPE;\r
+        description "none";\r
+    }\r
+    identity ODU_TYPE_ODU3 {\r
+        base ODU_TYPE;\r
+        description "none";\r
+    }\r
+    identity ODU_TYPE_ODU4 {\r
+        base ODU_TYPE;\r
+        description "none";\r
+    }\r
+    identity ODU_TYPE_ODU_FLEX {\r
+        base ODU_TYPE;\r
+        description "none";\r
+    }\r
+    identity ODU_TYPE_ODU_CN {\r
+        base ODU_TYPE;\r
+        description "none";\r
+    }\r
+    typedef odu-type {\r
+        type identityref {\r
+            base ODU_TYPE;\r
+        }\r
+        description "none";\r
+    }\r
+    typedef mapping-type {\r
+        type enumeration {\r
+            enum AMP {\r
+                description "none";\r
+            }\r
+            enum BMP {\r
+                description "none";\r
+            }\r
+            enum GFP-F {\r
+                description "none";\r
+            }\r
+            enum GMP {\r
+                description "none";\r
+            }\r
+            enum TTP_GFP_BMP {\r
+                description "none";\r
+            }\r
+            enum NULL {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef tim-det-mo {\r
+        type enumeration {\r
+            enum DAPI {\r
+                description "none";\r
+            }\r
+            enum SAPI {\r
+                description "none";\r
+            }\r
+            enum BOTH {\r
+                description "none";\r
+            }\r
+            enum OFF {\r
+                description "none";\r
+            }\r
+        }\r
+        description "List of modes for trace identifier mismatch detection.";\r
+    }\r
+    typedef odu-slot-size {\r
+        type enumeration {\r
+            enum 1G25 {\r
+                description "none";\r
+            }\r
+            enum 2G5 {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping odu-payload-type {\r
+        leaf named-payload-type {\r
+            type odu-named-payload-type;\r
+            description "none";\r
+        }\r
+        leaf hex-payload-type {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    typedef odu-named-payload-type {\r
+        type enumeration {\r
+            enum UNKNOWN {\r
+                description "none";\r
+            }\r
+            enum UNINTERPRETABLE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping deg-thr {\r
+        leaf deg-thr-value {\r
+            type uint64;\r
+            description "Percentage of detected errored blocks";\r
+        }\r
+        leaf deg-thr-type {\r
+            type deg-thr-type;\r
+            description "Number of errored blocks";\r
+        }\r
+        leaf percentage-granularity {\r
+            type percentage-granularity;\r
+            description "none";\r
+        }\r
+        description "Degraded Threshold, specify either the percentage or the number of Errored Blocks in the defined interval. \r
+            degThrValue when type is PERCENTAGE:\r
+            percentageGranularity is used to indicate the number of decimal points\r
+            So if percentageGranularity is ones, a value of 1 in degThrValue would indicate 1%, a value of 10 = 10%, a value of 100 = 100%\r
+            So if percentageGranularity is thousandths a value of 1 in degThrValue would indicate 0.001%, a value of 1000 = 1%, a value of 1000000 = 100%\r
+            degThrValue when type is NUMBER_ERROR_BLOCKS:\r
+            Number of Errored Blocks is captured in an integer value.";\r
+    }\r
+    typedef deg-thr-type {\r
+        type enumeration {\r
+            enum PERCENTAGE {\r
+                description "Choice of % or Number of errored blocks";\r
+            }\r
+            enum NUMBER_ERRORED_BLOCKS {\r
+                description "Number of % or blocks";\r
+            }\r
+        }\r
+        description "The value of the threshold can be provisioned in terms of number of errored blocks or in terms of percentage of errored blocks. For percentage-based specification, in order to support provision of less than 1%, the specification consists of two fields. The first field indicates the granularity of percentage. For examples, in 1%, in 0.1%, or in 0.01%, etc. The second field indicates the multiple of the granularity. For number of errored block based, the value is a positive integer.";\r
+    }\r
+    typedef tcm-status {\r
+        type enumeration {\r
+            enum NO_SOURCE_TC {\r
+                description "TCM byte 3 (bits 6 7 8) -- 0 0 0, No source Tandem Connection";\r
+            }\r
+            enum IN_USE_WITHOUT_IAE {\r
+                description "TCM byte 3 (bits 6 7 8) -- 0 0 1,  In use without IAE (Incoming Alignment Error)";\r
+            }\r
+            enum IN_USE_WITH_IAE {\r
+                description "TCM byte 3 (bits 6 7 8) -- 0 1 0, In use with IAE (Incoming Alignment Error)";\r
+            }\r
+            enum RESERVED_1 {\r
+                description "TCM byte 3 (bits 6 7 8) -- 0 1 1, Reserved for future international standardization";\r
+            }\r
+            enum RESERVED_2 {\r
+                description "TCM byte 3 (bits 6 7 8) -- 1 0 0, Reserved for future international standardization";\r
+            }\r
+            enum LCK {\r
+                description "TCM byte 3 (bits 6 7 8) -- 1 0 1, Maintenance signal: ODU-LCK";\r
+            }\r
+            enum OCI {\r
+                description "TCM byte 3 (bits 6 7 8) -- 1 1 0, Maintenance signal: ODU-OCI";\r
+            }\r
+            enum AIS {\r
+                description "TCM byte 3 (bits 6 7 8) -- 1 1 1, Maintenance signal: ODU-AIS";\r
+            }\r
+        }\r
+        description "See Table 15-5/G.709/Y.1331 ";\r
+    }\r
+    typedef tcm-mode {\r
+        type enumeration {\r
+            enum OPERATIONAL {\r
+                description "none";\r
+            }\r
+            enum TRANSPARENT {\r
+                description "none";\r
+            }\r
+            enum MONITOR {\r
+                description "none";\r
+            }\r
+        }\r
+        description "List of value modes for the sink side of the tandem connection monitoring function.";\r
+    }\r
+    typedef tcm-monitoring {\r
+        type enumeration {\r
+            enum INTRUSIVE {\r
+                description "none";\r
+            }\r
+            enum NON-INTRUSIVE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "Monitoring types for the tandem connection monitoring function.";\r
+    }\r
+    typedef tcm-extension {\r
+        type enumeration {\r
+            enum NORMAL {\r
+                description "none";\r
+            }\r
+            enum PASS-THROUGH {\r
+                description "none";\r
+            }\r
+            enum ERASE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef percentage-granularity {\r
+        type enumeration {\r
+            enum ONES {\r
+                description "none";\r
+            }\r
+            enum ONE_TENTHS {\r
+                description "value * (1/10)";\r
+            }\r
+            enum ONE_HUNDREDTHS {\r
+                description "value * (1/100)";\r
+            }\r
+            enum ONE_THOUSANDTHS {\r
+                description "value * (1/1000)";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping uas-choice {\r
+        leaf bidirectional {\r
+            type boolean;\r
+            default "true";\r
+            description "none";\r
+        }\r
+        leaf uas {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        leaf nuas {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        leaf fuas {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        description "If bidirectional is TRUE then use the uas attribute, if bidirectional is FALSE use the nuas, and fuas attributes";\r
+    }\r
+    grouping fec-properties {\r
+        leaf pre-fec-ber {\r
+            type uint64;\r
+            description "counter: bit error rate before correction by FEC";\r
+        }\r
+        leaf post-fec-ber {\r
+            type uint64;\r
+            description "counter: bit error rate after correction by FEC";\r
+        }\r
+        leaf corrected-bytes {\r
+            type uint64;\r
+            description "Bytes corrected between those that were received corrupted";\r
+        }\r
+        leaf corrected-bits {\r
+            type uint64;\r
+            description "Bits corrected between those that were received corrupted";\r
+        }\r
+        leaf uncorrectable-bytes {\r
+            type uint64;\r
+            description "Bytes that could not be corrected by FEC";\r
+        }\r
+        leaf uncorrectable-bits {\r
+            type uint64;\r
+            description "Bits that could not be corrected by FEC";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-path-computation@2020-04-23.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-path-computation@2020-04-23.yang
new file mode 100644 (file)
index 0000000..62e48db
--- /dev/null
@@ -0,0 +1,472 @@
+module tapi-path-computation {\r
+    namespace "urn:onf:otcc:yang:tapi-path-computation";\r
+    prefix tapi-path-computation;\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://wiki.opennetworking.org/display/OTCC/TAPI>\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzin <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Path Computation Model definitions.\r
+        Source: TapiPathComputation.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+        <https://github.com/OpenNetworkingFoundation/EagleUmlYang>\r
+        and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+        <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+        As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+        The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.\r
+        YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0.";\r
+    revision 2020-04-23 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        container path-computation-context {\r
+            uses path-computation-context;\r
+            description "Augments the base TAPI Context with PathComputationService information";\r
+        }\r
+        description "Augments the base TAPI Context with PathComputationService information";\r
+    }\r
+   /**************************\r
+    * definitions of refrences\r
+    **************************/\r
+    grouping path-ref {\r
+        leaf path-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-path-computation:path-computation-context/tapi-path-computation:path/tapi-path-computation:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping path {\r
+        list link {\r
+            uses tapi-topology:link-ref;\r
+            key 'topology-uuid link-uuid';\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        container routing-constraint {\r
+            config false;\r
+            uses routing-constraint;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:forwarding-direction;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            description "none";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        description "Path is described by an ordered list of TE Links. A TE Link is defined by a pair of Node/NodeEdgePoint IDs. A Connection is realized by concatenating link resources (associated with a Link) and the lower-level connections (cross-connections) in the different nodes";\r
+    }\r
+    grouping path-service-end-point {\r
+        container service-interface-point {\r
+            uses tapi-common:service-interface-point-ref;\r
+            description "none";\r
+        }\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            description "none";\r
+        }\r
+        leaf layer-protocol-qualifier {\r
+            type tapi-common:layer-protocol-qualifier;\r
+            description "none";\r
+        }\r
+        container capacity {\r
+            uses tapi-common:capacity;\r
+            description "none";\r
+        }\r
+        leaf role {\r
+            type tapi-common:port-role;\r
+            description "Each EP of the FC has a role (e.g., working, protection, protected, symmetric, hub, spoke, leaf, root)  in the context of the FC with respect to the FC function. ";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:port-direction;\r
+            description "The orientation of defined flow at the EndPoint.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "The association of the FC to LTPs is made via EndPoints.\r
+            The EndPoint (EP) object class models the access to the FC function. \r
+            The traffic forwarding between the associated EPs of the FC depends upon the type of FC and may be associated with FcSwitch object instances.  \r
+            In cases where there is resilience the EndPoint may convey the resilience role of the access to the FC. \r
+            It can represent a protected (resilient/reliable) point or a protecting (unreliable working or protection) point.\r
+            The EP replaces the Protection Unit of a traditional protection model. \r
+            The ForwadingConstruct can be considered as a component and the EndPoint as a Port on that component";\r
+    }\r
+    grouping path-computation-service {\r
+        list path {\r
+            uses path-ref;\r
+            key 'path-uuid';\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        list end-point {\r
+            key 'local-id';\r
+            min-elements 2;\r
+            max-elements 2;\r
+            uses path-service-end-point;\r
+            description "none";\r
+        }\r
+        container routing-constraint {\r
+            uses routing-constraint;\r
+            description "none";\r
+        }\r
+        container topology-constraint {\r
+            uses topology-constraint;\r
+            description "none";\r
+        }\r
+        container objective-function {\r
+            uses path-objective-function;\r
+            description "none";\r
+        }\r
+        container optimization-constraint {\r
+            uses path-optimization-constraint;\r
+            description "none";\r
+        }\r
+        uses tapi-common:service-spec;\r
+        description "none";\r
+    }\r
+    grouping path-objective-function {\r
+        leaf bandwidth-optimization {\r
+            type tapi-common:directive-value;\r
+            description "none";\r
+        }\r
+        leaf concurrent-paths {\r
+            type tapi-common:directive-value;\r
+            description "none";\r
+        }\r
+        leaf cost-optimization {\r
+            type tapi-common:directive-value;\r
+            description "none";\r
+        }\r
+        leaf link-utilization {\r
+            type tapi-common:directive-value;\r
+            description "none";\r
+        }\r
+        leaf resource-sharing {\r
+            type tapi-common:directive-value;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    grouping path-optimization-constraint {\r
+        leaf traffic-interruption {\r
+            type tapi-common:directive-value;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    grouping routing-constraint {\r
+        list cost-characteristic {\r
+            key 'cost-name';\r
+            uses tapi-topology:cost-characteristic;\r
+            description "The list of costs where each cost relates to some aspect of the TopologicalEntity.";\r
+        }\r
+        list latency-characteristic {\r
+            key 'traffic-property-name';\r
+            uses tapi-topology:latency-characteristic;\r
+            description "The effect on the latency of a queuing process. This only has significant effect for packet based systems and has a complex characteristic.";\r
+        }\r
+        list risk-diversity-characteristic {\r
+            key 'risk-characteristic-name';\r
+            uses tapi-topology:risk-characteristic;\r
+            description "none";\r
+        }\r
+        leaf diversity-policy {\r
+            type diversity-policy;\r
+            description "none";\r
+        }\r
+        leaf route-objective-function {\r
+            type route-objective-function;\r
+            description "none";\r
+        }\r
+        leaf route-direction {\r
+            type tapi-common:forwarding-direction;\r
+            description "none";\r
+        }\r
+        leaf is-exclusive {\r
+            type boolean;\r
+            default "true";\r
+            description "To distinguish if the resources are to be exclusive to the service";\r
+        }\r
+        container max-allowed-cost {\r
+            uses value-or-priority;\r
+            description "none";\r
+        }\r
+        container max-allowed-hops {\r
+            uses value-or-priority;\r
+            description "none";\r
+        }\r
+        container max-allowed-delay {\r
+            uses value-or-priority;\r
+            description "Delay unit is microseconds.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping path-computation-context {\r
+        list path-comp-service {\r
+            key 'uuid';\r
+            uses path-computation-service;\r
+            description "none";\r
+        }\r
+        list path {\r
+            key 'uuid';\r
+            config false;\r
+            uses path;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping topology-constraint {\r
+        leaf-list include-topology {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        leaf-list avoid-topology {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        leaf-list include-path {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        leaf-list exclude-path {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        leaf-list include-link {\r
+            type tapi-common:uuid;\r
+            description "This is a loose constraint - that is it is unordered and could be a partial list ";\r
+        }\r
+        leaf-list exclude-link {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        leaf-list include-node {\r
+            type tapi-common:uuid;\r
+            description "This is a loose constraint - that is it is unordered and could be a partial list";\r
+        }\r
+        leaf-list exclude-node {\r
+            type tapi-common:uuid;\r
+            description "none";\r
+        }\r
+        leaf-list preferred-transport-layer {\r
+            type tapi-common:layer-protocol-name;\r
+            description "soft constraint requested by client to indicate the layer(s) of transport connection that it prefers to carry the service. This could be same as the service layer or one of the supported server layers";\r
+        }\r
+        description "The TopologyConstraint allows to specify topology entities in order to impose specific constraints (as denoted by the attribute name) on Connectivity/Path.\r
+            The  topology entities are specified by their instance uuid rather than using references/path (to allow for mapping to Yang 1.0).\r
+            This loose typing and reference necessitates that implementations validate not only the presence of the instance, but also that it is of the correct type as implied by the attribute name.\r
+            If this validation fails, then the implementation is expceted to return an error.";\r
+    }\r
+\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    typedef route-objective-function {\r
+        type enumeration {\r
+            enum MIN_WORK_ROUTE_HOP {\r
+                description "none";\r
+            }\r
+            enum MIN_WORK_ROUTE_COST {\r
+                description "none";\r
+            }\r
+            enum MIN_WORK_ROUTE_LATENCY {\r
+                description "none";\r
+            }\r
+            enum MIN_SUM_OF_WORK_AND_PROTECTION_ROUTE_HOP {\r
+                description "none";\r
+            }\r
+            enum MIN_SUM_OF_WORK_AND_PROTECTION_ROUTE_COST {\r
+                description "none";\r
+            }\r
+            enum MIN_SUM_OF_WORK_AND_PROTECTION_ROUTE_LATENCY {\r
+                description "none";\r
+            }\r
+            enum LOAD_BALANCE_MAX_UNUSED_CAPACITY {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef diversity-policy {\r
+        type enumeration {\r
+            enum SRLG {\r
+                description "none";\r
+            }\r
+            enum SRNG {\r
+                description "none";\r
+            }\r
+            enum SNG {\r
+                description "none";\r
+            }\r
+            enum NODE {\r
+                description "none";\r
+            }\r
+            enum LINK {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping value-or-priority {\r
+        leaf value {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        leaf priority {\r
+            type uint64;\r
+            description "none";\r
+        }\r
+        description "Quantitative target: when a value is specified it is intended as mandatory for fulfilment. If value is specified, priority is not considered.\r
+            Qualitative target: when priority is specified. Zero means 'unspecified', 1 is highest priority, then 2 has lower priory than 1, 3 has lower priory than 2, etc.";\r
+    }\r
+\r
+    /**************************\r
+    * package interfaces\r
+    **************************/ \r
+    rpc compute-p-2-p-path {\r
+        description "none";\r
+        input {\r
+            list sep {\r
+                key 'local-id';\r
+                min-elements 2;\r
+                max-elements 2;\r
+                uses path-service-end-point;\r
+                description "none";\r
+            }\r
+            container routing-constraint {\r
+                uses routing-constraint;\r
+                description "none";\r
+            }\r
+            container topology-constraint {\r
+                uses topology-constraint;\r
+                description "none";\r
+            }\r
+            container objective-function {\r
+                uses path-objective-function;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses path-computation-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc optimize-p-2-ppath {\r
+        description "none";\r
+        input {\r
+            leaf path-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            container routing-constraint {\r
+                uses routing-constraint;\r
+                description "none";\r
+            }\r
+            container optimization-constraint {\r
+                uses path-optimization-constraint;\r
+                description "none";\r
+            }\r
+            container objective-function {\r
+                uses path-objective-function;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses path-computation-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc delete-p-2-p-path {\r
+        description "none";\r
+        input {\r
+            leaf path-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses path-computation-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-photonic-media@2020-06-16.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-photonic-media@2020-06-16.yang
new file mode 100644 (file)
index 0000000..ca6ba8d
--- /dev/null
@@ -0,0 +1,1122 @@
+module tapi-photonic-media {\r
+    namespace "urn:onf:otcc:yang:tapi-photonic-media";\r
+    prefix tapi-photonic-media;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    import tapi-connectivity {\r
+        prefix tapi-connectivity;\r
+    }\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G39KDEbL$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Photonic Media Model definitions.\r
+        Source: TapiPhotonicMedia.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+          <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G4QHf0bG$ >\r
+          and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+          <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8IIivez$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+          As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+          The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G3bKxRf2$ >.\r
+          YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0";\r
+    revision 2020-06-16 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   - OtsiConnectivityServiceEndPointSpec class, deprecated\r
+                   - New OtsiAConnectivityServiceEndPointSpec, with numberOfOTSi property (integer).\r
+                   - OtsiCsepHasOtsiConfigPac association, move from 1-1 to 0-*, i.e. allowing more OtsiTerminationConfigPac instances per OTSi CSEP\r
+                     This allows to move from one OTSi CSEP instance per OTSi signal to one OTSi CSEP instance including the information related to\r
+                     + zero (full delegation),\r
+                     + 1 or more (constrained provisioning) OTSi signals.\r
+                   - OtsiTerminationConfigPac class, make all properties as optional (0..1)\r
+                     + This allows delegation or specification of selected properties\r
+                   - Similar modification for Media Channel: MediaChannelConnectivityServiceEndPointSpec deprecated\r
+                   - New MediaChannelAssemblyConnectivityServiceEndPointSpec, add capacity property.\r
+                   - SmcCsepHasMcConfigPac association, move from 1-1 to 1-*\r
+                   - MediaChannelConfigPac, set spectrum attribute as optional [0..1].\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7tqhxFK$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7eDS6-t$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1ftwU5J$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G-5JStw4$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G7KeAhLL$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1Yf4AAN$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G27-pJK_$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G8RnGvXg$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6Gy6YoeAv$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6GyqYDgG_$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!d_dJlNtYLmD585It0DKukzB2TS5KZqBZQ-pdI1D-6c6c5hRDotd6G1V9Thk9$ >";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {\r
+        container otsi-connection-end-point-spec {\r
+            uses otsi-connection-end-point-spec;\r
+            description "Augments the base LayerProtocol information in ConnectionEndPoint with OCH-specific information";\r
+        }\r
+        description "Augments the base LayerProtocol information in ConnectionEndPoint with OCH-specific information";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point" {\r
+        container media-channel-node-edge-point-spec {\r
+            uses media-channel-node-edge-point-spec;\r
+            description "Augments the base LayerProtocol information in NodeEdgePoint with OCH-specific information";\r
+        }\r
+        description "Augments the base LayerProtocol information in NodeEdgePoint with OCH-specific information";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {\r
+        container otsi-assembly-connection-end-point-spec {\r
+            uses otsi-assembly-connection-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-common:service-interface-point" {\r
+        container otsi-service-interface-point-spec {\r
+            uses otsi-service-interface-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:end-point" {\r
+        container otsi-connectivity-service-end-point-spec {\r
+            uses otsi-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-common:service-interface-point" {\r
+        container media-channel-service-interface-point-spec {\r
+            uses media-channel-service-interface-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:end-point" {\r
+        container media-channel-connectivity-service-end-point-spec {\r
+            uses media-channel-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {\r
+        container media-channel-connection-end-point-spec {\r
+            uses media-channel-connection-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {\r
+        container ots-connection-end-point-spec {\r
+            uses ots-connection-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {\r
+        container media-channel-assembly-spec {\r
+            uses media-channel-assembly-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:create-connectivity-service/tapi-connectivity:input/tapi-connectivity:end-point" {\r
+        container media-channel-connectivity-service-end-point-spec {\r
+            uses media-channel-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:get-connectivity-service-details/tapi-connectivity:output/tapi-connectivity:service/tapi-connectivity:end-point" {\r
+        container media-channel-connectivity-service-end-point-spec {\r
+            uses media-channel-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:get-connectivity-service-list/tapi-connectivity:output/tapi-connectivity:service/tapi-connectivity:end-point" {\r
+        container media-channel-connectivity-service-end-point-spec {\r
+            uses media-channel-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:update-connectivity-service/tapi-connectivity:input/tapi-connectivity:end-point" {\r
+        container media-channel-connectivity-service-end-point-spec {\r
+            uses media-channel-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:update-connectivity-service/tapi-connectivity:output/tapi-connectivity:service/tapi-connectivity:end-point" {\r
+        container media-channel-connectivity-service-end-point-spec {\r
+            uses media-channel-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:create-connectivity-service/tapi-connectivity:output/tapi-connectivity:service/tapi-connectivity:end-point" {\r
+        container media-channel-connectivity-service-end-point-spec {\r
+            uses media-channel-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-topology:get-node-edge-point-details/tapi-topology:output/tapi-topology:node-edge-point" {\r
+        container media-channel-node-edge-point-spec {\r
+            uses media-channel-node-edge-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:get-service-interface-point-details/tapi-common:output/tapi-common:sip" {\r
+        container media-channel-service-interface-point-spec {\r
+            uses media-channel-service-interface-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:get-service-interface-point-list/tapi-common:output/tapi-common:sip" {\r
+        container media-channel-service-interface-point-spec {\r
+            uses media-channel-service-interface-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:create-connectivity-service/tapi-connectivity:input/tapi-connectivity:end-point" {\r
+        container otsi-connectivity-service-end-point-spec {\r
+            uses otsi-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:create-connectivity-service/tapi-connectivity:output/tapi-connectivity:service/tapi-connectivity:end-point" {\r
+        container otsi-connectivity-service-end-point-spec {\r
+            uses otsi-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:get-connectivity-service-details/tapi-connectivity:output/tapi-connectivity:service/tapi-connectivity:end-point" {\r
+        container otsi-connectivity-service-end-point-spec {\r
+            uses otsi-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:get-connectivity-service-list/tapi-connectivity:output/tapi-connectivity:service/tapi-connectivity:end-point" {\r
+        container otsi-connectivity-service-end-point-spec {\r
+            uses otsi-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:update-connectivity-service/tapi-connectivity:input/tapi-connectivity:end-point" {\r
+        container otsi-connectivity-service-end-point-spec {\r
+            uses otsi-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:update-connectivity-service/tapi-connectivity:output/tapi-connectivity:service/tapi-connectivity:end-point" {\r
+        container otsi-connectivity-service-end-point-spec {\r
+            uses otsi-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:get-service-interface-point-details/tapi-common:output/tapi-common:sip" {\r
+        container otsi-service-interface-point-spec {\r
+            uses otsi-service-interface-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:get-service-interface-point-list/tapi-common:output/tapi-common:sip" {\r
+        container otsi-service-interface-point-spec {\r
+            uses otsi-service-interface-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:get-connection-end-point-details/tapi-connectivity:output/tapi-connectivity:connection-end-point" {\r
+        container media-channel-connection-end-point-spec {\r
+            uses media-channel-connection-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:get-connection-end-point-details/tapi-connectivity:output/tapi-connectivity:connection-end-point" {\r
+        container otsi-assembly-connection-end-point-spec {\r
+            uses otsi-assembly-connection-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-connectivity:get-connection-end-point-details/tapi-connectivity:output/tapi-connectivity:connection-end-point" {\r
+        container otsi-connection-end-point-spec {\r
+            uses otsi-connection-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:end-point" {\r
+        container otsia-connectivity-service-end-point-spec {\r
+            uses otsia-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:end-point" {\r
+        container mca-connectivity-service-end-point-spec {\r
+            uses mca-connectivity-service-end-point-spec;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping otsi-gserver-adaptation-pac {\r
+        leaf number-of-otsi {\r
+            type uint64;\r
+            config false;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping otsi-connection-end-point-spec {\r
+        container otsi-termination {\r
+            config false;\r
+            uses otsi-termination-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping otsi-termination-pac {\r
+        container selected-central-frequency {\r
+            config false;\r
+            uses central-frequency;\r
+            description "none";\r
+        }\r
+        container selected-application-identifier {\r
+            config false;\r
+            uses application-identifier;\r
+            description "This attribute indicates the selected Application Identifier that is used by the OCh trail termination function. The syntax of ApplicationIdentifier is a pair {ApplicationIdentifierType, PrintableString}. The value of ApplicationIdentifierType is either STANDARD or PROPRIETARY. The value of PrintableString represents the standard application code as defined in the ITU-T Recommendations or a vendor-specific proprietary code. If the ApplicationIdentifierType is STANDARD the value of PrintableString represents a standard application code as defined in the ITU-T Recommendations. If the ApplicationIdentifierType is PROPRIETARY, the first six characters of the PrintableString must contain the Hexadecimal representation of an OUI assigned to the vendor whose implementation generated the Application Identifier; the remaining octets of the PrintableString are unspecified. The value of this attribute of an object instance has to be one of the values identified in the attribute SupportableApplicationIdentifierList of the same object instance. The values and value ranges of the optical interface parameters of a standard application code must be consistent with those values specified in the ITU-T Recommendation for that application code.";\r
+        }\r
+        leaf selected-modulation {\r
+            type modulation-technique;\r
+            default "UNDEFINED";\r
+            config false;\r
+            description "This parameter defines the modulation used at the source";\r
+        }\r
+        container selected-spectrum {\r
+            config false;\r
+            uses spectrum-band;\r
+            description "none";\r
+        }\r
+        container transmited-power {\r
+            config false;\r
+            uses power-properties-pac;\r
+            description "Measured power at the Transmitter.";\r
+        }\r
+        container received-power {\r
+            uses power-properties-pac;\r
+            description "none";\r
+        }\r
+        container laser-properties {\r
+            config false;\r
+            uses laser-properties-pac;\r
+            description "Laser properties.";\r
+        }\r
+        description "Provides status information only.";\r
+    }\r
+    grouping media-channel-pool-capability-pac {\r
+        list supportable-spectrum {\r
+            key 'upper-frequency lower-frequency';\r
+            config false;\r
+            uses spectrum-band;\r
+            description "none";\r
+        }\r
+        list available-spectrum {\r
+            key 'upper-frequency lower-frequency';\r
+            config false;\r
+            uses spectrum-band;\r
+            description "none";\r
+        }\r
+        list occupied-spectrum {\r
+            key 'upper-frequency lower-frequency';\r
+            config false;\r
+            uses spectrum-band;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping media-channel-node-edge-point-spec {\r
+        container mc-pool {\r
+            config false;\r
+            uses media-channel-pool-capability-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping otsi-routing-spec {\r
+        leaf optical-routing-strategy {\r
+            type optical-routing-strategy;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping media-channel-properties-pac {\r
+        container occupied-spectrum {\r
+            config false;\r
+            uses spectrum-band;\r
+            description "none";\r
+        }\r
+        container measured-power-ingress {\r
+            config false;\r
+            uses power-properties-pac;\r
+            description "none";\r
+        }\r
+        container measured-power-egress {\r
+            uses power-properties-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping otsi-assembly-connection-end-point-spec {\r
+        container otsi-adapter {\r
+            config false;\r
+            uses otsi-gserver-adaptation-pac;\r
+            description "none";\r
+        }\r
+        container fec-parameters {\r
+            config false;\r
+            uses fec-properties-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping otsi-capability-pac {\r
+        list supportable-central-frequency-spectrum-band {\r
+            key 'lower-central-frequency upper-central-frequency';\r
+            config false;\r
+            uses central-frequency-band;\r
+            description "Each spectrum band supported for otsi trasmitter to be tuned on,\r
+                is specified as per it's lower and upper central frequencies supported and its frequency constraints,\r
+                consisting in the frequency Grid and the AdjustmentGranularity,\r
+                used to uniquely identify all central frequencies supported within the band.";\r
+        }\r
+        list supportable-application-identifier {\r
+            key 'application-code';\r
+            config false;\r
+            uses application-identifier;\r
+            description "The list of supportable ApplicationIdentifiers.";\r
+        }\r
+        leaf-list supportable-modulation {\r
+            type modulation-technique;\r
+            config false;\r
+            description "This parameter defines the modulation used at the source";\r
+        }\r
+        container total-power-warn-threshold {\r
+            config false;\r
+            uses total-power-threshold-pac;\r
+            description "none";\r
+        }\r
+        description "Can read the status of the warning for the upper value that the power can reach.";\r
+    }\r
+    grouping otsi-service-interface-point-spec {\r
+        container otsi-capability {\r
+            config false;\r
+            uses otsi-capability-pac;\r
+            description "none";\r
+        }\r
+        container power-management-capability {\r
+            uses power-management-capability-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping otsi-connectivity-service-end-point-spec {\r
+        container otsi-config {\r
+            uses otsi-termination-config-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping otsi-termination-config-pac {\r
+        container central-frequency {\r
+            uses central-frequency;\r
+            description "The central frequency of the laser. It is the oscillation frequency of the corresponding electromagnetic wave";\r
+        }\r
+        container spectrum {\r
+            uses spectrum-band;\r
+            description "none";\r
+        }\r
+        container application-identifier {\r
+            uses application-identifier;\r
+            description "This attribute indicates the selected Application Identifier.";\r
+        }\r
+        leaf modulation {\r
+            type modulation-technique;\r
+            description "The modulation techniqu selected at the source.";\r
+        }\r
+        leaf laser-control {\r
+            type laser-control-type;\r
+            description "Laser control can be FORCED-ON, FORCED-OFF or LASER-SHUTDOWN";\r
+        }\r
+        container transmit-power {\r
+            uses power-properties-pac;\r
+            description "Transmit power as requested.";\r
+        }\r
+        leaf total-power-warn-threshold-upper {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "Allows to configure the Upper power threshold which is expected to be different from Default, but within the Min and Max values specified as OTSi SIP capability.";\r
+        }\r
+        leaf total-power-warn-threshold-lower {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "Allows to configure the Lowerpower threshold which is expected to be different from Default, but within the Min and Max values specified as OTSi SIP capability.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "This class allows the provisioning of the parameters of a single OTSi.\r
+            In case it is not instantiated (see [0..*] with OtsiAConnectivityServiceEndPointSpec), it is intended that the choice of the parameter values is fully delegated to the server controller.";\r
+    }\r
+    grouping fec-properties-pac {\r
+        leaf pre-fec-ber {\r
+            type uint64;\r
+            config false;\r
+            description "counter: bit error rate before correction by FEC";\r
+        }\r
+        leaf post-fec-ber {\r
+            type uint64;\r
+            config false;\r
+            description "counter: bit error rate after correction by FEC";\r
+        }\r
+        leaf corrected-bytes {\r
+            type uint64;\r
+            config false;\r
+            description "Bytes corrected between those that were received corrupted";\r
+        }\r
+        leaf corrected-bits {\r
+            type uint64;\r
+            config false;\r
+            description "Bits corrected between those that were received corrupted";\r
+        }\r
+        leaf uncorrectable-bytes {\r
+            type uint64;\r
+            config false;\r
+            description "Bytes that could not be corrected by FEC";\r
+        }\r
+        leaf uncorrectable-bits {\r
+            type uint64;\r
+            config false;\r
+            description "Bits that could not be corrected by FEC";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping media-channel-service-interface-point-spec {\r
+        container mc-pool {\r
+            config false;\r
+            uses media-channel-pool-capability-pac;\r
+            description "none";\r
+        }\r
+        container power-management-capability {\r
+            uses power-management-capability-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping media-channel-connectivity-service-end-point-spec {\r
+        container mc-config {\r
+            uses media-channel-config-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping media-channel-config-pac {\r
+        container spectrum {\r
+            uses spectrum-band;\r
+            description "none";\r
+        }\r
+        container power-management-config-pac {\r
+            uses power-management-config-pac;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "This class allows the provisioning of the parameters of a single MC / OTSiMC.\r
+            The [1..*] with MediaChannelAConnectivityServiceEndPointSpec allows the configuration of power properties (PowerManagementConfigPac) even in case of no spectrum specified, i.e. 'empty' MediaChannelConfigPac.";\r
+    }\r
+    grouping media-channel-connection-end-point-spec {\r
+        container media-channel {\r
+            config false;\r
+            uses media-channel-properties-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping ots-connection-end-point-spec {\r
+        container ots-media-channel {\r
+            config false;\r
+            uses media-channel-properties-pac;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping media-channel-assembly-spec {\r
+        description "none";\r
+    }\r
+    grouping laser-properties-pac {\r
+        leaf laser-status {\r
+            type laser-control-status-type;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf laser-application-type {\r
+            type laser-type;\r
+            config false;\r
+            description "The type of laser, its operational wavelengths, and its applications. String size 255.";\r
+        }\r
+        leaf laser-bias-current {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            config false;\r
+            description "The Bias current of the laser that is the medium polarization current of the laser.";\r
+        }\r
+        leaf laser-temperature {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            config false;\r
+            description "The temperature of the laser";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping power-properties-pac {\r
+        leaf total-power {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "The total power at any point in a channel specified in dBm.";\r
+        }\r
+        leaf power-spectral-density {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            config false;\r
+            description "This describes how power of a signal  is distributed over frequency specified in nW/MHz";\r
+        }\r
+        description "Indication with severity warning raised when a total power value measured is above the threshold.";\r
+    }\r
+    grouping total-power-threshold-pac {\r
+        leaf total-power-upper-warn-threshold-default {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "Can read the value of the default  threshold that was set";\r
+        }\r
+        leaf total-power-upper-warn-threshold-min {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "Can read the value of the lower threshold that was set";\r
+        }\r
+        leaf total-power-upper-warn-threshold-max {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "Can  read the value of the upper threshold that was set";\r
+        }\r
+        leaf total-power-lower-warn-threshold-default {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "Can read the value of the default  threshold that was set";\r
+        }\r
+        leaf total-power-lower-warn-threshold-max {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "Can  read the value of the upper threshold that was set";\r
+        }\r
+        leaf total-power-lower-warn-threshold-min {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "Can read the value of the lower threshold that was set";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping power-management-config-pac {\r
+        container intended-maximum-output-power {\r
+            uses power-properties;\r
+            description "This parameter shall be used to specify the maximum output power\r
+                desired at the Logical-Termination-Point (LTP) associated to the CSEP.";\r
+        }\r
+        container intended-minimum-output-power {\r
+            uses power-properties;\r
+            description "This parameter shall be used to specify the minimum output power\r
+                desired at the Logical-Termination-Point (LTP) associated to the CSEP.";\r
+        }\r
+        container expected-maximum-input-power {\r
+            uses power-properties;\r
+            description "This parameter shall be used to specify the maximum input power\r
+                being received at the Logical-Termination-Point (LTP) associated to the CSEP.";\r
+        }\r
+        container expected-minimum-input-power {\r
+            uses power-properties;\r
+            description "This parameter shall be used to specify the minimum input power\r
+                being received at the Logical-Termination-Point (LTP) associated to the CSEP.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping power-management-capability-pac {\r
+        container supportable-maximum-output-power {\r
+            uses power-properties;\r
+            description "This parameter exposes the maximum output power supported\r
+                at the Logical-Termination-Point (LTP) associated to the SIP.";\r
+        }\r
+        container supportable-minimum-output-power {\r
+            uses power-properties;\r
+            description "This parameter exposes the minimum output power supported\r
+                at the Logical-Termination-Point (LTP) associated to the SIP.";\r
+        }\r
+        container tolerable-maximum-input-power {\r
+            uses power-properties;\r
+            description "This parameter exposes the maximum input power tolerated\r
+                at the Logical-Termination-Point (LTP) associated to the SIP.";\r
+        }\r
+        container tolerable-minimum-input-power {\r
+            uses power-properties;\r
+            description "This parameter exposes the minimum input power tolerated\r
+                at the Logical-Termination-Point (LTP) associated to the SIP.";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping mca-connectivity-service-end-point-spec {\r
+        list mc-config {\r
+            key 'local-id';\r
+            uses media-channel-config-pac;\r
+            description "none";\r
+        }\r
+        leaf number-of-mc {\r
+            type uint64;\r
+            default "1";\r
+            description "none";\r
+        }\r
+        container capacity {\r
+            uses tapi-common:capacity-value;\r
+            description "Total capacity of an MCA/OTSiMCA.\r
+                Capacity may be omitted if spectrum is specified.\r
+                Capacity cannot be omitted if spectrum is not specified.";\r
+        }\r
+        description "This class allows the provisioning of MCA/OTSiMCA (*) ConnectivityService.\r
+            It is possible to provision either\r
+            1) MC/OTSiMC bandwidth/capacity or\r
+            2) MC/OTSiMC spectrum.\r
+            For the provisioning of 'OTSiMCA' ConnectivityService the MediaChannelAConnectivityServiceEndPointSpec is used,\r
+            leveraging the Layer Protocol Qualifier of CSEP (*) and the CSEPHasServerCSEP recursive association in case of combined provisioning, i.e.\r
+            when OTSiMCA' ConnectivityService provisioning drives also creation of 'supporting' MCs.\r
+            (*) Note that that assembly related Layer Protocol Qualifiers (OTSiA, MCA, OTSiMCA) are not used, as the assembly is modeled through associations between objects.";\r
+    }\r
+    grouping otsia-connectivity-service-end-point-spec {\r
+        list otsi-config {\r
+            key 'local-id';\r
+            uses otsi-termination-config-pac;\r
+            description "none";\r
+        }\r
+        leaf number-of-otsi {\r
+            type uint64;\r
+            default "1";\r
+            description "none";\r
+        }\r
+        description "This class allows the provisioning of OTSiA (*) ConnectivityService.\r
+            It is possible to either \r
+            1) delegate the choice of all OTSi characteristics to the server controller (zero OtsiTerminationConfigPac instances), or\r
+            2) specify one, more or all OtsiTerminationConfigPac parameters.\r
+            (*) Note that that assembly related Layer Protocol Qualifiers (OTSiA, MCA, OTSiMCA) are not used, as the assembly is modeled through associations between objects.";\r
+    }\r
+\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    identity PHOTONIC_LAYER_QUALIFIER {\r
+        base tapi-common:LAYER_PROTOCOL_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_OTSi {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_OTSiA {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_OTSiG {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_NMC {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_NMCA {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_SMC {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_SMCA {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_OCH {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_OMS {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_OTS {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "none";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_OTSiMC {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "OTSiMC represents the bw portion dedicated to an OTSi.";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_OTSiMCA {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "OTSiMCA is the set of OTSiMC supporting an OTSiA.";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_MC {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "The continuous optical spectrum between end points in the photonic layer obtained through optical filter configurations where it is expected one (or more - super channel case) OTSi(s).";\r
+    }\r
+    identity PHOTONIC_LAYER_QUALIFIER_MCA {\r
+        base PHOTONIC_LAYER_QUALIFIER;\r
+        description "Media Channel Assembly: the set of one or more MCs supporting one (or more) OTSiA(s).\r
+            ";\r
+    }\r
+    grouping application-identifier {\r
+        leaf application-identifier-type {\r
+            type application-identifier-type;\r
+            description "The ITU-T recommendation which defines the application code format.";\r
+        }\r
+        leaf application-code {\r
+            type string;\r
+            description "none";\r
+        }\r
+        description "The syntax of ApplicationIdentifier is a pair {ApplicationIdentifierType, PrintableString}. The value of ApplicationIdentifierType is either STANDARD or PROPRIETARY. The value of PrintableString represents the standard application code as defined in the ITU-T Recommendations or a vendor-specific proprietary code. If the ApplicationIdentifierType is STANDARD the value of PrintableString represents a standard application code as defined in the ITU-T Recommendations. If the ApplicationIdentifierType is PROPRIETARY, the first six characters of the PrintableString must contain the Hexadecimal representation of an OUI assigned to the vendor whose implementation generated the Application Identifier; the remaining octets of the PrintableString are unspecified. The value of this attribute of an object instance has to be one of the values identified in the attribute SupportableApplicationIdentifierList of the same object instance. The values and value ranges of the optical interface parameters of a standard application code must be consistent with those values specified in the ITU-T Recommendation for that application code.";\r
+    }\r
+    grouping central-frequency {\r
+        container frequency-constraint {\r
+            uses frequency-constraint;\r
+            description "none";\r
+        }\r
+        leaf central-frequency {\r
+            type uint64;\r
+            description "The central frequency of the laser specified in MHz. It is the oscillation frequency of the corresponding electromagnetic wave. ";\r
+        }\r
+        description "This data-type holds the central frequency information as well frequency constraints in terms of GridType ( FIXED grid (DWDM or CWDM) or FLEX grid) and AdjustmentGranularity.";\r
+    }\r
+    typedef optical-routing-strategy {\r
+        type enumeration {\r
+            enum OPTIMAL_OSNR {\r
+                description "none";\r
+            }\r
+            enum NO_RELAY {\r
+                description "none";\r
+            }\r
+            enum MIN_RELAY {\r
+                description "none";\r
+            }\r
+            enum PREFERRED_NO_CHANGE_WAVELENGTH_AS_RESTORE {\r
+                description "none";\r
+            }\r
+            enum PREFERRED_NO_SKIPPING_WAVELENGTH {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef application-identifier-type {\r
+        type enumeration {\r
+            enum PROPRIETARY {\r
+                description "none";\r
+            }\r
+            enum ITUT_G959_1 {\r
+                description "none";\r
+            }\r
+            enum ITUT_G698_1 {\r
+                description "none";\r
+            }\r
+            enum ITUT_G698_2 {\r
+                description "none";\r
+            }\r
+            enum ITUT_G696_1 {\r
+                description "none";\r
+            }\r
+            enum ITUT_G695 {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef grid-type {\r
+        type enumeration {\r
+            enum DWDM {\r
+                description "Fixed frequency grid in C & L bands as specified in ITU-T G.694.1\r
+                    ";\r
+            }\r
+            enum CWDM {\r
+                description "Fixed frequency grid as specified in ITU-T G.694.2";\r
+            }\r
+            enum FLEX {\r
+                description "Flexible frequency grid as specified in ITU-T G.694.1. In this case,\r
+                    - the allowed frequency slots have a nominal central frequency (in THz) defined by:\r
+                    193.1 + n x 0.00625 where n is a positive or negative integer including 0 and 0.00625 is the nominal central frequency granularity in THz\r
+                    - and a slot width defined by:\r
+                    12.5 x m where m is a positive integer and 12.5 is the slot width granularity in GHz.\r
+                    Any combination of frequency slots is allowed as long as no two frequency slots overlap.";\r
+            }\r
+            enum GRIDLESS {\r
+                description "none";\r
+            }\r
+            enum UNSPECIFIED {\r
+                description "Unspecified/proprietary frequency grid";\r
+            }\r
+        }\r
+        description "The frequency grid standard that specify reference set of frequencies used to denote allowed nominal central frequencies that may be used for defining applications.";\r
+    }\r
+    typedef adjustment-granularity {\r
+        type enumeration {\r
+            enum G_100GHZ {\r
+                description "100000 MHz";\r
+            }\r
+            enum G_50GHZ {\r
+                description "50000 MHz";\r
+            }\r
+            enum G_25GHZ {\r
+                description "25000 MHz";\r
+            }\r
+            enum G_12_5GHZ {\r
+                description "12500 MHz";\r
+            }\r
+            enum G_6_25GHZ {\r
+                description "6250 MHz";\r
+            }\r
+            enum G_3_125GHZ {\r
+                description "3125 MHz";\r
+            }\r
+            enum UNCONSTRAINED {\r
+                description "none";\r
+            }\r
+        }\r
+        description "Adjustment granularity in Gigahertz. As per ITU-T G.694.1, it is used to calculate nominal central frequency";\r
+    }\r
+    grouping spectrum-band {\r
+        leaf upper-frequency {\r
+            type uint64;\r
+            description "The upper frequency bound of the media channel spectrum specified in MHz";\r
+        }\r
+        leaf lower-frequency {\r
+            type uint64;\r
+            description "The lower frequency bound of the media channel spectrum specified in MHz";\r
+        }\r
+        container frequency-constraint {\r
+            uses frequency-constraint;\r
+            description "none";\r
+        }\r
+        description "This data-type holds the spectrum information in termsof upper/lower frequency directly or optionally the information to determin this in terms of the nominal central frequency and spectral width for a FIXED grid (DWDM or CWDM) and FLEX grid type systems.";\r
+    }\r
+    typedef modulation-technique {\r
+        type enumeration {\r
+            enum RZ {\r
+                description "none";\r
+            }\r
+            enum NRZ {\r
+                description "none";\r
+            }\r
+            enum BPSK {\r
+                description "none";\r
+            }\r
+            enum DPSK {\r
+                description "none";\r
+            }\r
+            enum QPSK {\r
+                description "none";\r
+            }\r
+            enum 8QAM {\r
+                description "none";\r
+            }\r
+            enum 16QAM {\r
+                description "none";\r
+            }\r
+            enum PAM4 {\r
+                description "none";\r
+            }\r
+            enum PAM8 {\r
+                description "none";\r
+            }\r
+            enum UNDEFINED {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef laser-type {\r
+        type enumeration {\r
+            enum PUMP {\r
+                description "none";\r
+            }\r
+            enum MODULATED {\r
+                description "none";\r
+            }\r
+            enum PULSE {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef photonic-layer-qualifier {\r
+        type identityref {\r
+            base PHOTONIC_LAYER_QUALIFIER;\r
+        }\r
+        description "Tag as deprecated OTSiG\r
+            Tag as deprecated NMC, replaced by OTSiMC\r
+            Tag as deprecated NMCA, replaced by OTSiMCA\r
+            Tag as deprecated SMC, replaced by MC\r
+            Tag as deprecated SMCA, replace by MCA";\r
+    }\r
+    typedef laser-control-type {\r
+        type enumeration {\r
+            enum FORCED-ON {\r
+                description "none";\r
+            }\r
+            enum FORCED-OFF {\r
+                description "none";\r
+            }\r
+            enum AUTOMATIC-LASER-SHUTDOWN {\r
+                description "none";\r
+            }\r
+            enum UNDEFINED {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef laser-control-status-type {\r
+        type enumeration {\r
+            enum ON {\r
+                description "none";\r
+            }\r
+            enum OFF {\r
+                description "none";\r
+            }\r
+            enum PULSING {\r
+                description "none";\r
+            }\r
+            enum UNDEFINED {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping frequency-constraint {\r
+        leaf adjustment-granularity {\r
+            type adjustment-granularity;\r
+            description "Adjustment granularity in Gigahertz. As per ITU-T G.694.1, it is used to calculate nominal central frequency (in THz)";\r
+        }\r
+        leaf grid-type {\r
+            type grid-type;\r
+            description "Specifies the frequency grid standard used to determine the nominal central frequency and frequency slot width";\r
+        }\r
+        description "This data-type holds the frequency constraint information in terms of GridType ( FIXED grid (DWDM or CWDM) or FLEX grid) and AdjustmentGranularity.";\r
+    }\r
+    grouping power-properties {\r
+        leaf total-power {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "The total power at any point in a channel specified in dBm.";\r
+        }\r
+        leaf power-spectral-density {\r
+            type decimal64 {\r
+                fraction-digits 7;\r
+            }\r
+            description "This describes how power of a signal  is distributed over frequency specified in nW/MHz";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping central-frequency-band {\r
+        leaf lower-central-frequency {\r
+            type uint64;\r
+            description "The lower central frequency that can be tuned in the laser specified in MHz.\r
+                It is the oscillation frequency of the corresponding electromagnetic wave. ";\r
+        }\r
+        leaf upper-central-frequency {\r
+            type uint64;\r
+            description "The upper central frequency that can be tuned in the laser specified in MHz.\r
+                It is the oscillation frequency of the corresponding electromagnetic wave. ";\r
+        }\r
+        container frequency-constraint {\r
+            uses frequency-constraint;\r
+            description "none";\r
+        }\r
+        description "This data-type represents a range of central frequency spectrum band specified as lower and upper bounds, inclusive of the bound values.\r
+            It also holds frequency constraints in terms of GridType ( FIXED grid (DWDM or CWDM) or FLEX grid) and AdjustmentGranularity.";\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-streaming@2020-06-16.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-streaming@2020-06-16.yang
new file mode 100644 (file)
index 0000000..32700b9
--- /dev/null
@@ -0,0 +1,1518 @@
+module tapi-streaming {\r
+    yang-version "1.1";\r
+    namespace "urn:onf:otcc:yang:tapi-streaming";\r
+    prefix tapi-streaming;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    import tapi-connectivity {\r
+        prefix tapi-connectivity;\r
+    }\r
+    import tapi-equipment {\r
+        prefix tapi-equipment;\r
+    }\r
+    import tapi-oam {\r
+        prefix tapi-oam;\r
+    }\r
+    import tapi-path-computation {\r
+        prefix tapi-path-computation;\r
+    }\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    import tapi-virtual-network {\r
+        prefix tapi-virtual-network;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_yiFzE6g$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzin <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "This module contains TAPI Streaming Model definitions.\r
+        Source: TapiStreaming.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+        <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_6pxiNxl$ >\r
+        and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+        <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_wxKUbJ_$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+        As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+        The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_zcAY1P4$ >.\r
+        YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0.";\r
+    revision 2020-06-16 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   - Comment typos corrected.\r
+                   - One attribute changed (sourcePrecesion/source-precesion --> sourcePrecision/source-precision).\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_xm1nx_D$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_0xFu4bN$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur__2p0od1$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_4DGi8ul$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8KlxwJZ$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_-hMD5Xl$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur__C1vuym$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_5DYNwzZ$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_1xZSBRA$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_xt-GtqY$ >";\r
+    }\r
+    feature tapi-streaming {\r
+        description "Support for streaming of the information in the specific TAPI context, in terms of stream-records. Through augmentation of context with stream-context, allows the client to determine what specific stream connections are supported and which are currently available to connect to. Offers the ability to identify and use various log strategies and stream connection protocols.";\r
+    }\r
+    feature tapi-streaming-admin {\r
+        description "Support for monitoring of active connections to available streams. Through augmentation of context with stream-admin-context, allows the admin client to get details from monitors of active connections to provide a view of whether the client of the monitored stream is having difficult absorbing the stream. Will usually be used in a tapi context for a stream admin client. Will usually be used together with the tapi-streaming feature so that the stream monitors from one stream could be provided through another stream .";\r
+    }\r
+    augment "/tapi-common:context/tapi-streaming:stream-context/tapi-streaming:supported-stream-type" {\r
+        if-feature tapi-streaming;\r
+        container compacted-log-details {\r
+            uses compacted-log-details;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body/tapi-streaming:condition-detector" {\r
+        if-feature tapi-streaming;\r
+        container alarm-condition-detector-detail {\r
+            uses alarm-condition-detector-detail;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='SERVICE_INTERFACE_POINT'";\r
+        if-feature tapi-streaming;\r
+        container service-interface-point {\r
+            uses tapi-common:service-interface-point;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='CONDITION_DETECTOR'";\r
+        if-feature tapi-streaming;\r
+        container condition-detector {\r
+            uses condition-detector;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='ANY_CLASS'";\r
+        if-feature tapi-streaming;\r
+        container any-class {\r
+            uses any-class;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        if-feature tapi-streaming-admin;\r
+        container stream-admin-context {\r
+            uses stream-admin-context;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        if-feature tapi-streaming;\r
+        container stream-context {\r
+            uses stream-context;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-common:context/tapi-streaming:stream-context/tapi-streaming:supported-stream-type" {\r
+        if-feature tapi-streaming;\r
+        container connection-protocol-details {\r
+            uses connection-protocol-details;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='STREAM_MONITOR'";\r
+        if-feature tapi-streaming-admin;\r
+        container stream-monitor {\r
+            uses stream-monitor;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='SUPPORTED_STREAM_TYPE'";\r
+        if-feature tapi-streaming;\r
+        container supported-stream-type {\r
+            uses supported-stream-type;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='AVAILABLE_STREAM_TYPE'";\r
+        if-feature tapi-streaming;\r
+        container available-stream {\r
+            uses available-stream;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='CONNECTION'";\r
+        if-feature tapi-streaming;\r
+        container connection {\r
+            uses tapi-connectivity:connection;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='CONNECTION_END_POINT'";\r
+        if-feature tapi-streaming;\r
+        container connection-end-point {\r
+            uses tapi-connectivity:connection-end-point;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='CONNECTIVITY_SERVICE'";\r
+        if-feature tapi-streaming;\r
+        container connectivity-service {\r
+            uses tapi-connectivity:connectivity-service;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='CONNECTION_SERVICE_END_POINT'";\r
+        if-feature tapi-streaming;\r
+        container connectivity-service-end-point {\r
+            uses tapi-connectivity:connectivity-service-end-point;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='ROUTE'";\r
+        if-feature tapi-streaming;\r
+        container route {\r
+            uses tapi-connectivity:route;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='SWITCH'";\r
+        if-feature tapi-streaming;\r
+        container switch {\r
+            uses tapi-connectivity:switch;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='SWITCH_CONTROL'";\r
+        if-feature tapi-streaming;\r
+        container switch-control {\r
+            uses tapi-connectivity:switch-control;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='EQUIPMENT'";\r
+        if-feature tapi-streaming;\r
+        container equipment {\r
+            uses tapi-equipment:equipment;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='HOLDER'";\r
+        if-feature tapi-streaming;\r
+        container holder {\r
+            uses tapi-equipment:holder;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='ACCESS_PORT'";\r
+        if-feature tapi-streaming;\r
+        container access-port {\r
+            uses tapi-equipment:access-port;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='ABSTRACT_STRAND'";\r
+        if-feature tapi-streaming;\r
+        container abstract-strand {\r
+            uses tapi-equipment:abstract-strand;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='DEVICE'";\r
+        if-feature tapi-streaming;\r
+        container device {\r
+            uses tapi-equipment:device;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PHYSICAL_SPAN'";\r
+        if-feature tapi-streaming;\r
+        container physical-span {\r
+            uses tapi-equipment:physical-span;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='MEG_END_POINT'";\r
+        if-feature tapi-streaming;\r
+        container mep {\r
+            uses tapi-oam:mep;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='OAM_JOB'";\r
+        if-feature tapi-streaming;\r
+        container oam-job {\r
+            uses tapi-oam:oam-job;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='MAINTENANCE_ENTITY_GROUP'";\r
+        if-feature tapi-streaming;\r
+        container meg {\r
+            uses tapi-oam:meg;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='MEG_INTERMEDIATE_POINT'";\r
+        if-feature tapi-streaming;\r
+        container mip {\r
+            uses tapi-oam:mip;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='OAM_SERVICE'";\r
+        if-feature tapi-streaming;\r
+        container oam-service {\r
+            uses tapi-oam:oam-service;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='OAM_SERVICE_END_POINT'";\r
+        if-feature tapi-streaming;\r
+        container oam-service-end-point {\r
+            uses tapi-oam:oam-service-end-point;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PM_CURRENT_DATA'";\r
+        if-feature tapi-streaming;\r
+        container pm-current-data {\r
+            uses tapi-oam:pm-current-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PM_HISTORY'";\r
+        if-feature tapi-streaming;\r
+        container pm-history-data {\r
+            uses tapi-oam:pm-history-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='OAM_PROFILE'";\r
+        if-feature tapi-streaming;\r
+        container oam-profile {\r
+            uses tapi-oam:oam-profile;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PM_THRESHOLD_DATA'";\r
+        if-feature tapi-streaming;\r
+        container pm-threshold-data {\r
+            uses tapi-oam:pm-threshold-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PM_BIN_DATA'";\r
+        if-feature tapi-streaming;\r
+        container pm-bin-data {\r
+            uses tapi-oam:pm-bin-data;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PATH'";\r
+        if-feature tapi-streaming;\r
+        container path {\r
+            uses tapi-path-computation:path;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PATH_COMPUTATION_SERVICE'";\r
+        if-feature tapi-streaming;\r
+        container path-computation-service {\r
+            uses tapi-path-computation:path-computation-service;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PATH_SERVICE_END_POINT'";\r
+        if-feature tapi-streaming;\r
+        container path-service-end-point {\r
+            uses tapi-path-computation:path-service-end-point;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PATH_OPTIMIZATION_CONSTRAINT'";\r
+        if-feature tapi-streaming;\r
+        container path-optimization-constraint {\r
+            uses tapi-path-computation:path-optimization-constraint;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='PATH_OBJECTIVE_FUNCTION'";\r
+        if-feature tapi-streaming;\r
+        container path-objective-function {\r
+            uses tapi-path-computation:path-objective-function;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='LINK'";\r
+        if-feature tapi-streaming;\r
+        container link {\r
+             uses tapi-topology:link;\r
+             description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='NODE'";\r
+        if-feature tapi-streaming;\r
+        container node {\r
+            uses tapi-topology:node;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='TOPOLOGY'";\r
+        if-feature tapi-streaming;\r
+        container topology {\r
+            uses tapi-topology:topology;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='NODE_EDGE_POINT'";\r
+        if-feature tapi-streaming;\r
+        container node-edge-point {\r
+            uses tapi-topology:node-edge-point;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='RULE'";\r
+        if-feature tapi-streaming;\r
+        container rule {\r
+            uses tapi-topology:rule;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='NODE_RULE_GROUP'";\r
+        if-feature tapi-streaming;\r
+        container node-rule-group {\r
+            uses tapi-topology:node-rule-group;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='INTER_RULE_GROUP'";\r
+        if-feature tapi-streaming;\r
+        container inter-rule-group {\r
+            uses tapi-topology:inter-rule-group;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='NETWORK_TOPOLOGY_SERVICE'";\r
+        if-feature tapi-streaming;\r
+        container network-topology-service {\r
+            uses tapi-topology:network-topology-service;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='VIRTUAL_NETWORK_SERVICE'";\r
+        if-feature tapi-streaming;\r
+        container virtual-network-service {\r
+            uses tapi-virtual-network:virtual-network-service;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='VIRTUAL_NETWORK_SERVICE_ENDPOINT'";\r
+        if-feature tapi-streaming;\r
+        container virtual-network-service-end-point {\r
+            uses tapi-virtual-network:virtual-network-service-end-point;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    augment "/tapi-streaming:stream-record/tapi-streaming:log-record/tapi-streaming:log-record-body" {\r
+        when "tapi-streaming:record-content='VIRTUAL_NETWORK_CONSTRAINT'";\r
+        if-feature tapi-streaming;\r
+        container virtual-network-constraint {\r
+            uses tapi-virtual-network:virtual-network-constraint;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * definitions of refrences\r
+    **************************/\r
+    grouping available-stream-ref {\r
+        leaf available-stream-uuid{\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-streaming:stream-context/tapi-streaming:available-stream/tapi-streaming:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping supported-stream-type-ref {\r
+        leaf supported-stream-type-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-streaming:stream-context/tapi-streaming:supported-stream-type/tapi-streaming:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    identity ALARM_DETECTOR_STATE {\r
+        description "none";\r
+    }\r
+    identity ALARM_DETECTOR_STATE_ACTIVE {\r
+        base ALARM_DETECTOR_STATE;\r
+        description "The detector is indicating the operation of the monitored entity is not within acceptable bounds with respect to the specific condition measured.\r
+            If INTERMITTENT is supported there may be a requirement for persisted unacceptable operation after a problem occurs before ACTIVE is declared. An alternative may be to declare INTERMITTENT.\r
+            Where INTERMITTENT is supported, ACTIVE indicates the stable presence of a problem.";\r
+    }\r
+    identity ALARM_DETECTOR_STATE_INTERMITTENT {\r
+        base ALARM_DETECTOR_STATE;\r
+        description "The detector is indicating the operation of the monitored entity is intermittently not within acceptable bounds with respect to the specific condition measured.\r
+            INTERMITTENT support is optional. Where it is supported there may be a requirement for persisted unacceptable operation after a problem occurs before ACTIVE or INTERMITTENT is declared.";\r
+    }\r
+    identity ALARM_DETECTOR_STATE_CLEAR {\r
+        base ALARM_DETECTOR_STATE;\r
+        description "The detector is indicating the operation of the monitored entity is within acceptable bounds with respect to the specific condition measured.\r
+            There may be a requirement for persisted acceptable operation after a problem before clear is declared etc.\r
+            For a Compacted Log solution a CLEAR alarm will be considered as a DELETE ChangeType in the RecordBody.\r
+            Hence a CLEAR will also cause a Tombstone record in a Compacted Log solution.";\r
+    }\r
+    identity LOG_RECORD_STRATEGY {\r
+        description "none";\r
+    }\r
+    identity LOG_RECORD_STRATEGY_WHOLE_ENTITY_ON_CHANGE {\r
+        base LOG_RECORD_STRATEGY;\r
+        description "A record provides a snapshot of a whole entity and a snapshot is taken on each change.\r
+            The record includes all properties and values whether they have changed or not.";\r
+    }\r
+    identity LOG_RECORD_STRATEGY_CHANGE_ONLY {\r
+        base LOG_RECORD_STRATEGY;\r
+        description "Each record only provides a view of the changes that have occurred (on a per entity change basis).\r
+            E.g., the log only includes the attribute that has changed and not other attributes that have not changed.";\r
+    }\r
+    identity LOG_RECORD_STRATEGY_WHOLE_ENTITY_PERIODIC {\r
+        base LOG_RECORD_STRATEGY;\r
+        description "A snapshot of an entity is recorded periodically regardless of whether there has been change or not.";\r
+    }\r
+    identity LOG_STORAGE_STRATEGY {\r
+        description "none";\r
+    }\r
+    identity LOG_STORAGE_STRATEGY_COMPACTED {\r
+        base LOG_STORAGE_STRATEGY;\r
+        description "The log uses some mechanism to remove noisy detail whilst enabling the client to achieve eventual consistency (alignment) with current state.";\r
+    }\r
+    identity LOG_STORAGE_STRATEGY_TRUNCATED {\r
+        base LOG_STORAGE_STRATEGY;\r
+        description "The log only maintains recent records and disposes of old records. \r
+            This log does not alone enable the client to achieve alignment with current state.";\r
+    }\r
+    identity LOG_STORAGE_STRATEGY_FULL_HISTORY {\r
+        base LOG_STORAGE_STRATEGY;\r
+        description "Maintains a history from system initiation with no missing records. \r
+            Provides initial state at the beginning of the history";\r
+    }\r
+    identity LOG_STORAGE_STRATEGY_FULL_HISTORY_WITH_PERIODIC_BASELINE {\r
+        base LOG_STORAGE_STRATEGY;\r
+        description "Provides a history with initial state and periodic/occasional statements of current state at a particular point in time.";\r
+    }\r
+    identity STREAM_STATE {\r
+        description "none";\r
+    }\r
+    identity STREAM_STATE_ALIGNING {\r
+        base STREAM_STATE;\r
+        description "The log that underpins the stream is aligning with other backend services and hence may not be providing full service.\r
+            If events are provided, they will be completely valid.";\r
+    }\r
+    identity STREAM_STATE_ACTIVE {\r
+        base STREAM_STATE;\r
+        description "The stream is operating such that if a client connects records will be provided as per back pressure etc.";\r
+    }\r
+    identity STREAM_STATE_PAUSED {\r
+        base STREAM_STATE;\r
+        description "Although the stream is available it has been paused by the administrator such that the records are being appended to the log but a new client will not receive any events whilst the stream is paused.";\r
+    }\r
+    identity STREAM_STATE_TERMINATED {\r
+        base STREAM_STATE;\r
+        description "The stream is essentially no longer available. It will be removed from the AvailableStreams list shortly.";\r
+    }\r
+    identity RECORD_TYPE {\r
+        description "none";\r
+    }\r
+    identity RECORD_TYPE_CREATE_UPDATE {\r
+        base RECORD_TYPE;\r
+        description "The record includes a create or update.\r
+            Where there is an update in a non-compacted log the information with be sparse (e.g., a single attribute) and about an entity that is already known.";\r
+    }\r
+    identity RECORD_TYPE_DELETE {\r
+        base RECORD_TYPE;\r
+        description "The record is about a delete.\r
+            The record may have a LogRecordHeader and a LogRecordBody but no augmented content.\r
+            The entityKey should be sufficient to identify the entity to be deleted.\r
+            Under certain circumstances there may be class content in the LogRecordBody.";\r
+    }\r
+    identity RECORD_TYPE_TOMBSTONE {\r
+        base RECORD_TYPE;\r
+        description "Used in a Compacted log to remove old records and truncate deletion history.\r
+            Is only a LogRecordHeader with no LogRecordBody.";\r
+    }\r
+    identity SOURCE_PRECISION {\r
+        description "none";\r
+    }\r
+    identity SOURCE_PRECISION_UNKNOWN {\r
+        base SOURCE_PRECISION;\r
+        description "The state of the clock at the event source is not known.\r
+            The view of time of day at the source is suspect.";\r
+    }\r
+    identity SOURCE_PRECISION_FREE_RUNNING {\r
+        base SOURCE_PRECISION;\r
+        description "The clock at the event source is free-running.\r
+            The view of time of day at the source may be significantly different from that at other sources.";\r
+    }\r
+    identity SOURCE_PRECISION_SYNCHRONIZED {\r
+        base SOURCE_PRECISION;\r
+        description "The clock at the event source is appropriately synchroniZed to the timing master.\r
+            The view of time of day at the source should be essentially the same as that at other time-synchronized sources.";\r
+    }\r
+    identity SPREAD {\r
+        description "none";\r
+    }\r
+    identity SPREAD_AT {\r
+        base SPREAD;\r
+        description "The event occurred at a particular time.";\r
+    }\r
+    identity SPREAD_BEFORE {\r
+        base SPREAD;\r
+        description "The event occurred before a particular time.";\r
+    }\r
+    identity SPREAD_AFTER {\r
+        base SPREAD;\r
+        description "The event occurred after a particular time.";\r
+    }\r
+    identity SPREAD_BETWEEN {\r
+        base SPREAD;\r
+        description "The event occurred between two stated times.";\r
+    }\r
+    identity CONDITION_DETECTOR_TYPE {\r
+        description "none";\r
+    }\r
+    identity CONDITION_DETECTOR_TYPE_ALARM_DETECTOR {\r
+        base CONDITION_DETECTOR_TYPE;\r
+        description "A type of detector used for reporting problems.\r
+            The underlying raw detector is two state from the perspective of the monitored condition. \r
+            The detector is asymmetric in nature. \r
+            One state indicates that there is a problem and the other state indicates that there is no problem.";\r
+    }\r
+    identity CONDITION_DETECTOR_TYPE_EVENT_DETECTOR {\r
+        base CONDITION_DETECTOR_TYPE;\r
+        description "A type of detector used for reporting events.";\r
+    }\r
+    typedef alarm-detector-state {\r
+        type identityref {\r
+            base ALARM_DETECTOR_STATE;\r
+        }\r
+        description "The state of the processed Boolean alarm detector.\r
+            The source applies some analysis to the raw detector to determine the state.\r
+            The processing by the source my vary.";\r
+    }\r
+    grouping legacy-properties {\r
+        leaf perceived-severity {\r
+            type perceived-severity;\r
+            description "A device will provide an indication of importance for each alarm. \r
+                This property indicates the importance.\r
+                In some cases, the severity may change through the life of an active alarm.";\r
+        }\r
+        leaf service-affect {\r
+            type service-affect;\r
+            description "Some devices will indicate, from its very narrow viewpoint, whether service has been impacted or not.\r
+                This property carries this detail.";\r
+        }\r
+        leaf is-acknowledged {\r
+            type boolean;\r
+            description "Devices offer a capability to acknowledge alarms (to stop the bells ringing).\r
+                Often an EMS will offer a similar capability.\r
+                This property reflects the current acknowledge state.";\r
+        }\r
+        leaf-list additional-alarm-info {\r
+            type string;\r
+            description "Often, alarms raised by devices have additional information. \r
+                This property can be used to convey this.";\r
+        }\r
+        description "At this point in the evolution of control solutions LegacyProperties are probably mandatory, however, it is anticipated that as control solutions advance the LegacyProperties will become irrelevant.";\r
+    }\r
+    typedef log-record-strategy {\r
+        type identityref {\r
+            base LOG_RECORD_STRATEGY;\r
+        }\r
+        description "Defines the different approaches for logging information about an event covering the log trigger and the log content.";\r
+    }\r
+    typedef log-storage-strategy {\r
+        type identityref {\r
+            base LOG_STORAGE_STRATEGY;\r
+        }\r
+        description "Defines the storage (record retention) approach.";\r
+    }\r
+    typedef object-class-identifier {\r
+        type enumeration {\r
+            enum NODE {\r
+                description "Node.\r
+                    A GlobalClass.";\r
+            }\r
+            enum CONNECTION {\r
+                description "Connection.\r
+                    A GlobalClass.";\r
+            }\r
+            enum LINK {\r
+                description "Link.\r
+                    A GlobalClass.";\r
+            }\r
+            enum CONNECTION_END_POINT {\r
+                description "ConnectionEndPoint.\r
+                    A GlobalClass.";\r
+            }\r
+            enum CONNECTIVITY_SERVICE {\r
+                description "ConnectivityService.\r
+                    A GlobalClass.";\r
+            }\r
+            enum INTER_RULE_GROUP {\r
+                description "InterRuleGroup.\r
+                    A GlobalClass.";\r
+            }\r
+            enum MAINTENANCE_ENTITY {\r
+                description "MaintenanceEntity.\r
+                    A GlobalClass.";\r
+            }\r
+            enum MAINTENANCE_ENTITY_GROUP {\r
+                description "Meg.\r
+                    A GlobalClass.";\r
+            }\r
+            enum MEG_END_POINT {\r
+                description "Mep.\r
+                    A LocalClass. \r
+                    For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum MEG_INTERMEDIATE_POINT {\r
+                description "Mip.\r
+                    A LocalClass. \r
+                    For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions. ";\r
+            }\r
+            enum NODE_EDGE_POINT {\r
+                description "NodeEdgePoint.\r
+                    A GlobalClass.";\r
+            }\r
+            enum OAM_JOB {\r
+                description "OamJob.\r
+                    A GlobalClass.";\r
+            }\r
+            enum PATH {\r
+                description "Path.\r
+                    A GlobalClass.";\r
+            }\r
+            enum NODE_RULE_GROUP {\r
+                description "NodeRuleGroup.\r
+                    A GlobalClass.";\r
+            }\r
+            enum PATH_COMPUTATION_SERVICE {\r
+                description "PathComputationService.\r
+                    A GlobalClass.";\r
+            }\r
+            enum ROUTE {\r
+                description "Route.\r
+                    A LocalClass. \r
+                    For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions";\r
+            }\r
+            enum RULE {\r
+                description "Rule.\r
+                    A LocalClass. \r
+                    For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions";\r
+            }\r
+            enum SERVICE_INTERFACE_POINT {\r
+                description "ServiceInterfacePoint.\r
+                    A GlobalClass.";\r
+            }\r
+            enum SWITCH {\r
+                description "Switch.\r
+                    A LocalClass. \r
+                    For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions";\r
+            }\r
+            enum SWITCH_CONTROL {\r
+                description "SwitchControl.\r
+                    A GlobalClass.";\r
+            }\r
+            enum TOPOLOGY {\r
+                description "Topology.\r
+                    A GlobalClass.";\r
+            }\r
+            enum VIRTUAL_NETWORK_SERVICE {\r
+                description "VirtualNetworkService.\r
+                    A GlobalClass.";\r
+            }\r
+            enum OAM_PROFILE {\r
+                description "OamProfile.\r
+                    A GlobalClass.";\r
+            }\r
+            enum OAM_SERVICE {\r
+                description "OamService.\r
+                    A GlobalClass.";\r
+            }\r
+            enum CONNECTION_SPEC {\r
+                description "ConnectionSpec.\r
+                    A class that is a representation of the definition that an instance of a Connection references. This has a globally unique id.";\r
+            }\r
+            enum ACCESS_PORT {\r
+                description "AccessPort.\r
+                    A GlobalClass.";\r
+            }\r
+            enum DEVICE {\r
+                description "Device.\r
+                    A GlobalClass.";\r
+            }\r
+            enum PHYSICAL_SPAN {\r
+                description "PhysicalSpan.\r
+                    A GlobalClass.";\r
+            }\r
+            enum EQUIPMENT {\r
+                description "Equipment.\r
+                    A GlobalClass.";\r
+            }\r
+            enum HOLDER {\r
+                description "Holder.\r
+                    A GlobalClass.";\r
+            }\r
+            enum CONDITION_DETECTOR {\r
+                description "ConditionDetector.\r
+                    Has an id approach that allows for the measured entity to have a NativeId, or UUID or ID combination.";\r
+            }\r
+            enum AVAILABLE_STREAM {\r
+                description "AvailableStream.\r
+                    A GlobalClass.";\r
+            }\r
+            enum STREAM_MONITOR {\r
+                description "StreamMonitor.\r
+                    A GlobalClass.";\r
+            }\r
+            enum SUPPORTED_STREAM_TYPE {\r
+                description "SupportedStream.\r
+                    A GlobalClass.";\r
+            }\r
+            enum NETWORK_TOPOLOGY_SERVICE {\r
+                description "NetworkTopologyService.\r
+                    A GlobalClass.";\r
+            }\r
+            enum TAPI_CONTEXT {\r
+                description "TapiContext.\r
+                    A GlobalClass.";\r
+            }\r
+            enum OAM_SERVICE_END_POINT {\r
+                description "OamServiceEndPoint.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum PM_BIN_DATA {\r
+                description "PmBinData.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum PM_CURRENT_DATA {\r
+                description "PmCurrentData.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum PM_HISTORY_DATA {\r
+                description "PmHistoryData.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum PM_THRESHOLD_DATA {\r
+                description "PmThresholdData.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum CONNECTIVITY_SERVICE_END_POINT {\r
+                description "ConnectivityServiceEndPoint.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum ABSTRACT_STRAND {\r
+                description "AbstractStrand.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum PATH_OBJECTIVE_FUNCTION {\r
+                description "PathObjectiveFunction.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum PATH_OPTIMIZATION_CONSTRAINT {\r
+                description "PathOptimizationConstraint.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum PATH_SERVICE_END_POINT {\r
+                description "PathServiceEndPoint.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum VIRTUAL_NETWORK_CONSTRAINT {\r
+                description "VirtualNetworkConstraint.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum VIRTUAL_NETWORK_SERVICE_END_POINT {\r
+                description "VirtualNetworkServiceEndPoint.\r
+                    Local class. For streaming this requires parentAddress (when reporting the entity alone) or a combination of measuredEntityUuid and measuredEntityLocalId when reporting conditions.";\r
+            }\r
+            enum ANY_CLASS {\r
+                description "Empty structure.";\r
+            }\r
+        }\r
+        description "The list of TAPI Global Object Class types for which a record can be streamed.";\r
+    }\r
+    typedef stream-state {\r
+        type identityref {\r
+            base STREAM_STATE;\r
+        }\r
+        description "The state of the available stream.";\r
+    }\r
+    grouping approx-date-and-time {\r
+        leaf primary-time-stamp {\r
+            type tapi-common:date-and-time;\r
+            config false;\r
+            description "Time of the event at the origin where known precisely.\r
+                Where the event is known to be before particular time, this field records that time.\r
+                Where the event is known to be after a particular time, this field records that time (this is an unusual case where there is no proposed before time).\r
+                Where the event is known to have occurred in a time window, this field records the end time (the time before which the event must have occurred).";\r
+        }\r
+        leaf start-time-stamp {\r
+            type tapi-common:date-and-time;\r
+            config false;\r
+            description "The time after which the event is known to have occurred when the event is known to have occurred between two times.\r
+                The primaryTimeStamp provides the end time.";\r
+        }\r
+        leaf spread {\r
+            type spread;\r
+            config false;\r
+            description "Indicates the knowledge of the time of occurrence of the event.";\r
+        }\r
+        leaf source-precision {\r
+            type source-precision;\r
+            config false;\r
+            description "Indicates how well the source time is synchronized with network time.";\r
+        }\r
+        description "Allows for recording of an aspect of imprecise time.";\r
+    }\r
+    typedef record-type {\r
+        type identityref {\r
+            base RECORD_TYPE;\r
+        }\r
+        description "The type of the record.\r
+            Used to understand what log content will be present and how to interpret it.\r
+            For some record types there is special encoding.\r
+            A ACTIVE alarm and an INTERMITTENT alarm are CREATE_UPDATE.\r
+            A CLEAR alarm is DELETE with an adjacent TOMBSTONE record.";\r
+    }\r
+    typedef source-precision {\r
+        type identityref {\r
+            base SOURCE_PRECISION;\r
+        }\r
+        description "Alternative statements about timing precision at the event source.";\r
+    }\r
+    typedef spread {\r
+        type identityref {\r
+            base SPREAD;\r
+        }\r
+        description "The alternative time of occurrence statements.";\r
+    }\r
+    typedef condition-detector-type {\r
+        type identityref {\r
+            base CONDITION_DETECTOR_TYPE;\r
+        }\r
+        description "The type of condition detector.\r
+            The type relates to the characteristics of the detection and reporting strategies.\r
+            This drives the conditional augment.";\r
+    }\r
+    typedef event-source {\r
+        type enumeration {\r
+            enum RESOURCE_OPERATION {\r
+                description "The event is from the operation of the network resources.\r
+                    The event source has a relatively fast time characteristic.";\r
+            }\r
+            enum MANAGEMENT_OPERATION {\r
+                description "Event is from a Management operation (slow control).\r
+                    The event source has a relatively slow time characteristic.";\r
+            }\r
+            enum UNKNOWN {\r
+                description "The origin of the event is not known.";\r
+            }\r
+        }\r
+        description "Source of the event.\r
+            Use to give some idea of the time characteristics of the event source.";\r
+    }\r
+    typedef perceived-severity {\r
+        type enumeration {\r
+            enum CRITICAL {\r
+                description "The highest severity of ACTIVE/INTERMITTENT alarm.";\r
+            }\r
+            enum MAJOR {\r
+                description "The middle severity of ACTIVE/INTERMITTENT alarm.";\r
+            }\r
+            enum MINOR {\r
+                description "The lowest severity of ACTIVE/INTERMITTENT alarm.";\r
+            }\r
+            enum WARNING {\r
+                description "An extremely low importance ACTIVE/INTERMITTENT alarm (lower than MINOR).";\r
+            }\r
+            enum CLEARED {\r
+                description "The severity of a CLEAR where no other severity information is available.";\r
+            }\r
+        }\r
+        description "The values for importance of an ACTIVE, INTERMITTENT or CLEAR alarm.";\r
+    }\r
+    typedef service-affect {\r
+        type enumeration {\r
+            enum SERVICE_AFFECTING {\r
+                description "The condition is believed to impact service.";\r
+            }\r
+            enum NOT_SERVICE_AFFECTING {\r
+                description "The condition is believed to not impact service.";\r
+            }\r
+            enum UNKNOWN {\r
+                description "The service impact of the condition is not known.";\r
+            }\r
+        }\r
+        description "Indicates whether the device considers the condition to be impacting service.\r
+            Note that the detected condition along with knowledge of the topology and protection provide a more suitable approach.";\r
+    }\r
+\r
+    /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping compacted-log-details {\r
+        leaf tombstone-retention {\r
+            type string;\r
+            config false;\r
+            description "Time in minutes.\r
+                The time period for which a Tombstone record will be held in the log from when it was logged. \r
+                This provides an adjustment to the essential Compaction strategy such that after the tombstoneRetention period there will be no records about a particular thing that existed but no longer exists.\r
+                Tombstone retention overrides recordRetention for Tombstones.\r
+                Key word 'FOREVER' means that Tombstone records will never be removed from the log.\r
+                Can be adjusted by an administrator (via a separate view) through the life of the stream.";\r
+        }\r
+        leaf compaction-delay {\r
+            type string;\r
+            config false;\r
+            description "Time in minutes. \r
+                The delay between logging the record and making the record available for compaction.\r
+                This provides an adjustment to the essential Compaction strategy such that there may be several distinct records for the same thing in the where those records are not older than the Compaction Delay.\r
+                Can be adjusted by an administrator (via a separate view) through the life of the stream.";\r
+        }\r
+        description "Details relevant for a CompactedLog.\r
+            The essential Compacted Log strategy is to remove historic records about a particular thing such that only the latest record about each thing exists in the log.\r
+            The essential strategy is refined by the parameters of this structure.";\r
+    }\r
+    grouping alarm-condition-detector-detail {\r
+        leaf alarm-detector-state {\r
+            type alarm-detector-state;\r
+            config false;\r
+            description "The state of the detector.\r
+                The detector state accounts for the time characteristics of the detected condition.";\r
+        }\r
+        container legacy-properties {\r
+            config false;\r
+            uses legacy-properties;\r
+            description "Alarm systems of the 20th century were based primarily on local lamps (initially filament bulbs) and bells.\r
+                Lamps can only be on or off, and bells sounding or not sounding, so alarms were Boolean in nature.\r
+                Where a detector was essentially multi-state it was converted into multiple Boolean statements.\r
+                The management of the equipments was essentially human only and local only (there were rarely remote systems).\r
+                The device with the problem was the only possible indicator of importance and it had only three distinct bulbs to illuminate (filament bulbs tend to fail requiring costly replacement).\r
+                The devices were relatively simple in function and analysis of the detectors was crude.\r
+                There was only the device to indicate severity\r
+                The device also could provide the best view as to whether a service was impacted, although clearly it had almost no knowledge.\r
+                In a modern solution with well-connected remote systems that increasingly analyze problems and where there is increasingly 'lights out' building operation, the device's guess at severity etc. is irrelevant.\r
+                In addition, with sophisticated resilience mechanisms, the device cannot make any relevant statement on whether the customer service has been impacted.\r
+                Likewise, in a world where there were no remote systems and local management was the only practice, alarms had to be locally 'acknowledged'. \r
+                Where there are remote systems, per alarm acknowledge is burdensome.\r
+                However, many solutions and operational practices continue to use the historic schemes.\r
+                On that basis, the schemes are supported but relegated to optional.";\r
+        }\r
+        description "A record of the state of a detector where that detector has two underling states that are of asymmetric importance.";\r
+    }\r
+    grouping condition-detector {\r
+        leaf condition-native-name {\r
+            type string;\r
+            config false;\r
+            description "The name used for the Condition by the source of the information.";\r
+        }\r
+        leaf measured-entity-uuid {\r
+            type tapi-common:uuid;\r
+            config false;\r
+            description "The uuid of the TAPI entity that represents the entity measured at source.\r
+                If the TAPI entity cannot be identified as it cannot be mapped, then this property can be omitted.\r
+                If the TAPI entity is a local class, then this is the UUID of the GlobalClass parent of the entity of which this is part.";\r
+        }\r
+        leaf measured-entity-native-id {\r
+            type string;\r
+            config false;\r
+            description "The identifier (invariant over the life) of the instance of the measured entity at the source.";\r
+        }\r
+        leaf condition-normalized-name {\r
+            type string;\r
+            config false;\r
+            description "It is often the case that there is a Condition Name that is commonly used or even standardized that has not been used by the source of the condition. \r
+                If this is the case, then that common/standard name is provided in via this property.";\r
+        }\r
+        leaf measured-entity-class {\r
+            type object-class-identifier;\r
+            config false;\r
+            description "The TAPI class of the measured entity. \r
+                If the class cannot be identified as it cannot be mapped, then this property can be omitted.";\r
+        }\r
+        leaf detector-uuid {\r
+            type tapi-common:uuid;\r
+            config false;\r
+            description "The uuid of the TAPI entity that represents the detector.\r
+                If the TAPI entity cannot be identified as it cannot be mapped, then this property can be omitted.\r
+                Where the detector is not modelled independently, but instead is a part of the measured entity such that it is identified by a 'local id' built from the UUID of the measured entity and the condition name, then this property may be omitted.";\r
+        }\r
+        leaf detector-native-id {\r
+            type string;\r
+            config false;\r
+            description "The identifier (invariant over the life) of the instance of the detector at the source (e.g. a device).\r
+                The string reported in this field must include the:\r
+                - device identifier\r
+                - one or more resource identifiers including that of the measured entity\r
+                It need not include the condition name.\r
+                ";\r
+        }\r
+        leaf condition-detector-type {\r
+            type condition-detector-type;\r
+            config false;\r
+            description "Identifies the type of detector.\r
+                This drives the conditional augmentation. \r
+                Some types of detector may not need specific augmentation.\r
+                ";\r
+        }\r
+        leaf-list measured-entity-local-id {\r
+            type string;\r
+            config false;\r
+            description "Where the measured entity is a local class and hence does not have a UUID the local ID is provided in conjunction with the parents ID. \r
+                The parent may also be a local class in which case its ID is a a local ID along with its parent ID.\r
+                There will be a parent which is a global class which then supplies a UUID.\r
+                The ID of the entity that is being measured is the combination of the UUID and the ordered list of local IDs.\r
+                The local ID may not be provided where:\r
+                - the report about a global class\r
+                - the report is relying on the detectorNativeId.";\r
+        }\r
+        description "ConditionDetector represents any monitoring component that assesses properties of something and determines from those properties what conditions are associated with the thing.\r
+            For example, a thing might be 'too hot' or might be 'unreliable'.\r
+            The monitor may a multi-state output. \r
+            The ConditionDetector lifecycle depends upon the lifecycle of the thing it is monitoring (this is a general OAM model consideration).\r
+            The entityKey in the AppendLogRecordHeader for a ConditionDetector record is the nativeDetector Id which may be derived from other ids (most robustly, nativeOwningEntityName (to which the detector is associated) + natveConditionName).";\r
+    }\r
+    grouping any-class {\r
+        description "In the final version all classes that can stream will be explicitly associated with the AppendLogRecordBody";\r
+    }\r
+    grouping stream-admin-context {\r
+        list stream-monitor {\r
+            key 'uuid';\r
+            config false;\r
+            uses stream-monitor;\r
+            description "The list of available stream monitors.";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "Context providing access to stream administration functionality.";\r
+    }\r
+    grouping stream-monitor {\r
+        leaf id-of-last-record-read-from-log {\r
+            type string;\r
+            config false;\r
+            description "The id/key of the last record read from the log by the client stream.\r
+                The analysis of this value needs to account for stream buffering in the comms layer.";\r
+        }\r
+        leaf id-of-last-record-written-to-log {\r
+            type string;\r
+            config false;\r
+            description "The id/key of the last record written to the log. \r
+                This is the same value for all clients of the stream.";\r
+        }\r
+        container available-stream {\r
+            uses available-stream-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf client-id {\r
+            type string;\r
+            config false;\r
+            description "The id of the connected client.";\r
+        }\r
+        leaf last-updated {\r
+            type tapi-common:date-and-time;\r
+            config false;\r
+            description "The date/time when the values provided were recorded.";\r
+        }\r
+        leaf client-address {\r
+            type string;\r
+            config false;\r
+            description "The address of the connected client that is being monitored.";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "Information on the monitoring of the use of a specific AvailableStream.";\r
+    }\r
+    grouping connection-protocol-details {\r
+        leaf-list allowed-connection-protocols {\r
+            type string;\r
+            config false;\r
+            description "Name of the allowed protocol.";\r
+        }\r
+        description "Details of the connection protocols available for the specific stream.";\r
+    }\r
+    grouping available-stream {\r
+        leaf connection-address {\r
+            type string;\r
+            config false;\r
+            description "Provides the address for the connection. \r
+                The format of the address and attachment mechanism will depend on the connection protocol defined in another attribute of this class.";\r
+        }\r
+        leaf stream-state {\r
+            type stream-state;\r
+            config false;\r
+            description "The state of the stream.";\r
+        }\r
+        container supported-stream-type {\r
+            uses supported-stream-type-ref;\r
+            config false;\r
+            description "Identifies the type of stream that is available for connection.";\r
+        }\r
+        leaf stream-id {\r
+            type string;\r
+            config false;\r
+            description "The id of the stream.";\r
+        }\r
+        leaf connection-protocol {\r
+            type string;\r
+            config false;\r
+            description "Names the connection protocol for this particular available stream.\r
+                The connection protocol is chosen from the list of connection protocols identified in the referenced SupportedStreamType.";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "Details of stream a stream that can be connected to by a client application.";\r
+    }\r
+    grouping stream-context {\r
+        list available-stream {\r
+            key 'uuid';\r
+            config false;\r
+            uses available-stream;\r
+            description "none";\r
+        }\r
+        list supported-stream-type {\r
+            key 'uuid';\r
+            config false;\r
+            uses supported-stream-type;\r
+            description "none";\r
+        }\r
+        description "All streams relevant to the specific TapiContext.";\r
+    }\r
+    grouping supported-stream-type {\r
+        leaf stream-type-name {\r
+            type string;\r
+            config false;\r
+            description "Name of the stream type.";\r
+        }\r
+        leaf record-retention {\r
+            type string;\r
+            config false;\r
+            description "Time in minutes.\r
+                Statement of retention time and/or retention capacity in bytes.\r
+                Key word 'FOREVER' means that records will never be removed from the log.\r
+                May be overridden for particular cases of specific LogStorageStrategy (via augment).";\r
+        }\r
+        leaf segment-size {\r
+            type string;\r
+            config false;\r
+            description "Size of sub-structuring of the log.";\r
+        }\r
+        leaf-list record-content {\r
+            type object-class-identifier;\r
+            description "Identifies the classes that are supported through the stream. \r
+                The list may be a subset of the classes within the context.";\r
+        }\r
+        leaf log-storage-strategy {\r
+            type log-storage-strategy;\r
+            config false;\r
+            description "Indicates the storage characteristics of the log supporting the stream.";\r
+        }\r
+        leaf log-record-strategy {\r
+            type log-record-strategy;\r
+            config false;\r
+            description "Indicates the type of content of each log record.";\r
+        }\r
+        uses tapi-common:global-class;\r
+        description "Definition of a supported stream type.";\r
+    }\r
+    grouping log-record {\r
+        container log-record-header {\r
+            config false;\r
+            uses log-record-header;\r
+            description "The header of the log record providing general parameters of the record common to all records.";\r
+        }\r
+        container log-record-body {\r
+            config false;\r
+            uses log-record-body;\r
+            description "The body of the log record providing specific logged details.";\r
+        }\r
+        description "A specific atomic entry in a log.";\r
+    }\r
+    grouping log-record-body {\r
+        container event-time-stamp {\r
+            config false;\r
+            uses approx-date-and-time;\r
+            description "Time of the event at the origin of the event that triggered the generation of the record. \r
+                The structure allows for time uncertainty.";\r
+        }\r
+        leaf event-source {\r
+            type event-source;\r
+            config false;\r
+            description "Indicates whether the source is controlled (under management control) or potentially chaotic (under resource control).\r
+                The time characteristic of the source may be determined from the metadata describing the resource (e.g., a detector).\r
+                Where there is an alternative (and probably more detailed) source of information on time characteristic this attribute can be omitted.";\r
+        }\r
+        list additional-event-info {\r
+            key 'value-name';\r
+            config false;\r
+            uses tapi-common:name-and-value;\r
+            description "Addition information related to the event such as change reason where changeReason would be the name and the value text would provide information on the reason for change.";\r
+        }\r
+        leaf-list parent-address {\r
+            type string;\r
+            config false;\r
+            description "Where the entity is a local class this provides the ordered list of ids from the closest global class (a UUID cast as a string) to the direct parent (which may be the global class).\r
+                The field can include all entities back to the Context and hence can be used for global classes where the tree is being represented in full.\r
+                Gives the position of the entity in the address tree (usually containment) that is raising the event by providing the name/id values in the address of the parent.\r
+                Is the sequence of named levels in the tree up to but excluding the entity of the notification. \r
+                It includes the device id where relevant.";\r
+        }\r
+        leaf record-content {\r
+            type object-class-identifier;\r
+            config false;\r
+            description "The identifier of the object class in the record body detail.\r
+                This property is used to control the conditional augmentation of the body with detail.";\r
+        }\r
+        description "The specific details of the Record.";\r
+    }\r
+    grouping log-record-header {\r
+        leaf tapi-context {\r
+            type tapi-common:uuid;\r
+            config false;\r
+            description "The identifier of the context.";\r
+        }\r
+        leaf token {\r
+            type string;\r
+            config false;\r
+            description "A coded (and compact) form of the fullLogRecordOffsetId.\r
+                This property is used to request streaming from a particular point (e.g., the last correctly handled record).";\r
+        }\r
+        list full-log-record-offset-id {\r
+            key 'value-name';\r
+            config false;\r
+            min-elements 1;\r
+            uses tapi-common:name-and-value;\r
+            description "In a complex log solution there may be various parts to the log.\r
+                The record token is a compressed form of log record reference.\r
+                This property provides the verbose form \r
+                For example, it may include:\r
+                - stream id\r
+                - topic\r
+                - partition\r
+                - partition offset\r
+                - sequence number (the offset is essentially the sequence number associated with the partition)";\r
+        }\r
+        leaf log-append-time-stamp {\r
+            type tapi-common:date-and-time;\r
+            config false;\r
+            description "The time when the record was appended to the log.";\r
+        }\r
+        leaf entity-key {\r
+            type string;\r
+            config false;\r
+            description "The identifier of the entity that is used in a Compacted log as the compaction key.\r
+                The entityKey value, where appropriate, may be based upon the identifiers from the event source.\r
+                It can be built from some specific detail combination that meets the necessary uniqueness and durability requirements.\r
+                entityKey is the value used during compaction.\r
+                Ideally it is a UUID format, if this can be formed from the source identifier.";\r
+        }\r
+        leaf record-type {\r
+            type record-type;\r
+            config false;\r
+            description "The type of the record.\r
+                Can be used to understand which elements of the record will be present.";\r
+        }\r
+        leaf record-authenticity-token {\r
+            type string;\r
+            config false;\r
+            description "none";\r
+        }\r
+        description "The header of the log record providing general parameters of the record common to all records.";\r
+    }\r
+    notification stream-record {\r
+        uses stream-record;\r
+        description "none";\r
+    }\r
+    grouping stream-record {\r
+        list log-record {\r
+            config false;\r
+            uses log-record;\r
+            description "Each stream record may include a number of log records.";\r
+        }\r
+        description "The stream content.";\r
+    }\r
+\r
+    /**************************\r
+    * package interfaces\r
+    **************************/ \r
+    rpc connect-to-stream {\r
+        description "none";\r
+        input {\r
+            leaf start-from-token {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf connection-address {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-available-stream-connection-details {\r
+        description "none";\r
+        output {\r
+            list active-connections {\r
+                uses available-stream;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-supported-stream-connection-types {\r
+        description "none";\r
+        output {\r
+            list supported-stream-types {\r
+                uses supported-stream-type;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-topology@2020-04-23.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-topology@2020-04-23.yang
new file mode 100644 (file)
index 0000000..36075d7
--- /dev/null
@@ -0,0 +1,926 @@
+module tapi-topology {\r
+    namespace "urn:onf:otcc:yang:tapi-topology";\r
+    prefix tapi-topology;\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OTCC/TAPI__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_yiFzE6g$ >\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzin <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Topology Model definitions.\r
+        Source: TapiTopology.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+          <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/EagleUmlYang__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_6pxiNxl$ >\r
+          and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+          <https://urldefense.com/v3/__https://wiki.opennetworking.org/display/OIMT/UML*-*YANG*Guidelines__;Kysr!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_wxKUbJ_$ >\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+          As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+          The YANG model backward compatibility criteria are outlined in section 11 of <https://urldefense.com/v3/__https://tools.ietf.org/html/rfc7950__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_zcAY1P4$ >.\r
+          YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0.";\r
+    revision 2020-04-23 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_xm1nx_D$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_0xFu4bN$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur__2p0od1$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_4DGi8ul$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8UH3XnH$ >";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_8KlxwJZ$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_-hMD5Xl$ >";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur__C1vuym$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_5DYNwzZ$ >";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_1xZSBRA$ >";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://urldefense.com/v3/__https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML__;!!OSsGDw!bx-l35NqfQHpJ8R_DmXfi2NX2ll5dMl9VbK5aS_m3ZShiVoz74Ur_xt-GtqY$ >";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        container topology-context {\r
+            uses topology-context;\r
+            description "Augments the base TAPI Context with TopologyService information";\r
+        }\r
+        description "Augments the base TAPI Context with TopologyService information";\r
+    }\r
+\r
+   /**************************\r
+    * definitions of refrences\r
+    **************************/\r
+    grouping topology-ref {\r
+        leaf topology-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping link-ref {\r
+        uses topology-ref;\r
+        leaf link-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:link/tapi-topology:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping node-ref {\r
+        uses topology-ref;\r
+        leaf node-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping node-edge-point-ref {\r
+        uses node-ref;\r
+        leaf node-edge-point-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-topology:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping node-rule-group-ref {\r
+        uses node-ref;\r
+        leaf node-rule-group-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:node-rule-group/tapi-topology:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping link {\r
+        list node-edge-point {\r
+            uses node-edge-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid';\r
+            config false;\r
+            min-elements 2;\r
+            description "none";\r
+        }\r
+        leaf-list layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:forwarding-direction;\r
+            config false;\r
+            description "The directionality of the Link.\r
+                Is applicable to simple Links where all LinkEnds are BIDIRECTIONAL (the Link will be BIDIRECTIONAL) or UNIDIRECTIONAL (the Link will be UNIDIRECTIONAL).\r
+                Is not present in more complex cases.";\r
+        }\r
+        container resilience-type {\r
+            uses resilience-type;\r
+            description "none";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses tapi-common:admin-state-pac;\r
+        uses tapi-common:capacity-pac;\r
+        uses transfer-cost-pac;\r
+        uses transfer-integrity-pac;\r
+        uses transfer-timing-pac;\r
+        uses risk-parameter-pac;\r
+        uses validation-pac;\r
+        uses layer-protocol-transition-pac;\r
+        description "The Link object class models effective adjacency between two or more ForwardingDomains (FD). ";\r
+    }\r
+    grouping node {\r
+        list owned-node-edge-point {\r
+            key 'uuid';\r
+            config false;\r
+            uses node-edge-point;\r
+            description "none";\r
+        }\r
+        list aggregated-node-edge-point {\r
+            uses node-edge-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        list node-rule-group {\r
+            key 'uuid';\r
+            uses node-rule-group;\r
+            description "none";\r
+        }\r
+        container encap-topology {\r
+            uses topology-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf-list layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses tapi-common:admin-state-pac;\r
+        uses tapi-common:capacity-pac;\r
+        uses transfer-cost-pac;\r
+        uses transfer-integrity-pac;\r
+        uses transfer-timing-pac;\r
+        description "The ForwardingDomain (FD) object class models the ForwardingDomain topological component which is used to effect forwarding of transport characteristic information and offers the potential to enable forwarding.\r
+            At the lowest level of recursion, an FD (within a network element (NE)) represents a switch matrix (i.e., a fabric). Note that an NE can encompass multiple switch matrices (FDs). ";\r
+    }\r
+    grouping topology {\r
+        list node {\r
+            key 'uuid';\r
+            config false;\r
+            uses node;\r
+            description "none";\r
+        }\r
+        list link {\r
+            key 'uuid';\r
+            config false;\r
+            uses link;\r
+            description "none";\r
+        }\r
+        leaf-list layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        description "The ForwardingDomain (FD) object class models the ForwardingDomain topological component which is used to effect forwarding of transport characteristic information and offers the potential to enable forwarding. \r
+            At the lowest level of recursion, an FD (within a network element (NE)) represents a switch matrix (i.e., a fabric). Note that an NE can encompass multiple switch matrices (FDs). ";\r
+    }\r
+    grouping layer-protocol-transition-pac {\r
+        leaf-list transitioned-layer-protocol-name {\r
+            type string;\r
+            min-elements 2;\r
+            description "Provides the ordered structure of layer protocol transitions encapsulated in the TopologicalEntity. The ordering relates to the LinkPort role.";\r
+        }\r
+        description "Relevant for a Link that is formed by abstracting one or more LTPs (in a stack) to focus on the flow and deemphasize the protocol transformation.\r
+            This abstraction is relevant when considering multi-layer routing.\r
+            The layer protocols of the LTP and the order of their application to the signal is still relevant and need to be accounted for. This is derived from the LTP spec details.\r
+            This Pac provides the relevant abstractions of the LTPs and provides the necessary association to the LTPs involved.\r
+            Links that included details in this Pac are often referred to as Transitional Links.";\r
+    }\r
+    grouping node-edge-point {\r
+        leaf layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf-list supported-cep-layer-protocol-qualifier {\r
+            type tapi-common:layer-protocol-qualifier;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        list aggregated-node-edge-point {\r
+            uses node-edge-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        list mapped-service-interface-point {\r
+            uses tapi-common:service-interface-point-ref;\r
+            key 'service-interface-point-uuid';\r
+            config false;\r
+            description "NodeEdgePoint mapped to more than ServiceInterfacePoint (slicing/virtualizing) or a ServiceInterfacePoint mapped to more than one NodeEdgePoint (load balancing/Resilience) should be considered experimental";\r
+        }\r
+        leaf link-port-direction {\r
+            type tapi-common:port-direction;\r
+            config false;\r
+            description "The orientation of defined flow at the LinkEnd.";\r
+        }\r
+        leaf link-port-role {\r
+            type tapi-common:port-role;\r
+            config false;\r
+            description "Each LinkEnd of the Link has a role (e.g., symmetric, hub, spoke, leaf, root)  in the context of the Link with respect to the Link function. ";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses tapi-common:admin-state-pac;\r
+        uses tapi-common:termination-pac;\r
+        uses tapi-common:capacity-pac;\r
+        description "The LogicalTerminationPoint (LTP) object class encapsulates the termination and adaptation functions of one or more transport layers.\r
+            The structure of LTP supports all transport protocols including circuit and packet forms.";\r
+    }\r
+    grouping risk-parameter-pac {\r
+        list risk-characteristic {\r
+            key 'risk-characteristic-name';\r
+            config false;\r
+            min-elements 1;\r
+            uses risk-characteristic;\r
+            description "A list of risk characteristics for consideration in an analysis of shared risk. Each element of the list represents a specific risk consideration.";\r
+        }\r
+        description "The risk characteristics of a TopologicalEntity come directly from the underlying physical realization.\r
+            The risk characteristics propagate from the physical realization to the client and from the server layer to the client layer, this propagation may be modified by protection.\r
+            A TopologicalEntity may suffer degradation or failure as a result of a problem in a part of the underlying realization.\r
+            The realization can be partitioned into segments which have some relevant common failure modes.\r
+            There is a risk of failure/degradation of each segment of the underlying realization.\r
+            Each segment is a part of a larger physical/geographical unit that behaves as one with respect to failure (i.e. a failure will have a high probability of impacting the whole unit (e.g. all cables in the same duct).\r
+            Disruptions to that larger physical/geographical unit will impact (cause failure/errors to) all TopologicalEntities that use any part of that larger physical/geographical entity.\r
+            Any TopologicalEntity that uses any part of that larger physical/geographical unit will suffer impact and hence each TopologicalEntity shares risk.\r
+            The identifier of each physical/geographical unit that is involved in the realization of each segment of a Topological entity can be listed in the RiskParameter_Pac of that TopologicalEntity.\r
+            A segment has one or more risk characteristic.\r
+            Shared risk between two TopologicalEntities compromises the integrity of any solution that use one of those TopologicalEntity as a backup for the other.\r
+            Where two TopologicalEntities have a common risk characteristic they have an elevated probability of failing simultaneously compared to two TopologicalEntities that do not share risk characteristics.";\r
+    }\r
+    grouping transfer-cost-pac {\r
+        list cost-characteristic {\r
+            key 'cost-name';\r
+            config false;\r
+            min-elements 1;\r
+            uses cost-characteristic;\r
+            description "The list of costs where each cost relates to some aspect of the TopologicalEntity.";\r
+        }\r
+        description "The cost characteristics of a TopologicalEntity not necessarily correlated to the cost of the underlying physical realization.\r
+            They may be quite specific to the individual TopologicalEntity e.g. opportunity cost. Relates to layer capacity.\r
+            There may be many perspectives from which cost may be considered  for a particular TopologicalEntity and hence many specific costs and potentially cost algorithms.\r
+            Using an entity will incur a cost. ";\r
+    }\r
+    grouping transfer-integrity-pac {\r
+        leaf error-characteristic {\r
+            type string;\r
+            config false;\r
+            description "Describes the degree to which the signal propagated can be errored.\r
+                Applies to TDM systems as the errored signal will be propagated and not packet as errored packets will be discarded.";\r
+        }\r
+        leaf loss-characteristic {\r
+            type string;\r
+            config false;\r
+            description "Describes the acceptable characteristic of lost packets where loss may result from discard due to errors or overflow.\r
+                Applies to packet systems and not TDM (as for TDM errored signals are propagated unless grossly errored and overflow/underflow turns into timing slips).";\r
+        }\r
+        leaf repeat-delivery-characteristic {\r
+            type string;\r
+            config false;\r
+            description "Primarily applies to packet systems where a packet may be delivered more than once (in fault recovery for example).\r
+                It can also apply to TDM where several frames may be received twice due to switching in a system with a large differential propagation delay.";\r
+        }\r
+        leaf delivery-order-characteristic {\r
+            type string;\r
+            config false;\r
+            description "Describes the degree to which packets will be delivered out of sequence.\r
+                Does not apply to TDM as the TDM protocols maintain strict order.";\r
+        }\r
+        leaf unavailable-time-characteristic {\r
+            type string;\r
+            config false;\r
+            description "Describes the duration for which there may be no valid signal propagated.";\r
+        }\r
+        leaf server-integrity-process-characteristic {\r
+            type string;\r
+            config false;\r
+            description "Describes the effect of any server integrity enhancement process on the characteristics of the TopologicalEntity.";\r
+        }\r
+        description "Transfer intergrity characteristic covers expected/specified/acceptable characteristic of degradation of the transfered signal.\r
+            It includes all aspects of possible degradation of signal content as well as any damage of any form to the total TopologicalEntity and to the carried signals.\r
+            Note that the statement is of total impact to the TopologicalEntity so any partial usage of the TopologicalEntity (e.g. a signal that does not use full capacity) will only suffer its portion of the impact.";\r
+    }\r
+    grouping transfer-timing-pac {\r
+        list latency-characteristic {\r
+            key 'traffic-property-name';\r
+            config false;\r
+            min-elements 1;\r
+            uses latency-characteristic;\r
+            description "The effect on the latency of a queuing process. This only has significant effect for packet based systems and has a complex characteristic.";\r
+        }\r
+        description "A TopologicalEntity will suffer effects from the underlying physical realization related to the timing of the information passed by the TopologicalEntity.";\r
+    }\r
+    grouping validation-pac {\r
+        list validation-mechanism {\r
+            key 'validation-mechanism';\r
+            config false;\r
+            min-elements 1;\r
+            uses validation-mechanism;\r
+            description "Provides details of the specific validation mechanism(s) used to confirm the presence of an intended topologicalEntity.";\r
+        }\r
+        description "Validation covers the various adjacenct discovery and reachability verification protocols. Also may cover Information source and degree of integrity.";\r
+    }\r
+    grouping network-topology-service {\r
+        list topology {\r
+            uses topology-ref;\r
+            key 'topology-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        uses tapi-common:service-spec;\r
+        description "none";\r
+    }\r
+    grouping topology-context {\r
+        container nw-topology-service {\r
+            config false;\r
+            uses network-topology-service;\r
+            description "none";\r
+        }\r
+        list topology {\r
+            key 'uuid';\r
+            config false;\r
+            uses topology;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    grouping inter-rule-group {\r
+        list rule {\r
+            key 'local-id';\r
+                       config false;\r
+            min-elements 1;\r
+            uses rule;\r
+            description "The list of rules of the InterRuleGroup.";\r
+        }\r
+        list associated-node-rule-group {\r
+            uses node-rule-group-ref;\r
+            key 'topology-uuid node-uuid node-rule-group-uuid';\r
+                       config false;\r
+            min-elements 2;\r
+            description "The NodeRuleGroups that the InterRuleGroup constrains interconnection between.\r
+                The CEPs of the NEPs of a referenced NodeRuleGroup can interconnect to the CEPs of the NEPs of another referenced NodeRuleGroup constrained by the rules of the InterRuleGroup.";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses tapi-common:capacity-pac;\r
+        uses transfer-cost-pac;\r
+        uses transfer-timing-pac;\r
+        uses risk-parameter-pac;\r
+        description "Rules that apply between groups of NEPs.";\r
+    }\r
+    grouping node-rule-group {\r
+        list rule {\r
+            key 'local-id';\r
+                       config false;\r
+            min-elements 1;\r
+            uses rule;\r
+            description "The list of rules of the NodeRuleGroup.";\r
+        }\r
+        list node-edge-point {\r
+            uses node-edge-point-ref;\r
+            key 'topology-uuid node-uuid node-edge-point-uuid';\r
+                       config false;\r
+            min-elements 1;\r
+            description "NEPs and their client CEPs that the rules apply to.";\r
+        }\r
+        list node-rule-group {\r
+            uses node-rule-group-ref;\r
+            key 'topology-uuid node-uuid node-rule-group-uuid';\r
+                       config false;\r
+            description "NodeRuleGroups may be nested such that finer grained rules may be applied.\r
+                A nested rule group should have a subset of the NEPs of the superior rule group.";\r
+        }\r
+        list inter-rule-group {\r
+            key 'uuid';\r
+            uses inter-rule-group;\r
+                       config false;\r
+            description "Nested NodeRuleGroups may have InterRuleGroups. The Superior NodeRuleGroup contains the nested NodeRuleGroups and their associated InterRuleGroups.\r
+                This is equivalent to the Node-Topology hierarchy.";\r
+        }\r
+        uses tapi-common:resource-spec;\r
+        uses tapi-common:capacity-pac;\r
+        uses transfer-cost-pac;\r
+        uses transfer-timing-pac;\r
+        uses risk-parameter-pac;\r
+        description "Rules that apply to a group of NEPs.\r
+            ";\r
+    }\r
+    grouping rule {\r
+        leaf rule-type {\r
+            type rule-type;\r
+            config false;\r
+            description "The focus of the rule.";\r
+        }\r
+        leaf forwarding-rule {\r
+            type forwarding-rule;\r
+            config false;\r
+            description "Rule that restricts the creation/deletion of a Connection between points in the node rule group or related by the inter rule group between node rule groups.";\r
+        }\r
+        leaf override-priority {\r
+            type uint64;\r
+            config false;\r
+            description "The overridePriority allows for one rule in a rule group to override another.\r
+                Priority n rules override priority n+1 rules.\r
+                Rules of the same priority override as follows (n overrides n+1):\r
+                1 - MustNot\r
+                2 - Must\r
+                3 - May\r
+                4 - Null\r
+                Within a rule the flexibility rules (signal, port role...) override as follows (n overriedes n+1):\r
+                1 - Any\r
+                2 - Same\r
+                3 - Different\r
+                Where there are two or more 'Same' rules, they will form an intersection where all must be met.\r
+                ";\r
+        }\r
+        leaf-list cep-direction {\r
+            type tapi-common:port-direction;\r
+            config false;\r
+            description "cep direction is a list of port directions that the rule applies to.\r
+                No entry means all cep directions.";\r
+        }\r
+        list cep-port-role {\r
+            uses port-role-rule;\r
+                       config false;\r
+            description "Indicates the port role to which the rule applies. \r
+                The port role is interpreted in the context of the connection type which is identified by the connection spec. \r
+                The port role is not meaningful in the absence of a connection spec reference.\r
+                If a node rule group carries a port role, that role applies also to the associated inter rule where the combination of the roles in the node rule groups at the ends of the inter group rule define the connection orientation.\r
+                For example a root-and-leaf connection may be used in a node where a node rule group collects one set of NEPs has the port role 'root' and another node rule group collects another set of NEPs has the port role 'leaf' where these are joined by an inter rule group. This combination specifies an allowed orientation of the root-and-leaf connection.\r
+                No port role statement means all port roles are allowed.";\r
+        }\r
+        list connection-spec-reference {\r
+            config false;\r
+            uses connection-spec-reference;\r
+            description "Identifies the type of connection that the rule applies to. \r
+                If the attribute is not present then the rule applies to all types of connection supported by the device.";\r
+        }\r
+        leaf-list layer-protocol-qualifier {\r
+            type tapi-common:layer-protocol-qualifier;\r
+            config false;\r
+            description "Qualifies a rule for a particular layerProtocol identifying the qualifiers that the rule apples to.\r
+                If the attribute is not present then the rule applies to all relevant qualifiers of the layer protocol of the parent entity.";\r
+        }\r
+        container signal-property {\r
+            config false;\r
+            uses signal-property-rule;\r
+            description "The rule only applies to signals with the properties listed. \r
+                If the attribute is not present then the rule applies to all signals.";\r
+        }\r
+        leaf-list complex-rule {\r
+            type string;\r
+            config false;\r
+            description "Allows for more complex rules where the basic rule system is not sufficient.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "Single complex rule statememt.\r
+            A Node with no rule group has no restrictions and is essentially May/Any\r
+            A node rule group constrain the CEP connectability in the Node.\r
+            A connection from a NEP must abide by all rules that relate to that NEP\r
+            Rules that are for a particular layerProtocolQualifier, connectionSpecReference, cepPortRole and cepDirection combination must be abided by in combination as dictated by overridePriority.\r
+            If a particular\r
+            - connectionSpecReference does not have any rule statements then it is not supported and connections of that type are not possible within the rule group.\r
+            - cepPortRole of a particular connectionSpecReference does not have any rule statements then it is not supported and connections of that connectionSpecReference (type) cannot have that cepPortRole for CEPs from NEPs in that rule group.\r
+            - cepDirection for a particular connectionSpecReference does not have any rule statements then it is not supported and connections of that connectionSpecReference (type) cannot have that cepPortDirection for CEPs from NEPs in that rule group.\r
+            Rules that are for different layerProtocolQualifiers or connectionSpecReferences are independent and provide options for connection in the rule group.\r
+            Some rules may apply to multiple connectionSpecReferences and all cepPortRoles and all cepDirections.";\r
+    }\r
+\r
+    /**************************\r
+    * package type-definitions\r
+    **************************/ \r
+    identity PORT_ROLE_RULE_OPTION {\r
+        description "none";\r
+    }\r
+    identity PORT_ROLE_RULE_OPTION_SAME_ROLE {\r
+        base PORT_ROLE_RULE_OPTION;\r
+        description "The ports of the connection to which the rule applies must have the same role from the list in port role.";\r
+    }\r
+    identity PORT_ROLE_RULE_OPTION_DIFFERENT_ROLE {\r
+        base PORT_ROLE_RULE_OPTION;\r
+        description "The ports of the connection to which the rule applies must have different roles from the list in port role.";\r
+    }\r
+    identity PORT_ROLE_RULE_OPTION_ANY_ROLE {\r
+        base PORT_ROLE_RULE_OPTION;\r
+        description "The ports of the connection to which the rule applies may take any identified role.";\r
+    }\r
+    identity PORT_ROLE_RULE_OPTION_NOT_ROLE {\r
+        base PORT_ROLE_RULE_OPTION;\r
+        description "The ports of the connection to which the rule applies must not have any of the listed roles.";\r
+    }\r
+    identity SIGNAL_PROPERTY_VALUE_RULE {\r
+        description "none";\r
+    }\r
+    identity SIGNAL_PROPERTY_VALUE_RULE_SAME_VALUE {\r
+        base SIGNAL_PROPERTY_VALUE_RULE;\r
+        description "The signal property of the cep to which the rule applies must have the same value from the identied list.";\r
+    }\r
+    identity SIGNAL_PROPERTY_VALUE_RULE_ANY_VALUE {\r
+        base SIGNAL_PROPERTY_VALUE_RULE;\r
+        description "The signal property of the cep to which the rule applies may take any identified value.";\r
+    }\r
+    identity SIGNAL_PROPERTY_VALUE_RULE_DIFFERENT_VALUE {\r
+        base SIGNAL_PROPERTY_VALUE_RULE;\r
+        description "The signal property of the cep to which the rule applies each must have different values from the identified list.";\r
+    }\r
+    identity SIGNAL_PROPERTY_VALUE_RULE_NOT_VALUE {\r
+        base SIGNAL_PROPERTY_VALUE_RULE;\r
+        description "The signal property of the cep to which the rule applies must not have any of the identified values.";\r
+    }\r
+    grouping cost-characteristic {\r
+        leaf cost-name {\r
+            type string;\r
+            description "The cost characteristic will related to some aspect of the TopologicalEntity (e.g. $ cost, routing weight). This aspect will be conveyed by the costName.";\r
+        }\r
+        leaf cost-value {\r
+            type string;\r
+            description "The specific cost.";\r
+        }\r
+        leaf cost-algorithm {\r
+            type string;\r
+            description "The cost may vary based upon some properties of the TopologicalEntity. The rules for the variation are conveyed by the costAlgorithm.";\r
+        }\r
+        description "The information for a particular cost characteristic.";\r
+    }\r
+    grouping latency-characteristic {\r
+        leaf traffic-property-name {\r
+            type string;\r
+            description "The identifier of the specific traffic property to which the queuing latency applies.";\r
+        }\r
+        leaf fixed-latency-characteristic {\r
+            type string;\r
+            config false;\r
+            description "A TopologicalEntity suffers delay caused by the realization of the servers (e.g. distance related; FEC encoding etc.) along with some client specific processing. This is the total average latency effect of the TopologicalEntity";\r
+        }\r
+        leaf queing-latency-characteristic {\r
+            type string;\r
+            description "The specific queuing latency for the traffic property.";\r
+        }\r
+        leaf jitter-characteristic {\r
+            type string;\r
+            config false;\r
+            description "High frequency deviation from true periodicity of a signal and therefore a small high rate of change of transfer latency.\r
+                Applies to TDM systems (and not packet).";\r
+        }\r
+        leaf wander-characteristic {\r
+            type string;\r
+            config false;\r
+            description "Low frequency deviation from true periodicity of a signal and therefore a small low rate of change of transfer latency.\r
+                Applies to TDM systems (and not packet).";\r
+        }\r
+        description "Provides information on latency characteristic for a particular stated trafficProperty.";\r
+    }\r
+    grouping risk-characteristic {\r
+        leaf risk-characteristic-name {\r
+            type string;\r
+            description "The name of the risk characteristic. The characteristic may be related to a specific degree of closeness.\r
+                For example a particular characteristic may apply to failures that are localized (e.g. to one side of a road) where as another characteristic may relate to failures that have a broader impact (e.g. both sides of a road that crosses a bridge).\r
+                Depending upon the importance of the traffic being routed different risk characteristics will be evaluated.";\r
+        }\r
+        leaf-list risk-identifier-list {\r
+            type string;\r
+            min-elements 1;\r
+            description "A list of the identifiers of each physical/geographic unit (with the specific risk characteristic) that is related to a segment of the TopologicalEntity.";\r
+        }\r
+        description "The information for a particular risk characteristic where there is a list of risk identifiers related to that characteristic.";\r
+    }\r
+    grouping validation-mechanism {\r
+        leaf validation-mechanism {\r
+            type string;\r
+            description "Name of mechanism used to validate adjacency";\r
+        }\r
+        leaf layer-protocol-adjacency-validated {\r
+            type string;\r
+            description "State of validatiion";\r
+        }\r
+        leaf validation-robustness {\r
+            type string;\r
+            description "Quality of validation (i.e. how likely is the stated validation to be invalid)";\r
+        }\r
+        description "Identifies the validation mechanism and describes the characteristics of that mechanism";\r
+    }\r
+    typedef forwarding-rule {\r
+        type enumeration {\r
+            enum MAY_FORWARD_ACROSS_GROUP {\r
+                description "NEPs referenced by the node rule group (or indirectly by the inter rule group between node rule groups) may have connections created between them unless some other rule overrides this.\r
+                    For an inter rule group points in a node rule group at one end of the inter rule group may be connected to points in an node rule group at an other end of the inter rule group.";\r
+            }\r
+            enum MUST_FORWARD_ACROSS_GROUP {\r
+                description "NEPs referenced by the node rule group (or indirectly by the inter rule group between node rule groups) MUST have connections created between them unless some other rule overrides this.\r
+                    For an inter rule group points in a node rule group at one end of the inter rule group MUST be connected to points in an node rule group at an other end of the inter rule group.";\r
+            }\r
+            enum CANNOT_FORWARD_ACROSS_GROUP {\r
+                description "NEPs referenced by the node rule group (or indirectly by the inter rule group between node rule groups) MUST NOT have connections created between them.\r
+                    For an inter rule group points in a node rule group at one end of the inter rule group MUST NOT be connected to points in an node rule group at an other end of the inter rule group.";\r
+            }\r
+            enum NO_STATEMENT_ON_FORWARDING {\r
+                description "The rule group makes no statement on forwarding.";\r
+            }\r
+            enum INTER_CONNECTION_CONTENTION {\r
+                description "Connections to NEPs in the rule group contend for resources based upon a constraint of some signal property.\r
+                    For example, each connection to a NEP in the group must use a different value of the signal property from all other connections to NEPs in the rule group.\r
+                    For example, each connection to a NEP in the group must use a same value of the signal property as all other connections to NEPs in the rule group. In this case the first connection created in the rule group sets the value and the group constraint is freed when the last connection is deleted.";\r
+            }\r
+        }\r
+        description "Rule that restricts the creation/deletion of an connection between points referenced by rule groups.";\r
+    }\r
+    typedef rule-type {\r
+        type enumeration {\r
+            enum FORWARDING {\r
+                description "The rule applies to the creation of connections.";\r
+            }\r
+            enum CAPACITY {\r
+                description "The rule applies to capacity limitations.";\r
+            }\r
+            enum COST {\r
+                description "The rule applies to the cost of the creation of connections.";\r
+            }\r
+            enum TIMING {\r
+                description "The rule applies to timing constraints across the group.";\r
+            }\r
+            enum RISK {\r
+                description "The rule applies to risk considerations across the group so as to express shared risk.";\r
+            }\r
+            enum GROUPING {\r
+                description "The rule is simply for grouping related to other rules.";\r
+            }\r
+        }\r
+        description "The focus of the rule.";\r
+    }\r
+    grouping resilience-type {\r
+        leaf restoration-policy {\r
+            type restoration-policy;\r
+            description "none";\r
+        }\r
+        leaf protection-type {\r
+            type protection-type;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+    typedef restoration-policy {\r
+        type enumeration {\r
+            enum PER_DOMAIN_RESTORATION {\r
+                description "none";\r
+            }\r
+            enum END_TO_END_RESTORATION {\r
+                description "none";\r
+            }\r
+            enum NA {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    typedef protection-type {\r
+        type enumeration {\r
+            enum NO_PROTECTON {\r
+                description "none";\r
+            }\r
+            enum ONE_PLUS_ONE_PROTECTION {\r
+                description "none";\r
+            }\r
+            enum ONE_PLUS_ONE_PROTECTION_WITH_DYNAMIC_RESTORATION {\r
+                description "none";\r
+            }\r
+            enum PERMANENT_ONE_PLUS_ONE_PROTECTION {\r
+                description "none";\r
+            }\r
+            enum ONE_FOR_ONE_PROTECTION {\r
+                description "none";\r
+            }\r
+            enum DYNAMIC_RESTORATION {\r
+                description "none";\r
+            }\r
+            enum PRE_COMPUTED_RESTORATION {\r
+                description "none";\r
+            }\r
+            enum ONE_PLUS_ONE_PROTECTION_WITH_PRE_COMPUTED_RESTORATION {\r
+                description "none";\r
+            }\r
+        }\r
+        description "none";\r
+    }\r
+    grouping connection-spec-reference {\r
+        leaf connection-spec-name {\r
+            type string;\r
+            config false;\r
+            description "The name of the connection type spec.\r
+                This can be used as a reference to a paper document where full formal machine interpretable specs are not supported.";\r
+        }\r
+        leaf connection-spec-id {\r
+            type tapi-common:uuid;\r
+            config false;\r
+            description "The reference to a formal spec. \r
+                This reference need not be provided (e.g., where there is no formal machine interpretable spec for the type of connection).";\r
+        }\r
+        description "The definition of the type of connection.\r
+            This definition will explain the flows in the connections and how they relate to the port roles.";\r
+    }\r
+    typedef port-role {\r
+        type string;\r
+        description "The role of a port in the context of the connection spec referenced in the rule.";\r
+    }\r
+    grouping port-role-rule {\r
+        leaf-list port-role {\r
+            type port-role;\r
+            config false;\r
+            description "The role(s) of the port(s) considered in the rule.";\r
+        }\r
+        leaf-list port-role-rule {\r
+            type port-role-rule-option;\r
+            config false;\r
+            description "Where the rule references more than one port role or where there are rule intersections either as a result of overlay of rules or inter rule group usage indicates role matching criteria for a connection following the rules.\r
+                For example if two port roles, 'a' and 'b', are listed and the port role rule is 'different', this means that a connection connecting points in that group must have port roles that are different for each CEP in that group.\r
+                In the example if a connection can have n ports of role 'a' and m ports of role 'b' then a maximum of two ports can be drawn from the NEPs of the group and where there are two, one must be role 'a' and one must be role 'b'.";\r
+        }\r
+        description "Constrains which port roles the rule applies to.";\r
+    }\r
+    typedef port-role-rule-option {\r
+        type identityref {\r
+            base PORT_ROLE_RULE_OPTION;\r
+        }\r
+        description "Indicates how to interpret the port role list.";\r
+    }\r
+    grouping signal-property-rule {\r
+        leaf signal-property-name {\r
+            type string;\r
+            config false;\r
+            description "The name of the signal property to which the rule applies.";\r
+        }\r
+        leaf signal-property-value-rule {\r
+            type signal-property-value-rule;\r
+            config false;\r
+            description "Indicates how the signal properties should be accounted for.";\r
+        }\r
+        leaf-list applicable-signal-value {\r
+            type string;\r
+            config false;\r
+            description "Specific values of the signal property to which the rule applies.";\r
+        }\r
+        leaf number-of-signal-values {\r
+            type uint64;\r
+            config false;\r
+            description "The number of instances of this specific property that can be supported by the group.";\r
+        }\r
+        description "Rule related to an identified signal property.";\r
+    }\r
+    typedef signal-property-value-rule {\r
+        type identityref {\r
+            base SIGNAL_PROPERTY_VALUE_RULE;\r
+        }\r
+        description "Indicates how to interpret the signal property value rule.";\r
+    }\r
+\r
+    /**************************\r
+    * package interfaces\r
+    **************************/ \r
+    rpc get-topology-details {\r
+        description "none";\r
+        input {\r
+            leaf topology-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container topology {\r
+                uses topology;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-node-details {\r
+        description "none";\r
+        input {\r
+            leaf topology-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf node-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container node {\r
+                uses node;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-node-edge-point-details {\r
+        description "none";\r
+        input {\r
+            leaf topology-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf node-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf ep-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container node-edge-point {\r
+                uses node-edge-point;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-link-details {\r
+        description "none";\r
+        input {\r
+            leaf topology-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+            leaf link-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container link {\r
+                uses link;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-topology-list {\r
+        description "none";\r
+        output {\r
+            list topology {\r
+                key 'uuid';\r
+                uses topology;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+\r
+}\r
diff --git a/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-virtual-network@2020-06-16.yang b/ntsimulator/deploy/smo-nts-ng-topology-server/yang/tapi-virtual-network@2020-06-16.yang
new file mode 100644 (file)
index 0000000..978b05c
--- /dev/null
@@ -0,0 +1,289 @@
+module tapi-virtual-network {\r
+    namespace "urn:onf:otcc:yang:tapi-virtual-network";\r
+    prefix tapi-virtual-network;\r
+    import tapi-topology {\r
+        prefix tapi-topology;\r
+    }\r
+    import tapi-common {\r
+        prefix tapi-common;\r
+    }\r
+    organization "ONF OTCC (Open Transport Configuration & Control) Project";\r
+    contact "\r
+         Project Web: <https://wiki.opennetworking.org/display/OTCC/TAPI>\r
+         Project List: <mailto:transport-api@opennetworking.org>\r
+         Editor: Karthik Sethuraman <mailto:karthik.sethuraman@necam.com>\r
+         Andrea Mazzini <mailto:andrea.mazzini@nokia.com>\r
+         Arturo Mayoral <mailto:arturo.mayoral@telefonica.com>\r
+         Nigel Davis <mailto:ndavis@ciena.com>";\r
+    description "\r
+        This module contains TAPI Virtual Network Model definitions.\r
+        Source: TapiVirtualNetwork.uml\r
+        - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.\r
+        - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]\r
+        <https://github.com/OpenNetworkingFoundation/EagleUmlYang>\r
+        and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]\r
+        <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>\r
+        - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.\r
+        As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.\r
+        - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.\r
+        The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.\r
+        YANG models included in this release may not be backward compatible with previous TAPI releases.\r
+        Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.\r
+        License: This module is distributed under the Apache License 2.0.";\r
+    revision 2020-06-16 {\r
+        description "ONF Transport API version 2.1.3.\r
+                   - schedule type changed to tapi-common:time-range.\r
+                   Changes included in this TAPI release (v2.1.3) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.3.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2019-07-16 {\r
+        description "ONF Transport API version 2.1.2.\r
+                   Changes included in this TAPI release (v2.1.2) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop_v2_1/CHANGE_LOG/change-log.2.1.2.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-12-10 {\r
+        description "ONF Transport API version 2.1.1.\r
+                   Changes included in this TAPI release (v2.1.1) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-10-16 {\r
+        description "ONF Transport API version 2.1.0.\r
+                   Changes included in this TAPI release (v2.1.0) are listed in\r
+                   <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";\r
+    }\r
+    revision 2018-03-07 {\r
+        description "ONF Transport API version 2.0.2\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";\r
+    }\r
+    revision 2018-02-16 {\r
+        description "ONF Transport API version 2.0.1\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";\r
+    }\r
+    revision 2018-01-02 {\r
+        description "ONF Transport API version 2.0.0\r
+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.\r
+        Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";\r
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model\r
+                  <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";\r
+    }\r
+    augment "/tapi-common:context" {\r
+        container virtual-network-context {\r
+            uses virtual-network-context;\r
+            description "Augments the base TAPI Context with VirtualNetworkService information";\r
+        }\r
+        description "Augments the base TAPI Context with VirtualNetworkService information";\r
+    }\r
+   /**************************\r
+    * definitions of references\r
+    **************************/\r
+    grouping virtual-nw-service-ref {\r
+        leaf virtual-nw-service-uuid {\r
+            type leafref {\r
+                path '/tapi-common:context/tapi-virtual-network:virtual-network-context/tapi-virtual-network:virtual-nw-service/tapi-virtual-network:uuid';\r
+            }\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+   /**************************\r
+    * package object-classes\r
+    **************************/ \r
+    grouping virtual-network-constraint {\r
+        container src-service-end-point {\r
+            uses tapi-common:service-interface-point-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        container sink-service-end-point {\r
+            uses tapi-common:service-interface-point-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        list diversity-exclusion {\r
+            uses virtual-nw-service-ref;\r
+            key 'virtual-nw-service-uuid';\r
+            config false;\r
+            description "none";\r
+        }\r
+        container requested-capacity {\r
+            uses tapi-common:capacity;\r
+            description "none";\r
+        }\r
+        leaf service-level {\r
+            type string;\r
+            description "An abstract value the meaning of which is mutually agreed – typically represents metrics such as - Class of service, priority, resiliency, availability";\r
+        }\r
+        leaf-list service-layer {\r
+            type tapi-common:layer-protocol-name;\r
+            description "none";\r
+        }\r
+        list cost-characteristic {\r
+            key 'cost-name';\r
+            uses tapi-topology:cost-characteristic;\r
+            description "The list of costs where each cost relates to some aspect of the TopologicalEntity.";\r
+        }\r
+        list latency-characteristic {\r
+            key 'traffic-property-name';\r
+            uses tapi-topology:latency-characteristic;\r
+            description "The effect on the latency of a queuing process. This only has significant effect for packet based systems and has a complex characteristic.";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "none";\r
+    }\r
+    grouping virtual-network-service {\r
+        container topology {\r
+            uses tapi-topology:topology-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        list end-point {\r
+            key 'local-id';\r
+            min-elements 2;\r
+            uses virtual-network-service-end-point;\r
+            description "none";\r
+        }\r
+        list vnw-constraint {\r
+            key 'local-id';\r
+            min-elements 1;\r
+            uses virtual-network-constraint;\r
+            description "none";\r
+        }\r
+        container schedule {\r
+            uses tapi-common:time-range;\r
+            description "none";\r
+        }\r
+        container state {\r
+            uses tapi-common:admin-state-pac;\r
+            description "none";\r
+        }\r
+        leaf-list layer-protocol-name {\r
+            type tapi-common:layer-protocol-name;\r
+            min-elements 1;\r
+            description "none";\r
+        }\r
+        uses tapi-common:service-spec;\r
+        description "The ForwardingConstruct (FC) object class models enabled potential for forwarding between two or more LTPs and like the LTP supports any transport protocol including all circuit and packet forms.\r
+            At the lowest level of recursion, a FC represents a cross-connection within an NE.";\r
+    }\r
+    grouping virtual-network-service-end-point {\r
+        container service-interface-point {\r
+            uses tapi-common:service-interface-point-ref;\r
+            config false;\r
+            description "none";\r
+        }\r
+        leaf role {\r
+            type tapi-common:port-role;\r
+            config false;\r
+            description "Each EP of the FC has a role (e.g., working, protection, protected, symmetric, hub, spoke, leaf, root)  in the context of the FC with respect to the FC function. ";\r
+        }\r
+        leaf direction {\r
+            type tapi-common:port-direction;\r
+            config false;\r
+            description "The orientation of defined flow at the EndPoint.";\r
+        }\r
+        leaf service-layer {\r
+            type tapi-common:layer-protocol-name;\r
+            config false;\r
+            description "none";\r
+        }\r
+        uses tapi-common:local-class;\r
+        description "The association of the FC to LTPs is made via EndPoints.\r
+            The EndPoint (EP) object class models the access to the FC function. \r
+            The traffic forwarding between the associated EPs of the FC depends upon the type of FC and may be associated with FcSwitch object instances.  \r
+            In cases where there is resilience the EndPoint may convey the resilience role of the access to the FC. \r
+            It can represent a protected (resilient/reliable) point or a protecting (unreliable working or protection) point.\r
+            The EP replaces the Protection Unit of a traditional protection model. \r
+            The ForwadingConstruct can be considered as a component and the EndPoint as a Port on that component";\r
+    }\r
+    grouping virtual-network-context {\r
+        list virtual-nw-service {\r
+            key 'uuid';\r
+            uses virtual-network-service;\r
+            description "none";\r
+        }\r
+        description "none";\r
+    }\r
+\r
+    /**************************\r
+    * package interfaces\r
+    **************************/ \r
+    rpc create-virtual-network-service {\r
+        description "none";\r
+        input {\r
+            list sep {\r
+                min-elements 2;\r
+                uses virtual-network-service-end-point;\r
+                description "none";\r
+            }\r
+            container vnw-constraint {\r
+                uses virtual-network-constraint;\r
+                description "none";\r
+            }\r
+            container conn-schedule {\r
+                uses tapi-common:time-range;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses virtual-network-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc delete-virtual-network-service {\r
+        description "none";\r
+        input {\r
+            leaf service-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses virtual-network-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-virtual-network-service-details {\r
+        description "none";\r
+        input {\r
+            leaf service-id-or-name {\r
+                type string;\r
+                description "none";\r
+            }\r
+        }\r
+        output {\r
+            container service {\r
+                uses virtual-network-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+    rpc get-virtual-network-service-list {\r
+        description "none";\r
+        output {\r
+            list service {\r
+                uses virtual-network-service;\r
+                description "none";\r
+            }\r
+        }\r
+    }\r
+\r
+}\r