Remove DOMDataTreeProducer-related classes
[controller.git] / opendaylight / md-sal / messagebus-api / src / main / yang / event-source.yang
index 5dd416cde61e89cc3bb200e327d09f8cd19ba2db..c90b26696b543a8b1a2e85a6f55c2a5aa7fcb07c 100644 (file)
@@ -24,7 +24,9 @@ module event-source {
         http://www.eclipse.org/legal/epl-v10.html";
 
     revision "2014-12-02" {
-        description "first revision";
+        description "first revision
+            + add rpc dis-join-topic
+            + add notification event-source-status-notification";
     }
 
     // FIXME: expand this
@@ -43,6 +45,18 @@ module event-source {
         }
     }
 
+    typedef event-source-status {
+        type enumeration {
+            enum active;
+            enum inactive;
+            enum deactive;
+        }
+        description "Status of event source
+                       - active: event source is publishing notification,
+                       - inactive: event source stopped publishing of notifications temporarily
+                       - deactive: event source stopped publishing of notifications permanently" ;
+    }
+
     grouping topology-event-source-type {
         container topology-event-source {
             presence "indicates an event source-aware topology";
@@ -72,6 +86,34 @@ module event-source {
         }
     }
 
+    rpc dis-join-topic {
+        input {
+            leaf node {
+               ext:context-reference "inv:node-context";
+               type "instance-identifier";
+            }
+            leaf topic-id {
+                type aggr:topic-id;
+                mandatory true;
+                description "identifier of topic to be disjoin";
+            }
+        }
+
+    }
+
+    notification event-source-status-notification {
+
+        description
+            "Notification of change event source status.";
+
+        leaf status {
+            type event-source-status;
+            mandatory true;
+            description "Current status of event source.";
+        }
+
+    }
+
     augment "/nt:network-topology/nt:topology/nt:topology-types" {
         uses topology-event-source-type;
     }