Merge "Fixed for bug 1168 : Issue while update subnet"
[controller.git] / opendaylight / md-sal / sal-test-model / src / main / yang / opendaylight-mdsal-list-test.yang
1 module opendaylight-mdsal-list-test {
2
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:test:list";
4     prefix list-test;
5
6
7     description
8         "This module contains a collection of YANG definitions used for
9         some test cases.";
10
11     revision 2014-07-01 {
12         description
13         "Test model for testing data broker with nested lists.";
14     }
15
16     grouping two-level-list {
17         list top-level-list {
18             description
19                 "Top Level List";
20             key "name";
21             leaf name {
22                 type string;
23             }
24             list nested-list {
25                 key "name";
26                 leaf name {
27                     type string;
28                 }
29                 leaf type {
30                     type string;
31                     mandatory true;
32                     description
33                         "Mandatory type of list.";
34                 }
35                 ordered-by user;
36                 description
37                     "A list of service functions that compose the service chain";
38             }
39         }
40     }
41
42     container top {
43         uses two-level-list;
44     }
45
46     rpc put-top {
47         input {
48             uses two-level-list;
49         }
50     }
51 }