BUG-2453 Enable nested enums in configuration
[controller.git] / opendaylight / netconf / netconf-util / src / test / resources / netconfMessages / editConfig.xml
1 <rpc message-id="101" a="64" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
2     <edit-config>
3         <target>
4             <candidate/>
5         </target>
6         <test-option>
7             set
8         </test-option>
9         <default-operation>merge</default-operation>
10         <config>
11             <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
12
13                 <module>
14                     <name>instance-from-code_dep</name>
15                     <type xmlns:test-impl="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
16                         test-impl:impl-dep
17                     </type>
18                 </module>
19
20                 <module>
21                     <name>dep2</name>
22                     <type xmlns:test-impl="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
23                         test-impl:impl-dep
24                     </type>
25                 </module>
26
27                 <module>
28                     <type xmlns:test-impl="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
29                         test-impl:impl-netconf
30                     </type>
31
32                     <name>instance-from-code</name>
33                     <impl-netconf xmlns="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
34
35                         <from-grouping>
36                             <enum-in-grouping>version1</enum-in-grouping>
37                         </from-grouping>
38                         <sleep-factor>
39                             2.58
40                         </sleep-factor>
41
42                         <extended>
43                                 10
44                         </extended>
45
46                         <extended-twice>
47                                 20
48                         </extended-twice>
49
50                         <extended-enum>
51                             two
52                         </extended-enum>
53
54                         <simple-long-2>44</simple-long-2>
55                         <binaryLeaf>YmluYXJ5</binaryLeaf>
56
57                         <type xmlns="urn:opendaylight:params:xml:ns:yang:controller:test:impl">configAttributeType</type>
58                         <dto_d xmlns="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
59                             <simple-int1>444</simple-int1>
60                             <simple-int2>4444</simple-int2>
61                             <simple-int3>454</simple-int3>
62                             <complex-dto-bInner>
63                                 <simple-int3>44</simple-int3>
64                                 <deep>
65                                     <simple-int3>4</simple-int3>
66                                 </deep>
67                                 <simple-list>4</simple-list>
68                             </complex-dto-bInner>
69                             <simple-list>4</simple-list>
70                         </dto_d>
71                         <simpleInt>44</simpleInt>
72                         <simple-test>545</simple-test>
73                         <simple-long>454545</simple-long>
74                         <simpleBoolean>false</simpleBoolean>
75                         <dto-c>
76                             <dto-a-inner>
77                                 <dto-a-inner-inner>
78                                     <simple-arg>456</simple-arg>
79                                 </dto-a-inner-inner>
80                                 <simple-arg>44</simple-arg>
81                             </dto-a-inner>
82                         </dto-c>
83                         <simple-short>4</simple-short>
84                         <simple-BigInteger>999</simple-BigInteger>
85                         <simple-byte>4</simple-byte>
86                         <peers>
87                             <port>port1</port>
88                             <simple-int3>456</simple-int3>
89                             <core-size>44</core-size>
90                         </peers>
91                         <peers>
92                             <port>port23</port>
93                             <simple-int3>456</simple-int3>
94                             <core-size>44</core-size>
95                         </peers>
96                         <testing-dep>
97                             <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
98                             <name>ref_dep_user</name>
99                         </testing-dep>
100
101                         <testing-deps>
102                             <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
103                             <name>ref_dep_user</name>
104                         </testing-deps>
105                         <testing-deps>
106                             <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
107                             <name>ref_dep_user_two</name>
108                         </testing-deps>
109                     </impl-netconf>
110                 </module>
111
112                 <module>
113                     <type xmlns:test-impl="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
114                         test-impl:impl-netconf
115                     </type>
116                     <name>test2</name>
117                     <impl-netconf  xmlns="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
118                         <simple-short>4</simple-short>
119                         <testing-dep>
120                             <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
121                             <name>ref_dep_user_two</name>
122                         </testing-dep>
123                     </impl-netconf>
124                 </module>
125             </modules>
126
127             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
128                 <service>
129                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
130                     <instance>
131                         <name>ref_dep_user</name>
132                         <provider>/modules/module[type='impl-dep'][name='instance-from-code_dep']
133                         </provider>
134                     </instance>
135                     <instance>
136                         <name>ref_dep_user_two</name>
137                         <provider>/config/modules/module[name='impl-dep']/instance[name='dep2']
138                         </provider>
139                     </instance>
140                     <instance>
141                         <name>user_to_instance_from_code</name>
142                         <provider>
143                             /modules/module[type='impl-netconf'][name='instance-from-code']
144                         </provider>
145                     </instance>
146                 </service>
147             </services>
148         </config>
149     </edit-config>
150 </rpc>