summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/restconf/parser/list-test.yang
blob: 981e6fe99504eadc6ccbb9ee2bce8d58a0a83750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module list-test {
  namespace "list:test";
  prefix "listt";

  revision 2016-04-29 {
    description
      "Initial revision.";
  }

    container top {
       list list1 {
           key "key1 key2 key3";
           leaf key1 {
               type string;
           }
           leaf key2 {
               type string;
           }
           leaf key3 {
               type string;
           }
           list list2 {
                key "key4 key5";
                leaf key4 {
                   type string;
                }
                leaf key5 {
                   type string;
                }
                leaf result {
                    type string;
                }
           }
        }
        leaf-list Y {
          type uint32;
        }
    }
}