ea5ebbbd73b136780fdcdd6ebd41d97142535649
[groupbasedpolicy.git] / sxp-integration / sxp-ep-provider / src / main / yang / sxp-ep-provider-cfg.yang
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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
7  */
8
9 module sxp-ep-provider-cfg {
10     yang-version 1;
11     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:groupbasedpolicy:sxp-integration:sxp-ep-provider";
12     prefix "sxp-ep-prvd-cfg";
13
14     import config { prefix config; revision-date 2013-04-05; }
15     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
16     import groupbasedpolicy-cfg {prefix gbpcfg; revision-date 2015-11-06; }
17
18     description
19         "This module contains the base YANG definitions for
20           sxf-integration : sxp-ep-provider impl configuration.";
21
22     revision "2016-07-22" {
23         description
24             "Initial revision.";
25     }
26
27     identity sxp-ep-provider-impl {
28         description
29             "sxp-ep-provider impl module";
30
31         base "config:module-type";
32         config:java-name-prefix SxpEpProviderProvider;
33     }
34
35     // Augments the 'configuration' choice node under modules/module.
36     augment "/config:modules/config:module/config:configuration" {
37         case sxp-ep-provider-impl {
38             when "/config:modules/config:module/config:type = 'sxp-ep-provider-impl'";
39
40             //wires in the data-broker service
41             container data-broker {
42                 uses config:service-ref {
43                     refine type {
44                         mandatory true;
45                         config:required-identity mdsal:binding-async-data-broker;
46                     }
47                 }
48             }
49             //RPC Registry
50             container rpc-registry {
51                 uses config:service-ref {
52                     refine type {
53                         mandatory true;
54                         config:required-identity mdsal:binding-rpc-registry;
55                     }
56                 }
57             }
58             //Domain specific registry
59             container domain-specific-registry {
60                 uses config:service-ref {
61                     refine type {
62                         mandatory true;
63                         config:required-identity gbpcfg:domain-specific-registry;
64                     }
65                 }
66             }
67         }
68     }
69 }