77bbd765f8406dc2b0c4be45acf1b026c3c97a93
[smo/teiv.git] /
1 module general-syntax-test-rpc {
2
3     namespace "test:general-syntax-test-rpc";
4     prefix this;
5
6         description
7         "Copyright (C) 2024 Ericsson
8         Modifications Copyright (C) 2024 OpenInfra Foundation Europe";
9
10     revision "2020-07-22" {
11         description "Initial revision";
12     }
13
14         feature feature1;
15
16     // -------------- RPCs -------------------
17
18         rpc rpc1;
19
20         rpc rpc2 {
21                 input {
22                         container cont1;
23                 }
24         }
25
26         rpc rpc3 {
27                 output {
28                         container cont2;
29                 }
30         }
31
32         rpc rpc4 {
33                 status deprecated;
34                 if-feature feature1;
35
36                 typedef typedef1 {
37                         type string;
38                 }
39                 grouping grouping1 {
40                         leaf grouping-leaf {
41                                 type int32;
42                         }
43                 }
44                 output {
45                         leaf leaf1 {
46                                 type typedef1;
47                         }
48                         anyxml anyxml1;
49                         anydata anydata1;
50                         list list1 {
51                                 key leaf2;
52                                 leaf leaf2 {
53                                         type int32;
54                                 }
55                         }
56                         leaf-list leaflist3 {
57                                 type boolean;
58                         }
59                         choice choice1 {
60                                 container cont6;
61                                 container cont7;
62                         }
63                         must "../contX";
64                         typedef typedef2 {
65                                 type int16;
66                         }
67                 }
68                 input {
69                         container cont4;
70                         uses grouping1;
71                         anyxml anyxml1;
72                         anydata anydata1;
73                         list list1 {
74                                 key leaf2;
75                                 leaf leaf2 {
76                                         type int32;
77                                 }
78                         }
79                         leaf-list leaflist3 {
80                                 type boolean;
81                         }
82                         choice choice1 {
83                                 container cont6;
84                                 container cont7;
85                         }
86                         must "../contX";
87                         typedef typedef2 {
88                                 type int16;
89                         }
90                 }
91         }
92
93
94
95
96 }