I support to adopt this document as WG draft.
I also checked the grammar of the YANG model, it is perfect, but the tree 
diagram is a bit inconsistent with the YANG model.
so I ran the pyang 2.6 on the YANG model, the tree diagram is as follows for 
your reference:

module: ietf-incident
  +--ro incidents
     +--ro incident* [incident-id]
        +--ro incident-id         string
        +--ro csn                 uint64
        +--ro service-instance*   string
        +--ro name                string
        +--ro type                enumeration
        +--ro domain              identityref
        +--ro priority            int:incident-priority
        +--ro status?             enumeration
        +--ro ack-status?         enumeration
        +--ro category            identityref
        +--ro detail?             string
        +--ro resolve-advice?     string
        +--ro sources
        |  +--ro source* [node]
        |     +--ro node        int:node-ref
        |     +--ro resource* [name]
        |        +--ro name    al:resource
        +--ro root-causes
        |  +--ro root-cause* [node]
        |     +--ro node          int:node-ref
        |     +--ro resource* [name]
        |     |  +--ro name          al:resource
        |     |  +--ro cause-name?   string
        |     |  +--ro detail?       string
        |     +--ro cause-name?   string
        |     +--ro detail?       string
        +--ro root-events
        |  +--ro root-event* [type event-id]
        |     +--ro type        -> ../../../events/event/type
        |     +--ro event-id    -> ../../../events/event[type = 
current()/../type]/event-id
        +--ro events
        |  +--ro event* [type event-id]
        |     +--ro type           enumeration
        |     +--ro event-id       string
        |     +--ro (event-type-info)?
        |        +--:(alarm)
        |        |  +--ro alarm
        |        |     +--ro resource?               -> 
/al:alarms/alarm-list/alarm/resource
        |        |     +--ro alarm-type-id?          -> 
/al:alarms/alarm-list/alarm[al:resource = current()/../resource]/alarm-type-id
        |        |     +--ro alarm-type-qualifier?   -> 
/al:alarms/alarm-list/alarm[al:resource = 
current()/../resource][al:alarm-type-id = 
current()/../alarm-type-id]/al:alarm-type-qualifier
        |        +--:(notification)
        |        +--:(log)
        |        +--:(KPI)
        |        +--:(unknown)
        +--ro raise-time?         yang:date-and-time
        +--ro occur-time?         yang:date-and-time
        +--ro clear-time?         yang:date-and-time
        +--ro ack-time?           yang:date-and-time
        +--ro last-updated?       yang:date-and-time

  rpcs:
    +---x incident-acknowledge
    |  +---w input
    |     +---w incident-id*   -> /incidents/incident/incident-id
    +---x incident-diagnose
    |  +---w input
    |     +---w incident-id*   -> /incidents/incident/incident-id
    +---x incident-resolve
       +---w input
          +---w incident-id*   -> /incidents/incident/incident-id

  notifications:
    +---n incident-notification
       +--ro incident-id?        -> /incidents/incident/incident-id
       +--ro csn                 uint64
       +--ro service-instance*   string
       +--ro name                string
       +--ro type                enumeration
       +--ro domain              identityref
       +--ro priority            int:incident-priority
       +--ro status?             enumeration
       +--ro ack-status?         enumeration
       +--ro category            identityref
       +--ro detail?             string
       +--ro resolve-advice?     string
       +--ro sources
       |  +--ro source* [node]
       |     +--ro node        int:node-ref
       |     +--ro resource* [name]
       |        +--ro name    al:resource
       +--ro root-causes
       |  +--ro root-cause* [node]
       |     +--ro node          int:node-ref
       |     +--ro resource* [name]
       |     |  +--ro name          al:resource
       |     |  +--ro cause-name?   string
       |     |  +--ro detail?       string
       |     +--ro cause-name?   string
       |     +--ro detail?       string
       +--ro root-events
       |  +--ro root-event* [type event-id]
       |     +--ro type        -> ../../../events/event/type
       |     +--ro event-id    -> ../../../events/event[type = 
current()/../type]/event-id
       +--ro events
       |  +--ro event* [type event-id]
       |     +--ro type           enumeration
       |     +--ro event-id       string
       |     +--ro (event-type-info)?
       |        +--:(alarm)
       |        |  +--ro alarm
       |        |     +--ro resource?               -> 
/al:alarms/alarm-list/alarm/resource
       |        |     +--ro alarm-type-id?          -> 
/al:alarms/alarm-list/alarm[al:resource = current()/../resource]/alarm-type-id
       |        |     +--ro alarm-type-qualifier?   -> 
/al:alarms/alarm-list/alarm[al:resource = 
current()/../resource][al:alarm-type-id = 
current()/../alarm-type-id]/al:alarm-type-qualifier
       |        +--:(notification)
       |        +--:(log)
       |        +--:(KPI)
       |        +--:(unknown)
       +--ro time?               yang:date-and-time

thanks
Andrew

_______________________________________________
OPSAWG mailing list
OPSAWG@ietf.org
https://www.ietf.org/mailman/listinfo/opsawg

Reply via email to