e918b3f38f656e69bec8d1a85b023644f872e4b3
[netconf.git] / restconf / sal-rest-connector / src / main / yang / sal-restconf-service.yang
1 module sal-restconf-service {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:sal:restconf:service";
4     prefix "sal-restconf-service";
5
6     import config { prefix config; revision-date 2013-04-05; }
7
8     description "Definition for the internal restconf service";
9
10     revision "2015-07-08" {
11         description "Initial revision";
12     }
13
14     identity json-restconf-service {
15         base "config:service-type";
16         config:java-class "org.opendaylight.netconf.sal.restconf.api.JSONRestconfService";
17     }
18
19     identity json-restconf-service-impl {
20         base config:module-type;
21         config:provided-service json-restconf-service;
22         config:java-name-prefix JSONRestconfService;
23     }
24
25     augment "/config:modules/config:module/config:configuration" {
26         case json-restconf-service-impl {
27             when "/config:modules/config:module/config:type = 'json-restconf-service-impl'";
28         }
29     }
30 }