Added support for VPN Intent
[vpnservice.git] / vpnintent / impl / src / main / yang / vpnintent-impl.yang
1 /*
2  * Copyright (c) 2016 Inocybe Technologies and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
7  */
8 module vpnintent-impl {
9     yang-version 1;
10     namespace "urn:opendaylight:params:xml:ns:yang:vpnintent:impl";
11     prefix "vpnintent-impl";
12
13     import config { prefix config; revision-date 2013-04-05; }
14     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
15
16     description
17         "Service definition for vpnintent project";
18
19     revision "2014-12-10" {
20         description
21             "Initial revision";
22     }
23
24     identity vpnintent-impl {
25         base config:module-type;
26         config:java-name-prefix VpnintentImpl;
27     }
28
29     augment "/config:modules/config:module/config:configuration" {
30         case vpnintent-impl {
31             when "/config:modules/config:module/config:type = 'vpnintent-impl'";
32             container broker {
33                 uses config:service-ref {
34                     refine type {
35                         mandatory true;
36                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
37                     }
38                 }
39             }
40             container rpc-registry {
41                 uses config:service-ref {
42                     refine type {
43                         mandatory true;
44                         config:required-identity md-sal-binding:binding-rpc-registry;
45                     }
46                 }
47             }
48         }
49     }
50 }