reformat api YANG models with pyang
[transportpce.git] / api / src / main / yang / transportpce-portmapping@2020-10-12.yang
index 92c1916d67264e1d48f790a504b017b9ad9098f1..99cad2572a54fb0a90829bba85d9952c9fecaf9a 100644 (file)
@@ -40,8 +40,8 @@ module transportpce-portmapping {
   }
   revision 2020-08-27 {
     description
-    "Add support to differentiate flexible and fixed
-     grid capabilities with mc-capabilities";
+      "Add support to differentiate flexible and fixed
+       grid capabilities with mc-capabilities";
   }
   revision 2020-04-29 {
     description
@@ -203,32 +203,32 @@ module transportpce-portmapping {
           type string;
           description
             "Hash value generated from node-id and lcp. This value will be used to map-
-            back SAPI and DAPI resource";
+             back SAPI and DAPI resource";
         }
       }
       list mc-capabilities {
-          key mc-node-name;
-          when "../node-info/node-type = 'rdm'";
+        when "../node-info/node-type = 'rdm'";
+        key "mc-node-name";
+        description
+          "Capabilities of the media channel associated with a degree or a SRG.";
+        leaf mc-node-name {
+          type string;
           description
-            "Capabilities of the media channel associated with a degree or a SRG.";
-          leaf mc-node-name {
-            type string;
-            description
-              "Name of the node, it has the format of DEGi-TTP or SRGj-PP
-              Where i, and j are the degree and SRG numbers respectively";
-          }
-          leaf slot-width-granularity {
-            type org-openroadm-common-optical-channel-types:frequency-GHz;
-            default "50";
-            description
-              "Width of a slot measured in GHz.";
-          }
-          leaf center-freq-granularity {
-            type org-openroadm-common-optical-channel-types:frequency-GHz;
-            default "50";
-            description
-              "Width of a slot measured in GHz.";
-          }
+            "Name of the node, it has the format of DEGi-TTP or SRGj-PP
+             Where i, and j are the degree and SRG numbers respectively";
+        }
+        leaf slot-width-granularity {
+          type org-openroadm-common-optical-channel-types:frequency-GHz;
+          default "50";
+          description
+            "Width of a slot measured in GHz.";
+        }
+        leaf center-freq-granularity {
+          type org-openroadm-common-optical-channel-types:frequency-GHz;
+          default "50";
+          description
+            "Width of a slot measured in GHz.";
+        }
       }
       list cp-to-degree {
         key "circuit-pack-name";