Merge "Add support for enums as configuration attributes in config and netconf subsys...
[controller.git] / opendaylight / netconf / config-netconf-connector / src / test / java / org / opendaylight / controller / netconf / confignetconfconnector / NetconfMappingTest.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.netconf.confignetconfconnector;
10
11 import com.google.common.base.Optional;
12 import com.google.common.base.Preconditions;
13 import com.google.common.collect.Lists;
14 import com.google.common.collect.Maps;
15 import org.junit.Before;
16 import org.junit.Ignore;
17 import org.junit.Test;
18 import org.junit.matchers.JUnitMatchers;
19 import org.mockito.Mock;
20 import org.mockito.MockitoAnnotations;
21 import org.opendaylight.controller.config.manager.impl.AbstractConfigTest;
22 import org.opendaylight.controller.config.manager.impl.factoriesresolver.HardcodedModuleFactoriesResolver;
23 import org.opendaylight.controller.config.util.ConfigTransactionJMXClient;
24 import org.opendaylight.controller.config.yang.store.api.YangStoreSnapshot;
25 import org.opendaylight.controller.config.yang.store.impl.MbeParser;
26 import org.opendaylight.controller.config.yang.test.impl.ComplexDtoBInner;
27 import org.opendaylight.controller.config.yang.test.impl.ComplexList;
28 import org.opendaylight.controller.config.yang.test.impl.Deep;
29 import org.opendaylight.controller.config.yang.test.impl.DepTestImplModuleFactory;
30 import org.opendaylight.controller.config.yang.test.impl.DtoAInner;
31 import org.opendaylight.controller.config.yang.test.impl.DtoAInnerInner;
32 import org.opendaylight.controller.config.yang.test.impl.DtoC;
33 import org.opendaylight.controller.config.yang.test.impl.DtoD;
34 import org.opendaylight.controller.config.yang.test.impl.NetconfTestImplModuleFactory;
35 import org.opendaylight.controller.config.yang.test.impl.NetconfTestImplModuleMXBean;
36 import org.opendaylight.controller.config.yang.test.impl.Peers;
37 import org.opendaylight.controller.config.yangjmxgenerator.ModuleMXBeanEntry;
38 import org.opendaylight.controller.netconf.api.NetconfDocumentedException;
39 import org.opendaylight.controller.netconf.api.NetconfOperationRouter;
40 import org.opendaylight.controller.netconf.confignetconfconnector.operations.Commit;
41 import org.opendaylight.controller.netconf.confignetconfconnector.operations.DiscardChanges;
42 import org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfig;
43 import org.opendaylight.controller.netconf.confignetconfconnector.operations.get.Get;
44 import org.opendaylight.controller.netconf.confignetconfconnector.operations.getconfig.GetConfig;
45 import org.opendaylight.controller.netconf.confignetconfconnector.operations.runtimerpc.RuntimeRpc;
46 import org.opendaylight.controller.netconf.confignetconfconnector.transactions.TransactionProvider;
47 import org.opendaylight.controller.netconf.impl.mapping.operations.DefaultCloseSession;
48 import org.opendaylight.controller.netconf.mapping.api.HandlingPriority;
49 import org.opendaylight.controller.netconf.mapping.api.NetconfOperation;
50 import org.opendaylight.controller.netconf.util.test.XmlFileLoader;
51 import org.opendaylight.controller.netconf.util.xml.XmlElement;
52 import org.opendaylight.controller.netconf.util.xml.XmlNetconfConstants;
53 import org.opendaylight.controller.netconf.util.xml.XmlUtil;
54 import org.slf4j.Logger;
55 import org.slf4j.LoggerFactory;
56 import org.w3c.dom.Document;
57 import org.w3c.dom.Element;
58 import org.w3c.dom.NodeList;
59 import org.xml.sax.SAXException;
60
61 import javax.management.InstanceAlreadyExistsException;
62 import javax.management.ObjectName;
63 import javax.xml.parsers.ParserConfigurationException;
64 import java.io.FileNotFoundException;
65 import java.io.IOException;
66 import java.io.InputStream;
67 import java.math.BigInteger;
68 import java.util.ArrayList;
69 import java.util.Arrays;
70 import java.util.Collection;
71 import java.util.List;
72 import java.util.Map;
73
74 import static org.junit.Assert.assertEquals;
75 import static org.junit.Assert.assertThat;
76 import static org.junit.Assert.fail;
77 import static org.mockito.Mockito.doNothing;
78 import static org.mockito.Mockito.doReturn;
79 import static org.mockito.Mockito.verify;
80 import static org.mockito.Mockito.verifyNoMoreInteractions;
81
82
83 public class NetconfMappingTest extends AbstractConfigTest {
84     private static final Logger logger = LoggerFactory.getLogger(NetconfMappingTest.class);
85
86     private static final String INSTANCE_NAME = "test1";
87     private static final String NETCONF_SESSION_ID = "foo";
88     private NetconfTestImplModuleFactory factory;
89     private DepTestImplModuleFactory factory2;
90
91     @Mock
92     YangStoreSnapshot yangStoreSnapshot;
93     @Mock
94     NetconfOperationRouter netconfOperationRouter;
95
96     private TransactionProvider transactionProvider;
97
98     @Before
99     public void setUp() throws Exception {
100         MockitoAnnotations.initMocks(this);
101         doReturn(getMbes()).when(this.yangStoreSnapshot).getModuleMXBeanEntryMap();
102         this.factory = new NetconfTestImplModuleFactory();
103         this.factory2 = new DepTestImplModuleFactory();
104         super.initConfigTransactionManagerImpl(new HardcodedModuleFactoriesResolver(this.factory, this.factory2));
105
106         transactionProvider = new TransactionProvider(this.configRegistryClient, NETCONF_SESSION_ID);
107     }
108
109     private ObjectName createModule(final String instanceName) throws InstanceAlreadyExistsException {
110         final ConfigTransactionJMXClient transaction = this.configRegistryClient.createTransaction();
111
112         final ObjectName on = transaction.createModule(this.factory.getImplementationName(), instanceName);
113         final NetconfTestImplModuleMXBean mxBean = transaction.newMXBeanProxy(on, NetconfTestImplModuleMXBean.class);
114         setModule(mxBean, transaction);
115
116         transaction.commit();
117         return on;
118     }
119
120     @Test
121     public void testConfigNetconf() throws Exception {
122
123         createModule(INSTANCE_NAME);
124
125         edit("netconfMessages/editConfig.xml");
126         checkBinaryLeafEdited(getConfigCandidate());
127
128         // default-operation:none, should not affect binary leaf
129         edit("netconfMessages/editConfig_none.xml");
130         checkBinaryLeafEdited(getConfigCandidate());
131
132         // check after edit
133         commit();
134         Element response = getConfigRunning();
135
136         checkBinaryLeafEdited(response);
137         checkTypeConfigAttribute(response);
138         checkTypedefs(response);
139         checkEnum(response);
140
141         edit("netconfMessages/editConfig_remove.xml");
142
143         commit();
144         response = getConfigCandidate();
145         final String responseFromCandidate = XmlUtil.toString(response).replaceAll("\\s+", "");
146         // System.out.println(responseFromCandidate);
147         response = getConfigRunning();
148         final String responseFromRunning = XmlUtil.toString(response).replaceAll("\\s+", "");
149         // System.out.println(responseFromRunning);
150         assertEquals(responseFromCandidate, responseFromRunning);
151
152         final String expectedResult = XmlFileLoader.fileToString("netconfMessages/editConfig_expectedResult.xml")
153                 .replaceAll("\\s+", "");
154
155         assertEquals(expectedResult, responseFromRunning);
156         assertEquals(expectedResult, responseFromCandidate);
157
158         edit("netconfMessages/editConfig_none.xml");
159         doNothing().when(netconfOperationRouter).close();
160         closeSession();
161         verify(netconfOperationRouter).close();
162         verifyNoMoreInteractions(netconfOperationRouter);
163     }
164
165     private void closeSession() throws NetconfDocumentedException, ParserConfigurationException, SAXException,
166             IOException {
167         DefaultCloseSession closeOp = new DefaultCloseSession(NETCONF_SESSION_ID);
168         executeOp(closeOp, "netconfMessages/closeSession.xml");
169     }
170
171     private void edit(String resource) throws ParserConfigurationException, SAXException, IOException,
172             NetconfDocumentedException {
173         EditConfig editOp = new EditConfig(yangStoreSnapshot, transactionProvider, configRegistryClient,
174                 NETCONF_SESSION_ID);
175         executeOp(editOp, resource);
176     }
177
178     private void commit() throws ParserConfigurationException, SAXException, IOException, NetconfDocumentedException {
179         Commit commitOp = new Commit(transactionProvider, configRegistryClient, NETCONF_SESSION_ID);
180         executeOp(commitOp, "netconfMessages/commit.xml");
181     }
182
183     private Element getConfigCandidate() throws ParserConfigurationException, SAXException, IOException,
184             NetconfDocumentedException {
185         GetConfig getConfigOp = new GetConfig(yangStoreSnapshot, Optional.<String> absent(), transactionProvider,
186                 configRegistryClient, NETCONF_SESSION_ID);
187         return executeOp(getConfigOp, "netconfMessages/getConfig_candidate.xml");
188     }
189
190     private Element getConfigRunning() throws ParserConfigurationException, SAXException, IOException,
191             NetconfDocumentedException {
192         GetConfig getConfigOp = new GetConfig(yangStoreSnapshot, Optional.<String> absent(), transactionProvider,
193                 configRegistryClient, NETCONF_SESSION_ID);
194         return executeOp(getConfigOp, "netconfMessages/getConfig.xml");
195     }
196
197     @Test(expected = NetconfDocumentedException.class)
198     public void testConfigNetconfReplaceDefaultEx() throws Exception {
199
200         createModule(INSTANCE_NAME);
201
202         edit("netconfMessages/editConfig.xml");
203         edit("netconfMessages/editConfig_replace_default_ex.xml");
204     }
205
206     @Test
207     public void testConfigNetconfReplaceDefault() throws Exception {
208
209         createModule(INSTANCE_NAME);
210
211         edit("netconfMessages/editConfig.xml");
212         commit();
213         Element response = getConfigRunning();
214         final int allInstances = response.getElementsByTagName("module").getLength();
215
216         edit("netconfMessages/editConfig_replace_default.xml");
217
218         commit();
219         response = getConfigRunning();
220
221         final int afterReplace = response.getElementsByTagName("module").getLength();
222         assertEquals(4, allInstances);
223         assertEquals(2, afterReplace);
224     }
225
226     @Test(expected = NetconfDocumentedException.class)
227     public void testSameAttrDifferentNamespaces() throws Exception {
228         try {
229             edit("netconfMessages/namespaces/editConfig_sameAttrDifferentNamespaces.xml");
230         } catch (NetconfDocumentedException e) {
231             String message = e.getMessage();
232             assertThat(message,
233                     JUnitMatchers
234                             .containsString("Element simple-long-2 present multiple times with different namespaces"));
235             assertThat(message,
236                     JUnitMatchers.containsString("urn:opendaylight:params:xml:ns:yang:controller:test:impl"));
237             assertThat(message,
238                     JUnitMatchers
239                             .containsString(XmlNetconfConstants.URN_OPENDAYLIGHT_PARAMS_XML_NS_YANG_CONTROLLER_CONFIG));
240             throw e;
241         }
242     }
243
244     @Test(expected = NetconfDocumentedException.class)
245     public void testDifferentNamespaceInTO() throws Exception {
246         try {
247             edit("netconfMessages/namespaces/editConfig_differentNamespaceTO.xml");
248         } catch (NetconfDocumentedException e) {
249             String message = e.getMessage();
250             assertThat(message, JUnitMatchers.containsString("Unrecognised elements"));
251             assertThat(message, JUnitMatchers.containsString("simple-int2"));
252             assertThat(message, JUnitMatchers.containsString("dto_d"));
253             throw e;
254         }
255     }
256
257     @Test(expected = NetconfDocumentedException.class)
258     public void testSameAttrDifferentNamespacesList() throws Exception {
259         try {
260             edit("netconfMessages/namespaces/editConfig_sameAttrDifferentNamespacesList.xml");
261         } catch (NetconfDocumentedException e) {
262             String message = e.getMessage();
263             assertThat(message,
264                     JUnitMatchers.containsString("Element binaryLeaf present multiple times with different namespaces"));
265             assertThat(message,
266                     JUnitMatchers.containsString("urn:opendaylight:params:xml:ns:yang:controller:test:impl"));
267             assertThat(message,
268                     JUnitMatchers
269                             .containsString(XmlNetconfConstants.URN_OPENDAYLIGHT_PARAMS_XML_NS_YANG_CONTROLLER_CONFIG));
270             throw e;
271         }
272     }
273
274     @Test
275     public void testTypeNameConfigAttributeMatching() throws Exception {
276         edit("netconfMessages/editConfig.xml");
277         commit();
278         edit("netconfMessages/namespaces/editConfig_typeNameConfigAttributeMatching.xml");
279         commit();
280
281         Element response = getConfigRunning();
282         checkTypeConfigAttribute(response);
283     }
284
285     // TODO add <modules operation="replace"> functionality
286     @Test(expected = NetconfDocumentedException.class)
287     public void testConfigNetconfReplaceModuleEx() throws Exception {
288
289         createModule(INSTANCE_NAME);
290
291         edit("netconfMessages/editConfig.xml");
292         edit("netconfMessages/editConfig_replace_module_ex.xml");
293     }
294
295     @Test
296     public void testUnrecognisedConfigElements() throws Exception {
297
298         String format = "netconfMessages/unrecognised/editConfig_unrecognised%d.xml";
299         final int TESTS_COUNT = 8;
300
301         for (int i = 0; i < TESTS_COUNT; i++) {
302             String file = String.format(format, i + 1);
303             try {
304                 edit(file);
305             } catch (NetconfDocumentedException e) {
306                 assertThat(e.getMessage(), JUnitMatchers.containsString("Unrecognised elements"));
307                 assertThat(e.getMessage(), JUnitMatchers.containsString("unknownAttribute"));
308                 continue;
309             }
310             fail("Unrecognised test should throw exception " + file);
311         }
312     }
313
314     @Test
315     @Ignore
316     // FIXME
317     public void testConfigNetconfReplaceModule() throws Exception {
318
319         createModule(INSTANCE_NAME);
320
321         edit("netconfMessages/editConfig.xml");
322         commit();
323         Element response = getConfigRunning();
324         final int allInstances = response.getElementsByTagName("instance").getLength();
325
326         edit("netconfMessages/editConfig_replace_module.xml");
327
328         commit();
329         response = getConfigRunning();
330         final int afterReplace = response.getElementsByTagName("instance").getLength();
331
332         assertEquals(4 + 4 /* Instances from services */, allInstances);
333         assertEquals(3 + 3, afterReplace);
334     }
335
336     @Test(expected = NetconfDocumentedException.class)
337     public void testEx() throws Exception {
338
339         commit();
340     }
341
342     @Test(expected = NetconfDocumentedException.class)
343     public void testEx2() throws Exception {
344         discard();
345     }
346
347     private void discard() throws ParserConfigurationException, SAXException, IOException, NetconfDocumentedException {
348         DiscardChanges discardOp = new DiscardChanges(transactionProvider, configRegistryClient, NETCONF_SESSION_ID);
349         executeOp(discardOp, "netconfMessages/discardChanges.xml");
350     }
351
352     private void checkBinaryLeafEdited(final Element response) {
353         final NodeList children = response.getElementsByTagName("binaryLeaf");
354         assertEquals(3, children.getLength());
355         final StringBuffer buf = new StringBuffer();
356         for (int i = 0; i < 3; i++) {
357             final Element e = (Element) children.item(i);
358             buf.append(XmlElement.fromDomElement(e).getTextContent());
359         }
360         assertEquals("810", buf.toString());
361     }
362
363     private void checkTypedefs(final Element response) {
364         NodeList children = response.getElementsByTagName("extended");
365         assertEquals(1, children.getLength());
366
367         children = response.getElementsByTagName("extended-twice");
368         assertEquals(1, children.getLength());
369     }
370
371     private void checkEnum(final Element response) {
372         XmlElement modulesElement = XmlElement.fromDomElement(response).getOnlyChildElement("data")
373                 .getOnlyChildElement("modules");
374
375         String enumName = "extended-enum";
376         String enumContent = "TWO";
377
378         for (XmlElement moduleElement : modulesElement.getChildElements("module")) {
379             String name = moduleElement.getOnlyChildElement("name").getTextContent();
380             if(name.equals("test1")) {
381                 XmlElement enumAttr = moduleElement.getOnlyChildElement(enumName);
382                 assertEquals(enumContent, enumAttr.getTextContent());
383
384                 return;
385             }
386         }
387
388         fail("Enum attribute " + enumName + ":" + enumContent + " not present in " + XmlUtil.toString(response));
389     }
390
391     private void checkTypeConfigAttribute(Element response) {
392
393         XmlElement modulesElement = XmlElement.fromDomElement(response).getOnlyChildElement("data")
394                 .getOnlyChildElement("modules");
395
396         XmlElement configAttributeType = null;
397         for (XmlElement moduleElement : modulesElement.getChildElements("module")) {
398             for (XmlElement type : moduleElement.getChildElements("type")) {
399                 if (type.getAttribute(XmlUtil.XMLNS_ATTRIBUTE_KEY).equals("") == false) {
400                     configAttributeType = type;
401                 }
402             }
403         }
404
405         assertEquals("configAttributeType", configAttributeType.getTextContent());
406     }
407
408     private Map<String, Map<String, ModuleMXBeanEntry>> getMbes() throws Exception {
409         final List<InputStream> yangDependencies = getYangs();
410
411         final Map<String, Map<String, ModuleMXBeanEntry>> mBeanEntries = Maps.newHashMap();
412         mBeanEntries.putAll(new MbeParser().parseYangFiles(yangDependencies).getModuleMXBeanEntryMap());
413
414         return mBeanEntries;
415     }
416
417     @Test
418     public void testConfigNetconfRuntime() throws Exception {
419
420         createModule(INSTANCE_NAME);
421
422         edit("netconfMessages/editConfig.xml");
423         checkBinaryLeafEdited(getConfigCandidate());
424
425         // check after edit
426         commit();
427         Element response = get();
428
429         assertEquals(2/*With runtime beans*/ + 2 /*Without runtime beans*/, getElementsSize(response, "module"));
430         // data from state
431         assertEquals(2, getElementsSize(response, "asdf"));
432         // data from running config
433         assertEquals(2, getElementsSize(response, "simple-short"));
434
435         assertEquals(8, getElementsSize(response, "inner-running-data"));
436         assertEquals(8, getElementsSize(response, "deep2"));
437         assertEquals(8 * 4, getElementsSize(response, "inner-inner-running-data"));
438         assertEquals(8 * 4, getElementsSize(response, "deep3"));
439         assertEquals(8 * 4 * 2, getElementsSize(response, "list-of-strings"));
440         assertEquals(8, getElementsSize(response, "inner-running-data-additional"));
441         assertEquals(8, getElementsSize(response, "deep4"));
442         // TODO assert keys
443
444         RuntimeRpc netconf = new RuntimeRpc(yangStoreSnapshot, configRegistryClient, NETCONF_SESSION_ID);
445
446         response = executeOp(netconf, "netconfMessages/rpc.xml");
447         assertThat(XmlUtil.toString(response), JUnitMatchers.containsString("testarg1".toUpperCase()));
448
449         response = executeOp(netconf, "netconfMessages/rpcInner.xml");
450         assertThat(XmlUtil.toString(response), JUnitMatchers.containsString("ok"));
451
452         response = executeOp(netconf, "netconfMessages/rpcInnerInner.xml");
453         assertThat(XmlUtil.toString(response), JUnitMatchers.containsString("true"));
454
455         response = executeOp(netconf, "netconfMessages/rpcInnerInner_complex_output.xml");
456         assertThat(XmlUtil.toString(response), JUnitMatchers.containsString("1"));
457         assertThat(XmlUtil.toString(response), JUnitMatchers.containsString("2"));
458     }
459
460     private Element get() throws NetconfDocumentedException, ParserConfigurationException, SAXException, IOException {
461         Get getOp = new Get(yangStoreSnapshot, configRegistryClient, NETCONF_SESSION_ID);
462         return executeOp(getOp, "netconfMessages/get.xml");
463     }
464
465     private int getElementsSize(Element response, String elementName) {
466         return response.getElementsByTagName(elementName).getLength();
467     }
468
469     private Element executeOp(final NetconfOperation op, final String filename) throws ParserConfigurationException,
470             SAXException, IOException, NetconfDocumentedException {
471
472         final Document request = XmlFileLoader.xmlFileToDocument(filename);
473
474         logger.debug("Executing netconf operation\n{}", XmlUtil.toString(request));
475         HandlingPriority priority = op.canHandle(request);
476
477         Preconditions.checkState(priority != HandlingPriority.CANNOT_HANDLE);
478
479         final Document response = op.handle(request, netconfOperationRouter);
480         logger.debug("Got response\n{}", XmlUtil.toString(response));
481         return response.getDocumentElement();
482     }
483
484     private List<InputStream> getYangs() throws FileNotFoundException {
485         List<String> paths = Arrays.asList("/META-INF/yang/config.yang", "/META-INF/yang/rpc-context.yang",
486                 "/META-INF/yang/config-test.yang", "/META-INF/yang/config-test-impl.yang", "/META-INF/yang/test-types.yang",
487                 "/META-INF/yang/ietf-inet-types.yang");
488         final Collection<InputStream> yangDependencies = new ArrayList<>();
489         for (String path : paths) {
490             final InputStream is = Preconditions
491                     .checkNotNull(getClass().getResourceAsStream(path), path + " not found");
492             yangDependencies.add(is);
493         }
494         return Lists.newArrayList(yangDependencies);
495     }
496
497     private void setModule(final NetconfTestImplModuleMXBean mxBean, final ConfigTransactionJMXClient transaction)
498             throws InstanceAlreadyExistsException {
499         mxBean.setSimpleInt((long) 44);
500         mxBean.setBinaryLeaf(new byte[] { 8, 7, 9 });
501         final DtoD dtob = getDtoD();
502         mxBean.setDtoD(dtob);
503         //
504         final DtoC dtoa = getDtoC();
505         mxBean.setDtoC(dtoa);
506         mxBean.setSimpleBoolean(false);
507         //
508         final Peers p1 = new Peers();
509         p1.setCoreSize(44L);
510         p1.setPort("port1");
511         p1.setSimpleInt3(456);
512         final Peers p2 = new Peers();
513         p2.setCoreSize(44L);
514         p2.setPort("port23");
515         p2.setSimpleInt3(456);
516         mxBean.setPeers(Lists.<Peers> newArrayList(p1, p2));
517         // //
518         mxBean.setSimpleLong(454545L);
519         mxBean.setSimpleLong2(44L);
520         mxBean.setSimpleBigInteger(BigInteger.valueOf(999L));
521         mxBean.setSimpleByte(new Byte((byte) 4));
522         mxBean.setSimpleShort(new Short((short) 4));
523         mxBean.setSimpleTest(545);
524
525         mxBean.setComplexList(Lists.<ComplexList> newArrayList());
526         mxBean.setSimpleList(Lists.<Integer> newArrayList());
527
528         final ObjectName testingDepOn = transaction.createModule(this.factory2.getImplementationName(), "dep");
529         mxBean.setTestingDep(testingDepOn);
530     }
531
532     private static DtoD getDtoD() {
533         final DtoD dtob = new DtoD();
534         dtob.setSimpleInt1((long) 444);
535         dtob.setSimpleInt2((long) 4444);
536         dtob.setSimpleInt3(454);
537         final ComplexDtoBInner dtobInner = new ComplexDtoBInner();
538         final Deep deep = new Deep();
539         deep.setSimpleInt3(4);
540         dtobInner.setDeep(deep);
541         dtobInner.setSimpleInt3(44);
542         dtobInner.setSimpleList(Lists.newArrayList(4));
543         dtob.setComplexDtoBInner(Lists.newArrayList(dtobInner));
544         dtob.setSimpleList(Lists.newArrayList(4));
545         return dtob;
546     }
547
548     private static DtoC getDtoC() {
549         final DtoC dtoa = new DtoC();
550         // dtoa.setSimpleArg((long) 55);
551         final DtoAInner dtoAInner = new DtoAInner();
552         final DtoAInnerInner dtoAInnerInner = new DtoAInnerInner();
553         dtoAInnerInner.setSimpleArg(456L);
554         dtoAInner.setDtoAInnerInner(dtoAInnerInner);
555         dtoAInner.setSimpleArg(44L);
556         dtoa.setDtoAInner(dtoAInner);
557         return dtoa;
558     }
559
560 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.