3 namespace "urn:cisco:params:xml:ns:yang:messagebus:eventsource";
6 import event-aggregator { prefix aggr; }
7 import network-topology { prefix nt; revision-date "2013-10-21"; }
8 import opendaylight-inventory {prefix inv; revision-date "2013-08-19"; }
9 import yang-ext {prefix ext; revision-date "2013-07-09"; }
11 organization "Cisco Systems, Inc.";
12 contact "Robert Gallas";
15 "Base model for a topology where individual nodes can produce events.
17 Module implementing event source topology and encapped notification.
19 Copyright (c)2014 Cisco Systems, Inc. All rights reserved.
21 This program and the accompanying materials are made available
22 under the terms of the Eclipse Public License v1.0 which
23 accompanies this distribution, and is available at
24 http://www.eclipse.org/legal/epl-v10.html";
26 revision "2014-12-02" {
27 description "first revision";
31 typedef join-topic-status {
36 description "Object status";
39 // FIXME: migrate to topology
42 path "/inv:nodes/inv:node/inv:id";
46 grouping topology-event-source-type {
47 container topology-event-source {
48 presence "indicates an event source-aware topology";
55 ext:context-reference "inv:node-context";
56 type "instance-identifier";
60 description "in current implementation notification-pattern is defined by topic-id.
61 By persisting topic definition we could omit notification-pattern";
63 leaf notification-pattern {
64 type aggr:notification-pattern;
70 type join-topic-status;
75 augment "/nt:network-topology/nt:topology/nt:topology-types" {
76 uses topology-event-source-type;
79 augment "/nt:network-topology/nt:topology/nt:node" {
80 when "../../nt:topology-types/topology-event-source";
81 leaf event-source-node {