Upgrade to odlparent 2.0.2
[controller.git] / opendaylight / config / threadpool-config-impl / src / main / yang / threadpool-impl.yang
index b454d94c271fbae28b25bd2b7a893d66ae507c34..8ae7d889321e1865f4237fc323f69af92c868703 100644 (file)
@@ -1,4 +1,3 @@
-// vi: set smarttab et sw=4 tabstop=4:
 module threadpool-impl {
     yang-version 1;
     namespace "urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl";
@@ -38,9 +37,11 @@ module threadpool-impl {
         base config:module-type;
         config:provided-service th:eventbus;
         config:java-name-prefix EventBus;
+        status deprecated;
     }
 
     augment "/config:modules/config:module/config:configuration" {
+        status deprecated;
         case eventbus {
             when "/config:modules/config:module/config:type = 'eventbus'";
             // No real configuration
@@ -48,6 +49,7 @@ module threadpool-impl {
     }
 
     augment "/config:modules/config:module/config:state" {
+        status deprecated;
         case eventbus {
             when "/config:modules/config:module/config:type = 'eventbus'";
             rpcx:rpc-context-instance "event-bus-rpc";
@@ -60,9 +62,11 @@ module threadpool-impl {
         base config:module-type;
         config:provided-service th:eventbus;
         config:java-name-prefix AsyncEventBus;
+        status deprecated;
     }
 
     augment "/config:modules/config:module/config:configuration" {
+        status deprecated;
         case async-eventbus {
             when "/config:modules/config:module/config:type = 'async-eventbus'";
             container threadpool {
@@ -77,6 +81,7 @@ module threadpool-impl {
     }
 
     augment "/config:modules/config:module/config:state" {
+        status deprecated;
         case async-eventbus {
             when "/config:modules/config:module/config:type = 'async-eventbus'";
             rpcx:rpc-context-instance "event-bus-rpc";
@@ -113,83 +118,5 @@ module threadpool-impl {
             }
         }
     }
-
-    identity threadpool-fixed {
-        base config:module-type;
-        config:provided-service th:threadpool;
-        config:java-name-prefix FixedThreadPool;
-    }
-
-    augment "/config:modules/config:module/config:configuration" {
-        case threadpool-fixed {
-            when "/config:modules/config:module/config:type = 'threadpool-fixed'";
-            leaf max-thread-count {
-                type uint16;
-            }
-
-            container threadFactory {
-                uses config:service-ref {
-                    refine type {
-                        //mandatory true;
-                        config:required-identity th:threadfactory;
-                    }
-                }
-            }
-        }
-    }
-
-    identity threadpool-flexible {
-        base config:module-type;
-        config:provided-service th:threadpool;
-        config:java-name-prefix FlexibleThreadPool;
-    }
-
-    augment "/config:modules/config:module/config:configuration" {
-        case threadpool-flexible {
-            when "/config:modules/config:module/config:type = 'threadpool-flexible'";
-            leaf max-thread-count {
-                type uint16;
-            }
-            leaf minThreadCount {
-                type uint16;
-            }
-            leaf keepAliveMillis {
-                type uint32;
-            }
-
-            container threadFactory {
-                uses config:service-ref {
-                    refine type {
-                       // mandatory true;
-                        config:required-identity th:threadfactory;
-                    }
-                }
-            }
-        }
-    }
-
-    identity threadpool-scheduled {
-        base config:module-type;
-        config:provided-service th:scheduled-threadpool;
-        config:java-name-prefix ScheduledThreadPool;
-    }
-
-    augment "/config:modules/config:module/config:configuration" {
-        case threadpool-scheduled {
-            when "/config:modules/config:module/config:type = 'threadpool-scheduled'";
-            leaf max-thread-count {
-                type uint16;
-            }
-
-            container threadFactory {
-                uses config:service-ref {
-                    refine type {
-                     //   mandatory true;
-                        config:required-identity th:threadfactory;
-                    }
-                }
-            }
-        }
-    }
 }