Fixed some major sonar issues in yang-validation-tool
[yangtools.git] / integration-test / bug527-test-model / src / main / yang / bar.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 bar {
9     yang-version 1;
10     namespace "urn:yang:bar";
11     prefix "bar";
12
13     import baz {
14         prefix "baz";
15     }
16
17     revision "2014-03-21" {
18     }
19
20     container factory {
21         container alpha {
22             uses baz:machine-def;
23         }
24         container beta {
25             uses baz:machine-def;
26         }
27     }
28     
29     rpc create-factory {
30         input {
31             uses baz:machine-def;
32         }
33     }
34     
35     rpc create-nested-factory {
36         input {
37             container nested {
38                 uses baz:machine-def;
39             }
40         }
41     }
42
43     grouping machine-types {
44         container types {
45             choice machine-type {
46             }
47         }
48     }
49
50     grouping machine-ext {
51         uses machine-types {
52             augment "types/machine-type" {
53                 case type-a {
54                     leaf id {
55                         type string;
56                     }
57                 }
58             }
59         }
60     }
61
62 }
63