Add support for enums as configuration attributes in config and netconf subsystem.
[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                     <extended>
35                             1
36                     </extended>
37
38                     <extended-twice>
39                             1
40                     </extended-twice>
41
42                     <extended-enum>
43                         TWO
44                     </extended-enum>
45
46                     <simple-long-2>44</simple-long-2>
47                     <binaryLeaf>8</binaryLeaf>
48                     <binaryLeaf>1</binaryLeaf>
49                     <binaryLeaf>0</binaryLeaf>
50                     <type xmlns="urn:opendaylight:params:xml:ns:yang:controller:test:impl">configAttributeType</type>
51                     <dto_d xmlns="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
52                         <simple-int1>444</simple-int1>
53                         <simple-int2>4444</simple-int2>
54                         <simple-int3>454</simple-int3>
55                         <complex-dto-bInner>
56                             <simple-int3>44</simple-int3>
57                             <deep>
58                                 <simple-int3>4</simple-int3>
59                             </deep>
60                             <simple-list>4</simple-list>
61                         </complex-dto-bInner>
62                         <simple-list>4</simple-list>
63                     </dto_d>
64                     <simpleInt>44</simpleInt>
65                     <simple-test>545</simple-test>
66                     <simple-long>454545</simple-long>
67                     <simpleBoolean>false</simpleBoolean>
68                     <dto-c>
69                         <dto-a-inner>
70                             <dto-a-inner-inner>
71                                 <simple-arg>456</simple-arg>
72                             </dto-a-inner-inner>
73                             <simple-arg>44</simple-arg>
74                         </dto-a-inner>
75                     </dto-c>
76                     <simple-short>4</simple-short>
77                     <simple-BigInteger>999</simple-BigInteger>
78                     <simple-byte>4</simple-byte>
79                     <peers>
80                         <port>port1</port>
81                         <simple-int3>456</simple-int3>
82                         <core-size>44</core-size>
83                     </peers>
84                     <peers>
85                         <port>port23</port>
86                         <simple-int3>456</simple-int3>
87                         <core-size>44</core-size>
88                     </peers>
89                     <testing-dep>
90                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
91                         <name>ref_dep</name>
92                     </testing-dep>
93                 </module>
94
95                 <module>
96                     <type xmlns:test-impl="urn:opendaylight:params:xml:ns:yang:controller:test:impl">
97                         test-impl:impl-netconf
98                     </type>
99                     <name>test2</name>
100                     <testing-dep>
101                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
102                         <name>ref_dep</name>
103                     </testing-dep>
104                 </module>
105             </modules>
106
107             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
108                 <service>
109                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:test">prefix:testing</type>
110                     <instance>
111                         <name>ref_dep</name>
112                         <provider>/config/modules/module[name='impl-dep']/instance[name='dep']
113                         </provider>
114                     </instance>
115                     <instance>
116                         <name>ref_dep_2</name>
117                         <provider>/config/modules/module[name='impl-dep']/instance[name='dep2']
118                         </provider>
119                     </instance>
120                     <instance>
121                         <name>ref_test1</name>
122                         <provider>/config/modules/module[name='impl-netconf']/instance[name='test1']
123                         </provider>
124                     </instance>
125                 </service>
126             </services>
127         </config>
128     </edit-config>
129 </rpc>