[ODTN]Fix indentation for Yang files

It is change only in appearance.

Change-Id: I09cbf6d3a47b2d6f1ea8c2504f0a1cbde7ce126f
diff --git a/models/tapi/src/main/yang/tapi-oam@2018-10-16.yang b/models/tapi/src/main/yang/tapi-oam@2018-10-16.yang
old mode 100644
new mode 100755
index 467779e..143b790
--- a/models/tapi/src/main/yang/tapi-oam@2018-10-16.yang
+++ b/models/tapi/src/main/yang/tapi-oam@2018-10-16.yang
@@ -35,28 +35,28 @@
             YANG models included in this release are not backward compatible with previous TAPI releases.

           - Changes included in this TAPI release (v2.1.0) are listed in

             <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";

-        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model

                   <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";

     }

     revision 2018-03-07 {

-        description "ONF Transport API version 2.0.2
-        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
+        description "ONF Transport API version 2.0.2

+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.

         Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";

-        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model

                   <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";

     }

     revision 2018-02-16 {

-        description "ONF Transport API version 2.0.1
-        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
+        description "ONF Transport API version 2.0.1

+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.

         Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";

-        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model

                   <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";

     }

     revision 2018-01-02 {

-        description "ONF Transport API version 2.0.0
-        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
+        description "ONF Transport API version 2.0.0

+        This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.

         Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";

-        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
+        reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model

                   <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";

     }

     augment "/tapi-common:context" {

@@ -67,16 +67,16 @@
         description "Augments the base TAPI Context with OamService information";

     }

     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" {

-    	container mep-mip-list {

+        container mep-mip-list {

             uses mep-mip-list;

             description "none";

         }

         description "none";

     }

-    

-    /*************************

+

+   /**************************

     * definitions of references

-    *************************/

+    **************************/

     grouping oam-service-ref {

         leaf oam-service-uuid {

             type leafref {

@@ -86,18 +86,16 @@
         }

         description "none";

     }

-

     grouping oam-service-end-point-ref {

-    	uses oam-service-ref;

-    	leaf oam-service-end-point-local-id {

-	    	type leafref {

-	            path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-service/tapi-oam:end-point/tapi-oam:local-id';

-	        }

-	    	description "none";

-    	}

-    	description "none";

+        uses oam-service-ref;

+        leaf oam-service-end-point-local-id {

+            type leafref {

+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-service/tapi-oam:end-point/tapi-oam:local-id';

+            }

+            description "none";

+        }

+        description "none";

     }

-    

     grouping meg-ref {

         leaf meg-uuid {

             type leafref {

@@ -107,40 +105,36 @@
         }

         description "none";

     }

-    

     grouping maintenance-entity-ref {

-    	uses meg-ref;

-    	leaf maintenance-entity-local-id {

-	    	type leafref {

-	            path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:me/tapi-oam:local-id';

-	        }

-	    	description "none";

-    	}

-    	description "none";

+        uses meg-ref;

+        leaf maintenance-entity-local-id {

+            type leafref {

+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:me/tapi-oam:local-id';

+            }

+            description "none";

+        }

+        description "none";

     }

-    

     grouping mep-ref {

-    	uses meg-ref;

-    	leaf mep-local-id {

-	    	type leafref {

-	            path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep/tapi-oam:local-id';

-	        }

-	    	description "none";

-    	}

-    	description "none";

+        uses meg-ref;

+        leaf mep-local-id {

+            type leafref {

+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep/tapi-oam:local-id';

+            }

+            description "none";

+        }

+        description "none";

     }

-    

     grouping mip-ref {

-    	uses meg-ref;

-    	leaf mip-local-id {

-	    	type leafref {

-	            path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mip/tapi-oam:local-id';

-	        }

-	    	description "none";

-    	}

-    	description "none";

+        uses meg-ref;

+        leaf mip-local-id {

+            type leafref {

+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mip/tapi-oam:local-id';

+            }

+            description "none";

+        }

+        description "none";

     }

-    

     grouping oam-job-ref {

         leaf oam-job-uuid {

             type leafref {

@@ -150,29 +144,26 @@
         }

         description "none";

     }

-    

     grouping pm-current-data-ref {

-    	uses oam-job-ref;

-    	leaf pm-current-data-local-id {

-	    	type leafref {

-	            path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:local-id';

-	        }

-	    	description "none";

-    	}

-    	description "none";

+        uses oam-job-ref;

+        leaf pm-current-data-local-id {

+            type leafref {

+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:local-id';

+            }

+            description "none";

+        }

+        description "none";

     }

-    

     grouping pm-history-data-ref {

-    	uses pm-current-data-ref;

-    	leaf pm-history-data-local-id {

-	    	type leafref {

-	            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';

-	        }

-	    	description "none";

-    	}

-    	description "none";

+        uses pm-current-data-ref;

+        leaf pm-history-data-local-id {

+            type leafref {

+                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';

+            }

+            description "none";

+        }

+        description "none";

     }

-    

     grouping oam-profile-ref {

         leaf oam-profile-uuid {

             type leafref {

@@ -182,649 +173,646 @@
         }

         description "none";

     }

-    

     grouping pm-threshold-data-ref {

-    	uses oam-profile-ref;

-    	leaf pm-threshold-data-local-id {

-	    	type leafref {

-	            path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data/tapi-oam:local-id';

-	        }

-	    	description "none";

-    	}

-    	description "none";

+        uses oam-profile-ref;

+        leaf pm-threshold-data-local-id {

+            type leafref {

+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data/tapi-oam:local-id';

+            }

+            description "none";

+        }

+        description "none";

     }

-    

     grouping pm-bin-data-ref {

-    	uses oam-profile-ref;

-    	leaf pm-bin-data-local-id {

-	    	type leafref {

-	            path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-bin-data/tapi-oam:local-id';

-	        }

-	    	description "none";

-    	}

-    	description "none";

+        uses oam-profile-ref;

+        leaf pm-bin-data-local-id {

+            type leafref {

+                path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-bin-data/tapi-oam:local-id';

+            }

+            description "none";

+        }

+        description "none";

     }

-    

-    /***********************

+

+   /**************************

     * package object-classes

-    **********************/ 

-        grouping mep {

-            leaf layer-protocol-name {

-                type tapi-common:layer-protocol-name;

-                config false;

-                description "none";

-            }

-            leaf direction {

-                type tapi-common:termination-direction;

-                config false;

-                description "none";

-            }

-            leaf mep-identifier {

-                type string;

-                config false;

-                description "none";

-            }

-            leaf-list peer-mep-identifier {

-                type string;

-                config false;

-                min-elements 1;

-                description "none";

-            }

-            uses tapi-common:local-class;

-            uses tapi-common:operational-state-pac;

+    **************************/

+    grouping mep {

+        leaf layer-protocol-name {

+            type tapi-common:layer-protocol-name;

+            config false;

             description "none";

         }

-        grouping oam-job {

-            list oam-service-end-point {

-            	uses oam-service-end-point-ref;

-            	key 'oam-service-uuid oam-service-end-point-local-id';

-            	min-elements 1;

-                description "none";

-            }

-            container oam-profile {

-                uses oam-profile-ref;

-                description "none";

-            }

-            list pm-current-data {

-                key 'local-id';

-                config false;

-                uses pm-current-data;

-                description "Granularity period of the CurrentData identifies the specific CurrentData instance in the scope of this OamJob.

-                    For example, typically at least

-                    one 15min and

-                    one 24hr;

-                    optionally one additional configurable (< 15min)";

-            }

-            leaf oam-job-type {

-                type oam-job-type;

-                description "none";

-            }

-            container schedule {

-                uses tapi-common:time-range;

-                description "none";

-            }

-            leaf creation-time {

-                type tapi-common:date-and-time;

-                config false;

-                description "none";

-            }

-            uses tapi-common:global-class;

-            uses tapi-common:admin-state-pac;

+        leaf direction {

+            type tapi-common:termination-direction;

+            config false;

             description "none";

         }

-        grouping meg {

-            list mep {

-                key 'local-id';

-                config false;

-                uses mep;

-                description "1. ME may have 0 MEPs (case of transit domains where at least 1 MIP is present)

-                    2. ME may have 1 MEP (case of edge domaind, where the peer MEP is ouside the managed domain)

-                    3. ME may have 2 MEPs";

-            }

-            list mip {

-                key 'local-id';

-                config false;

-                uses mip;

-                description "ME may 0, 1, or more MIPs";

-            }

-            leaf layer-protocol-name {

-                type tapi-common:layer-protocol-name;

-                config false;

-                description "none";

-            }

-            leaf direction {

-                type tapi-common:forwarding-direction;

-                config false;

-                description "none";

-            }

-            leaf meg-level {

-                type uint64;

-                config false;

-                description "none";

-            }

-            leaf meg-identifier {

-                type string;

-                config false;

-                description "none";

-            }

-            uses tapi-common:resource-spec;

-            uses tapi-common:operational-state-pac;

+        leaf mep-identifier {

+            type string;

+            config false;

             description "none";

         }

-        grouping mip {

-            leaf layer-protocol-name {

-                type tapi-common:layer-protocol-name;

-                config false;

-                description "none";

-            }

-            uses tapi-common:local-class;

+        leaf-list peer-mep-identifier {

+            type string;

+            config false;

+            min-elements 1;

             description "none";

         }

-        grouping oam-service {

+        uses tapi-common:local-class;

+        uses tapi-common:operational-state-pac;

+        description "none";

+    }

+    grouping oam-job {

+        list oam-service-end-point {

+            uses oam-service-end-point-ref;

+            key 'oam-service-uuid oam-service-end-point-local-id';

+            min-elements 1;

+            description "none";

+        }

+        container oam-profile {

+            uses oam-profile-ref;

+            description "none";

+        }

+        list pm-current-data {

+            key 'local-id';

+            config false;

+            uses pm-current-data;

+            description "Granularity period of the CurrentData identifies the specific CurrentData instance in the scope of this OamJob.

+                For example, typically at least

+                one 15min and

+                one 24hr;

+                optionally one additional configurable (< 15min)";

+        }

+        leaf oam-job-type {

+            type oam-job-type;

+            description "none";

+        }

+        container schedule {

+            uses tapi-common:time-range;

+            description "none";

+        }

+        leaf creation-time {

+            type tapi-common:date-and-time;

+            config false;

+            description "none";

+        }

+        uses tapi-common:global-class;

+        uses tapi-common:admin-state-pac;

+        description "none";

+    }

+    grouping meg {

+        list mep {

+            key 'local-id';

+            config false;

+            uses mep;

+            description "1. ME may have 0 MEPs (case of transit domains where at least 1 MIP is present)

+                2. ME may have 1 MEP (case of edge domaind, where the peer MEP is ouside the managed domain)

+                3. ME may have 2 MEPs";

+        }

+        list mip {

+            key 'local-id';

+            config false;

+            uses mip;

+            description "ME may 0, 1, or more MIPs";

+        }

+        leaf layer-protocol-name {

+            type tapi-common:layer-protocol-name;

+            config false;

+            description "none";

+        }

+        leaf direction {

+            type tapi-common:forwarding-direction;

+            config false;

+            description "none";

+        }

+        leaf meg-level {

+            type uint64;

+            config false;

+            description "none";

+        }

+        leaf meg-identifier {

+            type string;

+            config false;

+            description "none";

+        }

+        uses tapi-common:resource-spec;

+        uses tapi-common:operational-state-pac;

+        description "none";

+    }

+    grouping mip {

+        leaf layer-protocol-name {

+            type tapi-common:layer-protocol-name;

+            config false;

+            description "none";

+        }

+        uses tapi-common:local-class;

+        description "none";

+    }

+    grouping oam-service {

+        list end-point {

+            key 'local-id';

+            min-elements 2;

+            uses oam-service-end-point;

+            description "none";

+        }

+        container meg {

+            uses meg-ref;

+            config false;

+            description "none";

+        }

+        container oam-profile {

+            uses oam-profile-ref;

+            description "none";

+        }

+        uses tapi-common:service-spec;

+        uses tapi-common:admin-state-pac;

+        uses oam-constraint;

+        description "none";

+    }

+    grouping oam-context {

+        list oam-service {

+            key 'uuid';

+            uses oam-service;

+            description "none";

+        }

+        list meg {

+            key 'uuid';

+            config false;

+            uses meg;

+            description "none";

+        }

+        list oam-job {

+            key 'uuid';

+            uses oam-job;

+            description "none";

+        }

+        list oam-profile {

+            key 'uuid';

+            uses oam-profile;

+            description "none";

+        }

+        description "none";

+    }

+    grouping oam-service-end-point {

+        container service-interface-point {

+            uses tapi-common:service-interface-point-ref;

+            description "none";

+        }

+        container connectivity-service-end-point {

+            uses tapi-connectivity:connectivity-service-end-point-ref;

+            description "none";

+        }

+        container mep {

+            uses mep-ref;

+            config false;

+            description "none";

+        }

+        container mip {

+            uses mip-ref;

+            config false;

+            description "none";

+        }

+        leaf layer-protocol-name {

+            type tapi-common:layer-protocol-name;

+            description "none";

+        }

+        leaf direction {

+            type tapi-common:port-direction;

+            description "none";

+        }

+        leaf mep-identifier {

+            type string;

+            description "This attribute contains the identifier of the MEP.

+                This attribute is empty in case the OSEP relates to the provisioing of an MIP.

+                ";

+        }

+        leaf-list peer-mep-identifier {

+            type string;

+            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.

+                This attribute is not specified in case the OSEP relates to the provisioing of an MIP.

+                In case of P2P, there is only one peer";

+        }

+        uses tapi-common:local-class;

+        uses tapi-common:admin-state-pac;

+        description "none";

+    }

+    grouping mep-mip-list {

+        list mip {

+            uses mip-ref;

+            key 'meg-uuid mip-local-id';

+            description "none";

+        }

+        list mep {

+            uses mep-ref;

+            key 'meg-uuid mep-local-id';

+            description "none";

+        }

+        description "none";

+    }

+    grouping oam-constraint {

+        leaf layer-protocol-name {

+            type tapi-common:layer-protocol-name;

+            description "none";

+        }

+        leaf direction {

+            type tapi-common:forwarding-direction;

+            description "none";

+        }

+        leaf meg-level {

+            type uint64;

+            description "none";

+        }

+        description "none";

+    }

+    grouping pm-current-data {

+        list pm-history-data {

+            key 'local-id';

+            config false;

+            uses pm-history-data;

+            description "in case of 24hr Current Data, at least 1 History Data.

+                In case of 15min Current Data, at least 16 History Data.

+                In case of <15min, the number of History Data shall be able to cover a span of 4 hours.";

+        }

+        container granularity-period {

+            uses tapi-common:time-period;

+            description "none";

+        }

+        leaf timestamp {

+            type tapi-common:date-and-time;

+            config false;

+            description "This attribute indicates the start of the current monitoring interval.

+                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.";

+        }

+        container elapsed-time {

+            uses tapi-common:time-interval;

+            description "none";

+        }

+        leaf suspect-interval-flag {

+            type boolean;

+            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:

+                – Suspect data were detected by the actual resource doing data collection.

+                – Transition of the administrativeState attribute to/from the 'lock' state.

+                – Transition of the operationalState to/from the 'disabled' state.

+                – Scheduler setting that inhibits the collection function.

+                – The performance counters were reset during the interval.

+                – The currentData (or subclass) object instance was created during the monitoring period.";

+        }

+        uses tapi-common:local-class;

+        description "none";

+    }

+    grouping pm-history-data {

+        container granularity-period {

+            uses tapi-common:time-period;

+            description "none";

+        }

+        leaf period-end-time {

+            type tapi-common:date-and-time;

+            description "none";

+        }

+        leaf suspect-interval-flag {

+            type boolean;

+            config false;

+            description "This attribute indicates that the performance data may not be reliable.";

+        }

+        uses tapi-common:local-class;

+        description "none";

+    }

+    grouping oam-profile {

+        list pm-threshold-data {

+            key 'local-id';

+            min-elements 1;

+            uses pm-threshold-data;

+            description "none";

+        }

+        list pm-bin-data {

+            key 'local-id';

+            min-elements 1;

+            uses pm-bin-data;

+            description "none";

+        }

+        uses tapi-common:global-class;

+        description "none";

+    }

+    grouping pm-threshold-data {

+        container granularity-period {

+            uses tapi-common:time-period;

+            description "none";

+        }

+        leaf is-transient {

+            type boolean;

+            description "none";

+        }

+        uses tapi-common:local-class;

+        description "none";

+    }

+    grouping pm-bin-data {

+        container granularity-period {

+            uses tapi-common:time-period;

+            description "none";

+        }

+        uses tapi-common:local-class;

+        description "none";

+    }

+

+   /**************************

+    * package type-definitions

+    **************************/

+    identity OAM_JOB_TYPE {

+        description "none";

+    }

+    typedef oam-job-type {

+        type identityref {

+            base OAM_JOB_TYPE;

+        }

+        description "none";

+    }

+

+   /**************************

+    * package interfaces

+    **************************/

+    rpc create-oam-service {

+        description "none";

+        input {

             list end-point {

                 key 'local-id';

                 min-elements 2;

                 uses oam-service-end-point;

                 description "none";

             }

-            container meg {

-                uses meg-ref;

-                config false;

+            container oam-constraint {

+                uses oam-constraint;

+                description "none";

+            }

+            leaf state {

+                type string;

+                description "none";

+            }

+        }

+        output {

+            container service {

+                uses oam-service;

+                description "none";

+            }

+        }

+    }

+    rpc delete-oam-service {

+        description "none";

+        input {

+            leaf service-id {

+                type string;

+                description "none";

+            }

+        }

+    }

+    rpc get-oam-service {

+        description "none";

+        input {

+            leaf service-id {

+                type string;

+                description "none";

+            }

+        }

+        output {

+            container service {

+                uses oam-service;

+                description "none";

+            }

+        }

+    }

+    rpc create-oam-job {

+        description "none";

+        input {

+            leaf oam-job-type {

+                type oam-job-type;

+                description "none";

+            }

+            list oam-service-end-point {

+                key 'local-id';

+                min-elements 2;

+                uses oam-service-end-point;

                 description "none";

             }

             container oam-profile {

-                uses oam-profile-ref;

+                uses oam-profile;

                 description "none";

             }

-            uses tapi-common:service-spec;

-            uses tapi-common:admin-state-pac;

-            uses oam-constraint;

-            description "none";

+            leaf state {

+                type string;

+                description "none";

+            }

+            leaf schedule {

+                type string;

+                description "none";

+            }

         }

-        grouping oam-context {

-            list oam-service {

+        output {

+            container oam-job {

+                uses oam-job;

+                description "none";

+            }

+        }

+    }

+    rpc get-oam-job {

+        description "none";

+        input {

+            leaf job-id {

+                type string;

+                description "none";

+            }

+        }

+        output {

+            container oam-job {

+                uses oam-job;

+                description "none";

+            }

+        }

+    }

+    rpc get-oam-service-list {

+        description "none";

+        output {

+            list service {

                 key 'uuid';

                 uses oam-service;

                 description "none";

             }

-            list meg {

-                key 'uuid';

-                config false;

+        }

+    }

+    rpc get-meg {

+        description "none";

+        input {

+            leaf service-id {

+                type string;

+                description "none";

+            }

+        }

+        output {

+            container meg {

                 uses meg;

                 description "none";

             }

-            list oam-job {

-                key 'uuid';

-                uses oam-job;

+        }

+    }

+    rpc update-oam-service {

+        description "none";

+        input {

+            leaf service-id {

+                type string;

                 description "none";

             }

-            list oam-profile {

-                key 'uuid';

+            list end-point {

+                key 'local-id';

+                uses oam-service-end-point;

+                description "none";

+            }

+            container oam-constraint {

+                uses oam-constraint;

+                description "none";

+            }

+            leaf state {

+                type string;

+                description "none";

+            }

+        }

+        output {

+            container service {

+                uses oam-service;

+                description "none";

+            }

+        }

+    }

+    rpc delete-oam-job {

+        description "none";

+        input {

+            leaf job-id {

+                type string;

+                description "none";

+            }

+        }

+    }

+    rpc update-oam-job {

+        description "none";

+        input {

+            leaf job-id {

+                type string;

+                description "none";

+            }

+            container oam-profile {

                 uses oam-profile;

                 description "none";

             }

-            description "none";

+            leaf state {

+                type string;

+                description "none";

+            }

+            leaf schedule {

+                type string;

+                description "none";

+            }

         }

-        grouping oam-service-end-point {

-            container service-interface-point {

-                uses tapi-common:service-interface-point-ref;

+        output {

+            container oam-job {

+                uses oam-job;

                 description "none";

             }

-            container connectivity-service-end-point {

-                uses tapi-connectivity:connectivity-service-end-point-ref;

+        }

+    }

+    rpc create-oam-service-end-point {

+        description "none";

+        input {

+            leaf service-id {

+                type string;

                 description "none";

             }

-            container mep {

-                uses mep-ref;

-                config false;

+            leaf sip-id {

+                type string;

                 description "none";

             }

-            container mip {

-                uses mip-ref;

-                config false;

+            leaf c-sep-id {

+                type string;

                 description "none";

             }

-            leaf layer-protocol-name {

-                type tapi-common:layer-protocol-name;

+            leaf layer {

+                type string;

                 description "none";

             }

             leaf direction {

-                type tapi-common:port-direction;

+                type string;

+                description "none";

+            }

+            leaf state {

+                type string;

                 description "none";

             }

             leaf mep-identifier {

                 type string;

-                description "This attribute contains the identifier of the MEP.

-                    This attribute is empty in case the OSEP relates to the provisioing of an MIP.

-                    ";

+                description "none";

             }

             leaf-list peer-mep-identifier {

                 type string;

-                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.

-                    This attribute is not specified in case the OSEP relates to the provisioing of an MIP.

-                    In case of P2P, there is only one peer";

-            }

-            uses tapi-common:local-class;

-            uses tapi-common:admin-state-pac;

-            description "none";

-        }

-        grouping mep-mip-list {

-            list mip {

-                uses mip-ref;

-                key 'meg-uuid mip-local-id';

                 description "none";

             }

-            list mep {

-                uses mep-ref;

-                key 'meg-uuid mep-local-id';

+        }

+        output {

+            container end-point {

+                uses oam-service-end-point;

                 description "none";

             }

-            description "none";

         }

-        grouping oam-constraint {

-            leaf layer-protocol-name {

-                type tapi-common:layer-protocol-name;

+    }

+    rpc delete-oam-service-end-point {

+        description "none";

+        input {

+            leaf service-id {

+                type string;

                 description "none";

             }

-            leaf direction {

-                type tapi-common:forwarding-direction;

+            leaf o-sep-id {

+                type string;

                 description "none";

             }

-            leaf meg-level {

-                type uint64;

+        }

+    }

+    rpc update-oam-service-end-point {

+        description "none";

+        input {

+            leaf service-id {

+                type string;

                 description "none";

             }

-            description "none";

-        }

-        grouping pm-current-data {

-            list pm-history-data {

-                key 'local-id';

-                config false;

-                uses pm-history-data;

-                description "in case of 24hr Current Data, at least 1 History Data.

-                    In case of 15min Current Data, at least 16 History Data.

-                    In case of <15min, the number of History Data shall be able to cover a span of 4 hours.";

-            }

-            container granularity-period {

-                uses tapi-common:time-period;

+            leaf o-sep-id {

+                type string;

                 description "none";

             }

-            leaf timestamp {

-                type tapi-common:date-and-time;

-                config false;

-                description "This attribute indicates the start of the current monitoring interval.

-                    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.";

-            }

-            container elapsed-time {

-                uses tapi-common:time-interval;

+            leaf state {

+                type string;

                 description "none";

             }

-            leaf suspect-interval-flag {

-                type boolean;

-                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:

-                    – Suspect data were detected by the actual resource doing data collection.

-                    – Transition of the administrativeState attribute to/from the 'lock' state.

-                    – Transition of the operationalState to/from the 'disabled' state.

-                    – Scheduler setting that inhibits the collection function.

-                    – The performance counters were reset during the interval.

-                    – The currentData (or subclass) object instance was created during the monitoring period.";

-            }

-            uses tapi-common:local-class;

-            description "none";

         }

-        grouping pm-history-data {

-            container granularity-period {

-                uses tapi-common:time-period;

+        output {

+            container end-point {

+                uses oam-service-end-point;

                 description "none";

             }

-            leaf period-end-time {

-                type tapi-common:date-and-time;

+        }

+    }

+    rpc get-oam-service-end-point {

+        description "none";

+        input {

+            leaf service-id {

+                type string;

                 description "none";

             }

-            leaf suspect-interval-flag {

-                type boolean;

-                config false;

-                description "This attribute indicates that the performance data may not be reliable.";

-            }

-            uses tapi-common:local-class;

-            description "none";

-        }

-        grouping oam-profile {

-            list pm-threshold-data {

-                key 'local-id';

-                min-elements 1;

-                uses pm-threshold-data;

+            leaf o-sep-id {

+                type string;

                 description "none";

             }

-            list pm-bin-data {

-                key 'local-id';

-                min-elements 1;

-                uses pm-bin-data;

+        }

+        output {

+            container end-point {

+                uses oam-service-end-point;

                 description "none";

             }

-            uses tapi-common:global-class;

-            description "none";

         }

-        grouping pm-threshold-data {

-            container granularity-period {

-                uses tapi-common:time-period;

-                description "none";

-            }

-            leaf is-transient {

-                type boolean;

-                description "none";

-            }

-            uses tapi-common:local-class;

-            description "none";

-        }

-        grouping pm-bin-data {

-            container granularity-period {

-                uses tapi-common:time-period;

-                description "none";

-            }

-            uses tapi-common:local-class;

-            description "none";

-        }

-

-    /***********************

-    * package type-definitions

-    **********************/ 

-        identity OAM_JOB_TYPE {

-            description "none";

-        }

-        typedef oam-job-type {

-            type identityref {

-                base OAM_JOB_TYPE;

-            }

-            description "none";

-        }

-

-    /***********************

-    * package interfaces

-    **********************/ 

-        rpc create-oam-service {

-            description "none";

-            input {

-                list end-point {

-                	key 'local-id';

-                    min-elements 2;

-                    uses oam-service-end-point;

-                    description "none";

-                }

-                container oam-constraint {

-                    uses oam-constraint;

-                    description "none";

-                }

-                leaf state {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container service {

-                    uses oam-service;

-                    description "none";

-                }

-            }

-        }

-        rpc delete-oam-service {

-            description "none";

-            input {

-                leaf service-id {

-                    type string;

-                    description "none";

-                }

-            }

-        }

-        rpc get-oam-service {

-            description "none";

-            input {

-                leaf service-id {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container service {

-                    uses oam-service;

-                    description "none";

-                }

-            }

-        }

-        rpc create-oam-job {

-            description "none";

-            input {

-                leaf oam-job-type {

-                    type oam-job-type;

-                    description "none";

-                }

-                list oam-service-end-point {

-                	key 'local-id';

-                    min-elements 2;

-                    uses oam-service-end-point;

-                    description "none";

-                }

-                container oam-profile {

-                    uses oam-profile;

-                    description "none";

-                }

-                leaf state {

-                    type string;

-                    description "none";

-                }

-                leaf schedule {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container oam-job {

-                    uses oam-job;

-                    description "none";

-                }

-            }

-        }

-        rpc get-oam-job {

-            description "none";

-            input {

-                leaf job-id {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container oam-job {

-                    uses oam-job;

-                    description "none";

-                }

-            }

-        }

-        rpc get-oam-service-list {

-            description "none";

-            output {

-                list service {

-                	key 'uuid';

-                    uses oam-service;

-                    description "none";

-                }

-            }

-        }

-        rpc get-meg {

-            description "none";

-            input {

-                leaf service-id {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container meg {

-                    uses meg;

-                    description "none";

-                }

-            }

-        }

-        rpc update-oam-service {

-            description "none";

-            input {

-                leaf service-id {

-                    type string;

-                    description "none";

-                }

-                list end-point {

-                	key 'local-id';

-                    uses oam-service-end-point;

-                    description "none";

-                }

-                container oam-constraint {

-                    uses oam-constraint;

-                    description "none";

-                }

-                leaf state {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container service {

-                    uses oam-service;

-                    description "none";

-                }

-            }

-        }

-        rpc delete-oam-job {

-            description "none";

-            input {

-                leaf job-id {

-                    type string;

-                    description "none";

-                }

-            }

-        }

-        rpc update-oam-job {

-            description "none";

-            input {

-                leaf job-id {

-                    type string;

-                    description "none";

-                }

-                container oam-profile {

-                    uses oam-profile;

-                    description "none";

-                }

-                leaf state {

-                    type string;

-                    description "none";

-                }

-                leaf schedule {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container oam-job {

-                    uses oam-job;

-                    description "none";

-                }

-            }

-        }

-        rpc create-oam-service-end-point {

-            description "none";

-            input {

-                leaf service-id {

-                    type string;

-                    description "none";

-                }

-                leaf sip-id {

-                    type string;

-                    description "none";

-                }

-                leaf c-sep-id {

-                    type string;

-                    description "none";

-                }

-                leaf layer {

-                    type string;

-                    description "none";

-                }

-                leaf direction {

-                    type string;

-                    description "none";

-                }

-                leaf state {

-                    type string;

-                    description "none";

-                }

-                leaf mep-identifier {

-                    type string;

-                    description "none";

-                }

-                leaf-list peer-mep-identifier {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container end-point {

-                    uses oam-service-end-point;

-                    description "none";

-                }

-            }

-        }

-        rpc delete-oam-service-end-point {

-            description "none";

-            input {

-                leaf service-id {

-                    type string;

-                    description "none";

-                }

-                leaf o-sep-id {

-                    type string;

-                    description "none";

-                }

-            }

-        }

-        rpc update-oam-service-end-point {

-            description "none";

-            input {

-                leaf service-id {

-                    type string;

-                    description "none";

-                }

-                leaf o-sep-id {

-                    type string;

-                    description "none";

-                }

-                leaf state {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container end-point {

-                    uses oam-service-end-point;

-                    description "none";

-                }

-            }

-        }

-        rpc get-oam-service-end-point {

-            description "none";

-            input {

-                leaf service-id {

-                    type string;

-                    description "none";

-                }

-                leaf o-sep-id {

-                    type string;

-                    description "none";

-                }

-            }

-            output {

-                container end-point {

-                    uses oam-service-end-point;

-                    description "none";

-                }

-            }

-        }

-

+    }

 }