Do not pretty-print body class
[yangtools.git] / data / yang-data-impl / src / test / resources / yt892 / test-network-instance.yang
1 module test-network-instance {
2     yang-version "1";
3     namespace "urn:opendaylight:params:xml:ns:yang:test:network:instance";
4     prefix netinst;
5
6     import test-policy-types { prefix "pt"; }
7
8     revision 2018-08-14;
9
10     grouping network-instance-top {
11         container network-instances {
12             list network-instance {
13                 key "name";
14
15                 leaf name {
16                     type leafref {
17                         path "../config/name";
18                     }
19                 }
20
21                 container config {
22                     uses network-instance-config;
23                 }
24
25                 container protocols {
26                     list protocol {
27                         key "identifier name";
28
29                         leaf identifier {
30                             type leafref {
31                                 path "../config/identifier";
32                             }
33                         }
34
35                         leaf name {
36                             type leafref {
37                                 path "../config/name";
38                             }
39                         }
40
41                         container config {
42                             uses protocols-config;
43                         }
44                     }
45                 }
46             }
47         }
48     }
49
50     grouping network-instance-config {
51         leaf name {
52             type string;
53         }
54     }
55
56     grouping protocols-config {
57         leaf identifier {
58             type identityref {
59                 base "pt:install-protocol-type";
60             }
61         }
62
63         leaf name {
64             type string;
65         }
66     }
67
68     uses network-instance-top;
69 }
70