dc8b4d999388a22ee16d2ad9fc90ba355f050eed
[nemo.git] / nemo-renderers / openflow-renderer / src / main / yang / openflow-renderer-impl.yang
1 /*\r
2  * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 module openflow-renderer-impl {\r
10     yang-version 1;\r
11 \r
12     namespace "urn:opendaylight:params:xml:ns:yang:nemo:openflow:renderer:impl";\r
13     prefix "openflow-renderer-impl";\r
14 \r
15     import config { prefix config; revision-date 2013-04-05; }\r
16     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }\r
17 \r
18     description\r
19         "This module contains the base YANG definitions for\r
20          NEMO Openflow renderer implementation.";\r
21 \r
22     revision "2015-07-01" {\r
23         description\r
24             "Initial revision.";\r
25     }\r
26 \r
27     identity openflow-renderer-impl {\r
28         base config:module-type;\r
29         config:java-name-prefix OpenflowRenderer;\r
30     }\r
31 \r
32     augment "/config:modules/config:module/config:configuration" {\r
33         case openflow-renderer-impl {\r
34             when "/config:modules/config:module/config:type = 'openflow-renderer-impl'";\r
35 \r
36             container data-broker {\r
37                 uses config:service-ref {\r
38                     refine type {\r
39                         mandatory false;\r
40                         config:required-identity mdsal:binding-async-data-broker;\r
41                     }\r
42                 }\r
43             }\r
44             container rpc-registry {\r
45                 uses config:service-ref {\r
46                     refine type {\r
47                         mandatory true;\r
48                         config:required-identity mdsal:binding-rpc-registry;\r
49                     }\r
50                 }\r
51             }\r
52             container notification-service {\r
53                 uses config:service-ref {\r
54                     refine type {\r
55                         mandatory true;\r
56                         config:required-identity mdsal:binding-notification-service;\r
57                     }\r
58                 }\r
59             }\r
60         }\r
61     }\r
62 }\r