Add missing license headers
[controller.git] / benchmark / api / src / main / yang / rpcbench-payload.yang
1 module rpcbench-payload {
2     yang-version 1;
3     namespace "rpcbench-payload";
4     prefix "rpcb";
5
6     import yang-ext { prefix ext; revision-date "2013-07-09"; }
7
8     description
9         "Copyright © 2015, 2018 Cisco Systems, Inc. and others.
10
11         This program and the accompanying materials are made available under the
12         terms of the Eclipse Public License v1.0 which accompanies this distribution,
13         and is available at http://www.eclipse.org/legal/epl-v10.html";
14
15     revision "2015-07-02" {
16         description "Initial revision of rpcbenchmark model";
17     }
18
19     identity node-context {
20         description "Identity used to mark node context for Routed RPCs (determines the type of routing)";
21     }
22
23     grouping payload {
24         list payload {
25             description
26                 "The input and output payload for the RPC Benchmark's Global RPC Server (a list of integers)";
27             key id;
28             leaf id {
29                 type int32;
30             }
31         }
32     }
33
34     rpc global-rpc-bench {
35         description
36           "Interface to the RPC Benchmark's Global RPC Server. In each RPC call, the input is copied on the output";
37         input {
38             uses payload;
39         }
40         output {
41             uses payload;
42         }
43     }
44
45     rpc routed-rpc-bench {
46         description
47             "Interface to RPC Benchmark's Routed RPC Servers. In each RPC call, the input is copied on the output";
48         input {
49             leaf node {
50                 ext:context-reference "node-context";
51                 type "instance-identifier";
52             }
53             uses payload;
54         }
55         output {
56             uses payload;
57         }
58     }
59
60     container rpcbench-rpc-routes {
61         list rpc-route {
62             description
63                 "Routed RPC server context instances (i.e. instances to which RPC calls are routed)";
64             key id;
65             ext:context-instance "node-context";
66             leaf id {
67                 type string;
68             }
69         }
70     }
71 }