janani b | d6361c9 | 2017-06-19 15:45:55 +0530 | [diff] [blame] | 1 | module YtbRpc { |
2 | yang-version 1; | ||||
3 | namespace "yms:test:ytb:ytb:rpc"; | ||||
4 | prefix "sch"; | ||||
5 | revision "2016-08-26"; | ||||
6 | |||||
7 | augment "/content/input/in" { | ||||
8 | container real { | ||||
9 | leaf in { | ||||
10 | type string; | ||||
11 | } | ||||
12 | } | ||||
13 | } | ||||
14 | |||||
15 | grouping rpc-group { | ||||
16 | leaf val { | ||||
17 | type string; | ||||
18 | } | ||||
19 | } | ||||
20 | |||||
21 | rpc content { | ||||
22 | input { | ||||
23 | typedef in-typedef { | ||||
24 | type string; | ||||
25 | } | ||||
26 | container in { | ||||
27 | leaf con-in { | ||||
28 | type in-typedef; | ||||
29 | } | ||||
30 | } | ||||
31 | } | ||||
32 | |||||
33 | output { | ||||
34 | grouping in-group { | ||||
35 | leaf-list call { | ||||
36 | type uint8; | ||||
37 | } | ||||
38 | } | ||||
39 | choice out-ch { | ||||
40 | case first { | ||||
41 | uses in-group; | ||||
42 | } | ||||
43 | } | ||||
44 | } | ||||
45 | } | ||||
46 | } |