Integrating FAAS renderer with the faas fabric mapping services. Also,
[groupbasedpolicy.git] / renderers / faas / src / main / yang / faas-provider-impl.yang
1 /*
2  * Copyright (c) 2015 Huawei 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
7  */
8
9 module faas-provider-impl {
10     yang-version 1;
11     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:faas-provider:impl";
12     prefix "faas-provider-impl";
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 opendaylight-sal-binding-broker-impl { prefix sal-broker; revision-date 2013-10-28; }
17     import groupbasedpolicy-cfg { prefix gbpcfg; revision-date 2015-11-06; }
18
19     description
20         "This module contains the base YANG definitions for faas-provider
21         impl implementation.";
22
23     revision "2015-10-09" {
24         description
25                 "Initial revision.";
26     }
27
28     identity faas-provider-impl {
29         base "config:module-type";
30
31         config:java-name-prefix FaasProvider;
32     }
33
34     // Augments the 'configuration' choice node under modules/module.
35     augment "/config:modules/config:module/config:configuration" {
36         case faas-provider-impl {
37             when "/config:modules/config:module/config:type = 'faas-provider-impl'";
38
39             //wires in the data-broker service
40             container data-broker {
41                 uses config:service-ref {
42                     refine type {
43                         mandatory true;
44                         config:required-identity mdsal:binding-async-data-broker;
45                     }
46                 }
47             }
48             // EpRendererAugmentationRegistry service
49             container ep-renderer-augmentation-registry {
50                 uses config:service-ref {
51                     refine type {
52                         mandatory true;
53                         config:required-identity gbpcfg:ep-renderer-augmentation-registry;
54                     }
55                 }
56             }
57         }
58     }
59 }