Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / resources / compilation / list-gen / test.yang
1 /*
2  * Copyright (c) 2013 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 test {
9     yang-version 1;
10     namespace "urn:opendaylight:test";
11     prefix "t";
12
13     revision "2013-10-08" {
14     }
15
16     grouping key-args {
17         leaf name {
18             type string;
19         }
20         leaf size {
21             type int32;
22         }
23     }
24
25     list links {
26         uses key-args;
27         key "size name id";
28
29         leaf id {
30             type int8;
31         }
32
33         anyxml text;
34         choice level;
35         container node;
36         grouping link-group {
37             leaf source {
38                 type int8;
39             }
40         }
41         leaf links-id {
42             type int32;
43         }
44         list node-list {
45         }
46         typedef nodes-type {
47             type string;
48         }
49     }
50
51 }