Merge "Updated xpath pointing to a module instance under services subtree."
[controller.git] / opendaylight / netconf / netconf-util / src / test / resources / netconfMessages / editConfig.xml
1 <rpc message-id="a" 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>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>test1</name>
33
34                     <sleep-factor>
35                         2.00
36                     </sleep-factor>
37
38                     <extended>
39                             1
40                     </extended>
41
42                     <extended-twice>
43                             1
44                     </extended-twice>
45
46                     <extended-enum>
47                         TWO
48                     </extended-enum>
49
50                     <simple-long-2>44</simple-long-2>
51                     <binaryLeaf>8</binaryLeaf>
52                     <binaryLeaf>1</binaryLeaf>
53                     <binaryLeaf>0</binaryLeaf>
54                     <type xmlns="urn:opendaylight:params:xml:ns:yang:controller:test:impl">configAttributeType</type>
55                     <dto_d xmlns="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
56                         <simple-int1>444</simple-int1>
57                         <simple-int2>4444</simple-int2>
58                         <simple-int3>454</simple-int3>
59                         <complex-dto-bInner>
60                             <simple-int3>44</simple-int3>
61                             <deep>
62                                 <simple-int3>4</simple-int3>
63                             </deep>
64                             <simple-list>4</simple-list>
65                         </complex-dto-bInner>
66                         <simple-list>4</simple-list>
67                     </dto_d>
68                     <simpleInt>44</simpleInt>
69                     <simple-test>545</simple-test>
70                     <simple-long>454545</simple-long>
71                     <simpleBoolean>false</simpleBoolean>
72                     <dto-c>
73                         <dto-a-inner>
74                             <dto-a-inner-inner>
75                                 <simple-arg>456</simple-arg>
76                             </dto-a-inner-inner>
77                             <simple-arg>44</simple-arg>
78                         </dto-a-inner>
79                     </dto-c>
80                     <simple-short>4</simple-short>
81                     <simple-BigInteger>999</simple-BigInteger>
82                     <simple-byte>4</simple-byte>
83                     <peers>
84                         <port>port1</port>
85                         <simple-int3>456</simple-int3>
86                         <core-size>44</core-size>
87                     </peers>
88                     <peers>
89                         <port>port23</port>
90                         <simple-int3>456</simple-int3>
91                         <core-size>44</core-size>
92                     </peers>
93                     <testing-dep>
94                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
95                         <name>ref_dep</name>
96                     </testing-dep>
97
98                     <testing-deps>
99                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
100                         <name>ref_dep</name>
101                     </testing-deps>
102                     <testing-deps>
103                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
104                         <name>ref_dep_2</name>
105                     </testing-deps>
106                 </module>
107
108                 <module>
109                     <type xmlns:test-impl="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
110                         test-impl:impl-netconf
111                     </type>
112                     <name>test2</name>
113                     <simple-short>4</simple-short>
114
115                     <testing-dep>
116                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
117                         <name>ref_dep_2</name>
118                     </testing-dep>
119                 </module>
120             </modules>
121
122             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
123                 <service>
124                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
125                     <instance>
126                         <name>ref_dep</name>
127                         <provider>/modules/module[type='impl-dep'][name='dep']
128                         </provider>
129                     </instance>
130                     <instance>
131                         <name>ref_dep_2</name>
132                         <provider>/config/modules/module[name='impl-dep']/instance[name='dep2']
133                         </provider>
134                     </instance>
135                     <instance>
136                         <name>ref_test1</name>
137                         <provider>
138                             /modules/module[type='impl-netconf'][name='test1']
139                         </provider>
140                     </instance>
141                 </service>
142             </services>
143         </config>
144     </edit-config>
145 </rpc>