BUG:5042 LLDP Tunnel Monitoring should update the interface operational
[vpnservice.git] / interfacemgr / interfacemgr-impl / src / main / yang / interfacemgr-impl.yang
1 module interfacemgr-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:interfacemgr:impl";
4     prefix "interfacemgr-impl";
5
6     import config { prefix config; revision-date 2013-04-05; }
7     import opendaylight-sal-binding-broker-impl { prefix md-sal-binding-impl; revision-date 2013-10-28;}
8     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
9     import odl-interface {prefix odlif; revision-date 2015-03-31;}
10     import odl-mdsalutil { prefix odl-mdsal; revision-date 2015-04-10;}
11
12     description
13         "Service definition for interfacemgr project";
14
15     revision "2015-03-25" {
16         description
17             "Initial revision";
18     }
19
20     identity interfacemgr-impl {
21         base config:module-type;
22         config:provided-service odlif:odl-interface;
23         config:java-name-prefix InterfacemgrImpl;
24     }
25
26     augment "/config:modules/config:module/config:configuration" {
27         case interfacemgr-impl {
28             when "/config:modules/config:module/config:type = 'interfacemgr-impl'";
29             container broker {
30                 uses config:service-ref {
31                     refine type {
32                         mandatory true;
33                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
34                     }
35                 }
36             }
37             container mdsalutil {
38                 uses config:service-ref {
39                     refine type {
40                         mandatory true;
41                         config:required-identity odl-mdsal:odl-mdsalutil;
42                     }
43                 }
44             }
45             container rpc-registry {
46                 uses config:service-ref {
47                     refine type {
48                         mandatory true;
49                         config:required-identity md-sal-binding:binding-rpc-registry;
50                     }
51                 }
52             }
53             container notification-service {
54                  uses config:service-ref {
55                      refine type {
56                          mandatory true;
57                          config:required-identity md-sal-binding-impl:binding-new-notification-service;
58                      }
59                  }
60             }
61         }
62     }
63 }