BUG 3030 - reconnect netconf event source
[controller.git] / opendaylight / md-sal / messagebus-api / src / main / yang / event-source.yang
index 5dd416cde61e89cc3bb200e327d09f8cd19ba2db..c56243b3fa9e7067ea934d6bcf37a6d4dd94b21f 100644 (file)
@@ -43,6 +43,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 +84,19 @@ module event-source {
         }
     }
 
+    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;
     }