Hi
please ensure that new yang file has format for example: c...@2014-08-18.yang<mailto:c...@2014-08-18.yang> for https://github.com/opendaylight/controller/blob/master/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car.yang and there are no missing yang files for imported modules. Regards ________________________________ Od: Humera Kouser <humera.kou...@lnttechservices.com> Odoslané: 17. októbra 2016 8:40 Komu: netconf-dev; controller-dev@lists.opendaylight.org Predmet: [netconf-dev] Custom yang model failing Hi, I am trying to add custom yang model to Ncmount Application of coretutorials. The apllication is built successfully on adding the file. But testool is not starting when the custom yang file is placed in yang directory and passed as an argument. Following is the error: $ java -jar netconf-testtool-1.2.0-SNAPSHOT-executable.jar --schemas-dir ./yang 23:14:21.432 [main] INFO o.o.n.t.tool.NetconfDeviceSimulator - Starting 1, SSH simulated devices starting on port 17830 23:14:22.218 [main] ERROR o.o.netconf.test.tool.Main - Unhandled exception java.lang.RuntimeException: Cannot parse schema context at org.opendaylight.netconf.test.tool.NetconfDeviceSimulator.parseSchemasToModuleCapabilities(NetconfDeviceSimulator.java:303) at org.opendaylight.netconf.test.tool.NetconfDeviceSimulator.start(NetconfDeviceSimulator.java:153) at org.opendaylight.netconf.test.tool.Main.main(Main.java:60) Caused by: org.opendaylight.yangtools.yang.model.repo.api.SchemaResolutionException: resolve sources execution failed, failed source: null, resolved sources: [], unsatisfied imports: {} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.opendaylight.yangtools.util.concurrent.ReflectiveExceptionMapper.newWithCause(ReflectiveExceptionMapper.java:31) at org.opendaylight.yangtools.util.concurrent.ExceptionMapper.apply(ExceptionMapper.java:87) at org.opendaylight.yangtools.util.concurrent.ExceptionMapper.apply(ExceptionMapper.java:37) at com.google.common.util.concurrent.Futures$MappingCheckedFuture.mapException(Futures.java:1809) at com.google.common.util.concurrent.AbstractCheckedFuture.checkedGet(AbstractCheckedFuture.java:85) at org.opendaylight.netconf.test.tool.NetconfDeviceSimulator.parseSchemasToModuleCapabilities(NetconfDeviceSimulator.java:301) ... 2 common frames omitted Caused by: org.opendaylight.yangtools.yang.model.repo.api.MissingSchemaSourceException: All available providers exhausted at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository$1.create(AbstractSchemaRepository.java:83) at com.google.common.util.concurrent.Futures$FallbackFuture$1.onFailure(Futures.java:471) at com.google.common.util.concurrent.Futures$6.run(Futures.java:1310) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457) at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170) at com.google.common.util.concurrent.ForwardingListenableFuture.addListener(ForwardingListenableFuture.java:47) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1322) at com.google.common.util.concurrent.Futures$FallbackFuture.<init>(Futures.java:459) at com.google.common.util.concurrent.Futures.withFallback(Futures.java:444) at com.google.common.util.concurrent.Futures.withFallback(Futures.java:379) at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.fetchSource(AbstractSchemaRepository.java:74) at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.getSchemaSource(AbstractSchemaRepository.java:110) at org.opendaylight.yangtools.yang.parser.repo.SharedSchemaContextFactory.requestSource(SharedSchemaContextFactory.java:78) at org.opendaylight.yangtools.yang.parser.repo.SharedSchemaContextFactory$$Lambda$3/1922464006.apply(Unknown Source) at com.google.common.collect.Iterators$8.transform(Iterators.java:799) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at java.util.AbstractCollection.toArray(AbstractCollection.java:141) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:226) at com.google.common.util.concurrent.Futures.allAsList(Futures.java:1027) at org.opendaylight.yangtools.yang.parser.repo.SharedSchemaContextFactory.createSchemaContext(SharedSchemaContextFactory.java:95) at org.opendaylight.yangtools.yang.parser.repo.SharedSchemaContextFactory.createSchemaContext(SharedSchemaContextFactory.java:72) at org.opendaylight.yangtools.yang.model.repo.api.SchemaContextFactory.createSchemaContext(SchemaContextFactory.java:37) ... 3 common frames omitted Caused by: org.opendaylight.yangtools.yang.model.repo.api.MissingSchemaSourceException: All available providers exhausted at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository$1.create(AbstractSchemaRepository.java:83) at com.google.common.util.concurrent.Futures$FallbackFuture$1.onFailure(Futures.java:471) at com.google.common.util.concurrent.Futures$6.run(Futures.java:1310) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457) at com.google.common.util.concurrent.Futures$ImmediateFuture.addListener(Futures.java:106) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1322) at com.google.common.util.concurrent.Futures$FallbackFuture.<init>(Futures.java:459) at com.google.common.util.concurrent.Futures.withFallback(Futures.java:444) at com.google.common.util.concurrent.Futures.withFallback(Futures.java:379) at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.fetchSource(AbstractSchemaRepository.java:74) at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.getSchemaSource(AbstractSchemaRepository.java:110) at org.opendaylight.yangtools.yang.model.repo.util.SchemaSourceTransformer.getSource(SchemaSourceTransformer.java:56) at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.fetchSource(AbstractSchemaRepository.java:72) ... 15 common frames omitted Caused by: org.opendaylight.yangtools.yang.model.repo.api.MissingSchemaSourceException: Source not found at org.opendaylight.yangtools.yang.model.repo.util.FilesystemSchemaSourceCache.getSource(FilesystemSchemaSourceCache.java:128) at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.fetchSource(AbstractSchemaRepository.java:72) ... 18 common frames omitted Do I need to create a yang model based on some schema or standard? I dont have much knowledge in this area. Exploring to make use of this for wifi configuration. Please help on this part. Thanks & Regards, Humera L&T Technology Services Ltd www.LntTechservices.com<http://www.lnttechservices.com/> This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. IvanHraško Software Developer Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia R&D centrum / Janka Kráľa 9 / 974 01 Banská Bystrica / Slovakia / ivan.hra...@pantheon.tech reception: +421 2 206 65 114 / www.pantheon.sk [logo]
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev