Merge "BUG 1839 - HTTP delete of non existing data"
[controller.git] / opendaylight / config / yang-jmx-generator / src / test / resources / duplicates / config-test-duplicate-attribute-in-list.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module config-test-duplicate-attribute-in-list {
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:jmx:generator:it:duplicate";
5     prefix "it-duplicate";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import ietf-inet-types { prefix inet; revision-date 2010-09-24;}
9
10     description
11         "Testing IMPL";
12
13     revision "2013-04-03" {
14         description
15             "Initial revision";
16     }
17
18     identity implementation {
19         base config:module-type;
20         config:java-name-prefix TestImpl;
21     }
22
23     identity netconf {
24         base config:module-type;
25         config:java-name-prefix NetconfTestImpl;
26     }
27
28     augment "/config:modules/config:module/config:configuration" {
29         case implementation {
30             when "/config:modules/config:module/config:type = 'implementation'";
31
32            container dto-a {
33                 leaf simple-arg {
34                     type uint32;
35                 }
36
37                 leaf port {
38                     type inet:port-number;
39                 }
40
41             }
42         }
43     }
44
45     augment "/config:modules/config:module/config:state" {
46         case implementation {
47             when "/config:modules/config:module/config:type = 'implementation'";
48             // root runtime bean
49             leaf created-sessions {
50                 type uint32;
51             }
52         }
53     }
54
55     augment "/config:modules/config:module/config:configuration" {
56         case netconf {
57             when "/config:modules/config:module/config:type = 'netconf'";
58
59            list dtos {
60                    config:java-name-prefix dto-a;
61                        leaf port {
62                            type string;
63                        }
64                        leaf core-size {
65                            type uint32;
66                        }
67                        leaf simple-int3 {
68                            type uint16;
69                        }
70            }
71         }
72     }
73
74     augment "/config:modules/config:module/config:state" {
75         case netconf {
76             when "/config:modules/config:module/config:type = 'netconf'";
77             // root runtime bean
78             leaf created-sessions2 {
79                 type uint32;
80             }
81
82         }
83     }
84 }