Fixed some major sonar issues in yang-validation-tool
[yangtools.git] / code-generator / binding-java-api-generator / src / test / resources / compilation / augment-uses-to-augment / 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:opendaylight.bar";
11     prefix "bar";
12         
13         description "bar - Network topology is the arrangement of the various elements (links, nodes, etc.) of a computer network.[1][2] Essentially, it is the topological[3] structure of a network, and may be depicted physically or logically. Physical topology is the placement of the various components of a network, including device location and cable installation, while logical topology illustrates how data flows within a network, regardless of its physical design. Distances between nodes, physical interconnections, transmission rates, or signal types may differ between two networks, yet their topologies may be identical.";
14         reference "RFC 6020 - http://tools.ietf.org/html/rfc6020";
15
16     revision "2013-10-08" {
17     }
18
19     container network-topology {
20                 description "network-topology - Network topology is the arrangement of the various elements (links, nodes, etc.) of a computer network.[1][2] Essentially, it is the topological[3] structure of a network, and may be depicted physically or logically. Physical topology is the placement of the various components of a network, including device location and cable installation, while logical topology illustrates how data flows within a network, regardless of its physical design. Distances between nodes, physical interconnections, transmission rates, or signal types may differ between two networks, yet their topologies may be identical.";
21                 reference "RFC 6020 - http://tools.ietf.org/html/rfc6020";
22                 
23         list topology {
24                         description "topology - Network topology is the arrangement of the various elements (links, nodes, etc.) of a computer network.[1][2] Essentially, it is the topological[3] structure of a network, and may be depicted physically or logically. Physical topology is the placement of the various components of a network, including device location and cable installation, while logical topology illustrates how data flows within a network, regardless of its physical design. Distances between nodes, physical interconnections, transmission rates, or signal types may differ between two networks, yet their topologies may be identical.";
25                         reference "RFC 6020 - http://tools.ietf.org/html/rfc6020";
26                         
27             key "topology-id";
28             leaf topology-id {
29                                 description "topology-id - Network topology is the arrangement of the various elements (links, nodes, etc.) of a computer network.[1][2] Essentially, it is the topological[3] structure of a network, and may be depicted physically or logically. Physical topology is the placement of the various components of a network, including device location and cable installation, while logical topology illustrates how data flows within a network, regardless of its physical design. Distances between nodes, physical interconnections, transmission rates, or signal types may differ between two networks, yet their topologies may be identical.";
30                                 reference "RFC 6020 - http://tools.ietf.org/html/rfc6020";
31                 type int32;
32             }
33             uses link;
34         }
35     }
36
37     grouping link {
38         list link {
39                         description "Link - Network topology is the arrangement of the various elements (links, nodes, etc.) of a computer network.[1][2] Essentially, it is the topological[3] structure of a network, and may be depicted physically or logically. Physical topology is the placement of the various components of a network, including device location and cable installation, while logical topology illustrates how data flows within a network, regardless of its physical design. Distances between nodes, physical interconnections, transmission rates, or signal types may differ between two networks, yet their topologies may be identical.";
40                         reference "RFC 6020 - http://tools.ietf.org/html/rfc6020";
41             key "link-id";
42             uses link-attributes;
43         }
44     }
45
46     grouping link-attributes {
47         leaf link-id {
48                         description "Link-attributes - Network topology is the arrangement of the various elements (links, nodes, etc.) of a computer network.[1][2] Essentially, it is the topological[3] structure of a network, and may be depicted physically or logically. Physical topology is the placement of the various components of a network, including device location and cable installation, while logical topology illustrates how data flows within a network, regardless of its physical design. Distances between nodes, physical interconnections, transmission rates, or signal types may differ between two networks, yet their topologies may be identical.";
49                         reference "RFC 6020 - http://tools.ietf.org/html/rfc6020";
50             type int8;
51         }
52     }
53         
54         leaf inclusion-rulez {
55                 description "Specified rulez description.";
56                 reference "RFC 6020 http://technet.com";
57                 
58                 type string;
59         }
60
61         leaf inclusion-rule {
62         description "Specify how inheritance will work for this label";
63         default include;
64
65         type enumeration {
66             enum include {
67                 description 
68                     "This label will be included normally in the 
69                      matching. This seems to be a little bit longer comment. I hear you very weel my darling.
70                                          Network topology is the arrangement of the various elements (links, nodes, etc.) of any other builder nodes types.";
71             }
72             enum exclude {
73                 description 
74                     "This label will be excluded from the 
75                     matching.  This allows removing labels that
76                     would have otherwise been included because of
77                     inheritence rules.";
78             }
79         }
80     }
81 }