BUG-6650: ep-ip/sgt, propose sxp-generator
[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     import sxp-database { prefix sxp-database; revision-date 2016-03-08; }
18
19     description
20         "This module contains the base YANG definitions for
21           sxf-integration : sxp-ep-provider impl configuration.";
22
23     revision "2016-07-22" {
24         description
25             "Initial revision.";
26     }
27
28     identity sxp-ep-provider-impl {
29         description
30             "sxp-ep-provider impl module";
31
32         base "config:module-type";
33         config:provided-service sxp-ep-provider;
34         config:java-name-prefix SxpEpProviderProvider;
35     }
36
37     identity sxp-ep-provider {
38         description
39             "sxp-ep-provider injection point service for template provider";
40
41         base "config:service-type";
42         config:java-class "org.opendaylight.groupbasedpolicy.sxp.ep.provider.spi.SxpEpProviderProvider";
43     }
44
45     // Augments the 'configuration' choice node under modules/module.
46     augment "/config:modules/config:module/config:configuration" {
47         case sxp-ep-provider-impl {
48             when "/config:modules/config:module/config:type = 'sxp-ep-provider-impl'";
49         }
50     }
51
52     container sgt-generator-config {
53         description "sgt-generator configuration";
54         leaf sgt-low {
55             type sxp-database:sgt;
56             mandatory true;
57             description "minimal SGT value to be used by sgt-generator";
58         }
59         leaf sgt-high {
60             type sxp-database:sgt;
61             mandatory true;
62             description "maximal SGT value to be used by sgt-generator";
63         }
64     }
65 }