netconfcentral logo


  module notifications {

    yang-version 1;


    prefix ncEvent;

    import ietf-yang-types {
      prefix yang;
    import yuma-ncx {
      prefix ncx;

    organization "IETF NETCONF WG";

    contact "";

      "Conversion of the 'ncEvent' XSD in the 
       NETCONF Notifications RFC.";

      "RFC 5277.";

    revision "2013-03-15" {
        "Moved sequence-id to this module.";

    revision "2008-07-14" {
      description "RFC 5277 version.";

    typedef streamNameType {
      type string;
        "The name of an event stream.";

    rpc create-subscription {
        "The command to create a notification subscription. It
         takes as argument the name of the notification stream
         and filter. Both of those options limit the content of
         the subscription. In addition, there are two time-related
         parameters, startTime and stopTime, which can be used to 
         select the time interval of interest to the notification
         replay feature.";
      input {
        leaf stream {
          type streamNameType;
          default "NETCONF";
            "An optional parameter that indicates which stream of events
             is of interest. If not present, then events in the default
             NETCONF stream will be sent.";

        anyxml filter {
            "An optional parameter that indicates which subset of all
             possible events is of interest. The format of this
             parameter is the same as that of the filter parameter
             in the NETCONF protocol operations. If not present,
             all events not precluded by other parameters will 
             be sent.";

        leaf startTime {
          type yang:date-and-time;
            "A parameter used to trigger the replay feature and
             indicates that the replay should start at the time
             specified. If start time is not present, this is not a
             replay subscription.";

        leaf stopTime {
          type yang:date-and-time;
            "An optional parameter used with the optional replay
             feature to indicate the newest notifications of
             interest. If stop time is not present, the notifications
             will continue until the subscription is terminated.
             Must be used with startTime.";
    }  // rpc create-subscription

    container notification {
      config false;
        "internal struct to start a notification";
      leaf eventTime {
        type yang:date-and-time;
        mandatory true;
    }  // container notification

    augment /notification {
      leaf sequence-id {
        type uint32;
          "Global auto-increment sequence ID added to
               each notification element sent by netconfd.
               Only present if agt_notif_sequence_id enabled
               in the agt_profile.  Disabled by default.
               No CLI Parameter!!";
  }  // module notifications