BUG-2242: LLDP speaker as separate application.
[openflowplugin.git] / applications / lldp-speaker / src / main / yang / lldp-speaker.yang
1 module lldp-speaker {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:openflow:applications:lldp-speaker";
4     prefix "lldp-speaker";
5     import config {prefix config; revision-date 2013-04-05;}
6     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28;}
7
8     description
9         "Application that send LLDPDU frames to all Openflow switch ports.";
10
11     revision "2014-10-23" {
12         description
13             "Initial revision";
14     }
15
16     identity lldp-speaker {
17         base "config:module-type";
18         config:java-name-prefix LLDPSpeaker;
19     }
20
21     augment "/config:modules/config:module/config:configuration" {
22         case lldp-speaker {
23             when "/config:modules/config:module/config:type = 'lldp-speaker'";
24             container rpc-registry {
25                 uses config:service-ref {
26                     refine type {
27                         mandatory true;
28                         config:required-identity mdsal:binding-rpc-registry;
29                     }
30                 }
31             }
32             container data-broker {
33                 uses config:service-ref {
34                     refine type {
35                         mandatory false;
36                         config:required-identity mdsal:binding-async-data-broker;
37                     }
38                 }
39             }
40         }
41     }
42 }