Binding generator v2 - Action, ListAction fix
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / test / resources / operations / test-action.yang
1 module test-action {
2     yang-version 1.1;
3     namespace "urn:test:action";
4     prefix "routed";
5
6     revision "2017-06-21" {
7         description
8             "Initial revision";
9     }
10
11     container my-cont {
12         action in-cont {
13             input {
14                 leaf input-leaf {
15                     type string;
16                 }
17             }
18
19             output {
20                 leaf output-leaf {
21                     type string;
22                 }
23             }
24         }
25     }
26
27     list my-list {
28         key "name";
29
30         leaf name {
31             type string;
32         }
33
34         action in-list {
35             input {
36                 leaf input-list-leaf {
37                     type string;
38                 }
39             }
40
41             output {
42                 leaf output-list-leaf {
43                     type string;
44                 }
45             }
46         }
47     }
48 }