Introduce top-level pom file.
[mdsal.git] / code-generator / binding-java-api-generator / src / test / resources / compilation / augment-under-uses / foo.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 foo {
9     yang-version 1;
10     namespace "urn:opendaylight:foo";
11     prefix "foo";
12
13     import bar { prefix b; revision-date 2013-10-08; }
14
15     revision "2013-10-08" {
16     }
17
18     grouping object {
19         container nodes {
20         }
21     }
22
23     grouping open-object {
24         uses object {
25             augment "nodes" {
26                 container links {
27                     leaf id {
28                         type string;
29                     }
30                 }
31             }
32         }
33     }
34
35     grouping closed-object {
36         uses b:route-subobjects {
37             augment "links/link" {
38                 leaf id {
39                     type string;
40                 }
41             }
42         }
43     }
44
45     grouping explicit-route-object {
46         list subobjects {
47             leaf loose {
48                 type boolean;
49             }
50             uses b:explicit-route-subobjects {
51                 augment "subobject-type" {
52                     case path-key {
53                         container path-key {
54                             uses path-key-subobject;
55                         }
56                     }
57                 }
58             }
59         }
60     }
61
62     grouping path-key-subobject {
63         leaf path-key {
64             type string;
65         }
66     }
67
68 }