BUG 932 - Swagger HTTP POST contains incorrect object
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / test / resources / org / opendaylight / controller / xml / codec / rpcTest.yang
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 module rpc-test {
9     yang-version 1;
10     namespace "urn:opendaylight:controller:rpc:test";
11     prefix "rpct";
12
13     revision 2014-07-29 {
14        description "rpc test";
15     }
16
17     typedef flow-ref {
18         type instance-identifier;
19     }
20
21     rpc add-flow {
22         input {
23             leaf id {
24                 type string;
25             }
26
27             leaf flow {
28                 type flow-ref;
29             }
30         }
31     }
32 }