X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang-data-impl%2Fsrc%2Ftest%2Fresources%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fdata%2Fimpl%2Fconfig02.groovy;fp=yang-data-impl%2Fsrc%2Ftest%2Fresources%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fdata%2Fimpl%2Fconfig02.groovy;h=cfd8ab07434f51a3dc08bc79102fb92dbe0be09f;hb=a553b04b98952071aa80069f8075b85bdce7ad2e;hp=0000000000000000000000000000000000000000;hpb=b6772021b3eca0741fe1171576b6fee60dbfb8bd;p=yangtools.git diff --git a/yang-data-impl/src/test/resources/org/opendaylight/controller/yang/data/impl/config02.groovy b/yang-data-impl/src/test/resources/org/opendaylight/controller/yang/data/impl/config02.groovy new file mode 100644 index 0000000000..cfd8ab0743 --- /dev/null +++ b/yang-data-impl/src/test/resources/org/opendaylight/controller/yang/data/impl/config02.groovy @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +def data = { + network(xmlns: 'urn:opendaylight:controller:network') { + topologies { + topology { + 'topology-id'('topId_01') + + //types() + nodes { + node { + 'node-id'('nodeId_02') + 'supporting-ne'('networkId_03') + 'termination-points' { + 'termination-point' { + 'tp-id'('tpId_04') + } + } + } + node { + 'node-id'('nodeId_05') + 'supporting-ne'('networkId_06') + 'termination-points' { + 'termination-point' { + 'tp-id'('tpId_07') + } + } + } + node { + 'node-id'('nodeId_08') + 'supporting-ne'('networkId_09') + 'termination-points' { + 'termination-point' { + 'tp-id'('tpId_10') + } + 'termination-point' { + 'tp-id'('tpId_11') + } + } + } + } + links { + link { + 'link-id'('linkId_12') + source { + 'source-node'('nodeId_13') + 'source-tp'('tpId_13') + } + destination { + 'dest-node'('nodeId_14') + 'dest-tp'('tpId_14') + } + } + link { + 'link-id'('linkId_15') + source { + 'source-node'('nodeId_16') + 'source-tp'('tpId_16') + } + destination { + 'dest-node'('nodeId_17') + 'dest-tp'('tpId_17') + } + } + } + } + } + 'network-elements' { + 'network-element' { + 'element-id'('ntElementId_18') + } + 'network-element' { + 'element-id'('ntElementId_19') + } + } + } +} + +System.err.println('data inited') + +import MyXmlGenerator + +xmlGen = new MyXmlGenerator() +xmlGen.buildTree(data)