Updated the yang for optical-service
[sdnc/northbound.git] / optical-service / model / src / main / yang / optical-service.yang
index 911bd48..720b83b 100644 (file)
@@ -43,50 +43,20 @@ module opticalservice {
 
         container payload {
 
-            leaf domain-type {
-                type string;
-            }
-
-            leaf service-name {
-                type string;
-            }
-
-            leaf service-rate {
-                type string;
-            }
-            leaf service-protocol {
-                type string;
-            }
-
-            leaf coding-func {
-                type string;
-            }
-
-            container service-a-end {
-                uses service-end-g;
-            }
-
-            container service-z-end {
-                uses service-end-g;
-            }
-
-            leaf service-layer {
-                type string;
+            list param {
+               
+                key "name";                
+                leaf name {
+                    type string;
+                }
+                
+                leaf value {
+                    type string;
+                }
             }
         }
     }
 
-    grouping service-end-g {
-
-        leaf port-id {
-            type string;
-        }
-
-        leaf port-name {
-            type string;
-        }
-    }
-
     grouping request-source-g {
 
         leaf request-id {
@@ -111,17 +81,24 @@ module opticalservice {
         leaf ack-final-indicator {
             type string;
         }
-
     }
 
     grouping optical-service-delete-request {
-       
+
         uses request-source-g;
 
         container payload {
 
-            leaf service-name {
-                type string;
+            list param {
+
+                key "name";
+                leaf name {
+                    type string;
+                }
+
+                leaf value {
+                    type string;
+                }
             }
         }
     }