yangtools | Mirror of the OpenDaylight yangtools gerrit project | iOS library
kandi X-RAY | yangtools Summary
kandi X-RAY | yangtools Summary
Mirror of the OpenDaylight yangtools gerrit project
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Performs a Benchmarking benchmark with two outer items in a DataTree
- Makes the given modification
- Begins a new datastore modification
- Sets up the data tree
- Create a test context
- Initialize map inner list
- This benchmark attempts to write a single node with a single item
- This benchmark performs a benchmark to write a single node with a singleton node in one item
- Performs a benchmark of writing a single node with a singleton list item in a data tree
- This benchmark attempts to write a single node with multiple items in a single write operation
- This benchmark uses a 10Kingle node with 10 items
- Performs a benchmark of a 10Kingle node with multiple items in a single commit
- This benchmark attempts to write a 5050 node with two inner nodes
- This benchmark performs a benchmark to write a 500 node with two inner items
- Command - line benchmark
- Initialize the list of outer list items
yangtools Key Features
yangtools Examples and Code Snippets
Community Discussions
Trending Discussions on yangtools
QUESTION
I am new at Opendaylight so I try to build Hello api on Magnesium via this tutorial.
I am going step by step what tutorial said but encountered an error when building app
...ANSWER
Answered 2020-Jul-03 at 03:10The type of the DataBroker
constructor parameter for HelloProvider
in the blueprint XML (org.opendaylight.controller.md.sal.binding.api.DataBroker
) doesn't match the code (org.opendaylight.mdsal.binding.api.DataBroker
).
QUESTION
I have installed the Beryllium release with Mininet on the side and was able to have everything running however I can't login. I installed the following features:
...ANSWER
Answered 2018-Dec-11 at 16:14Beryllium is staggeringly old by ODL standards. It hasn't been supported upstream for many years. Please use a recent version of ODL.
QUESTION
I am able to generate Pojos from Yang files using opendaylight yangtools. however i constantly get this error after generation finishes after mvn generate-sources or mvn clean build:
...ANSWER
Answered 2018-Jul-22 at 17:15org.opendaylight.mdsal.maven.sal.api.gen.plugin.CodeGeneratorImpl is incorrect - it should be org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl.
However you are deriving your pom from binding-parent so you don't need to re-define the yang-maven plugin at all as it is already defined/provided by binding-parent.
QUESTION
I am trying to use OpenDaylight to generate Pojos from Yang files according to this guide.
I cloned Yangtools from OpenDaylight github and built the project with mvn clean install
i've added the following to my pom:
...ANSWER
Answered 2018-Jul-16 at 14:27Looks like a version incompatibility - you're referencing yang-maven-plugin version 2.0.8-SNAPSHOT, which is the current unreleased master branch, and dependency maven-sal-api-gen-plugin version 0.7.4-Lithium-SR4, which was like 5 major releases ago and long obsolete.
QUESTION
For creating an ODL application, I have already built the application skeleton using maven as follows:
...ANSWER
Answered 2018-Feb-01 at 12:56E.g. https://stackoverflow.com/a/47069510/421602 lists the version numbers you can use for the opendaylight-startup-archetype. You can indeed also just check the repository, but the correct link to see all versions of that archetype would be https://nexus.opendaylight.org/#nexus-search;quick~opendaylight-startup-archetype (not yangtools-artifacts).
As for confusion re. versions in feature.xml and the pom.xml files, the best is to either look at the archetype example projects, or find the right version by looking at the appropriate branch in the OpenDaylight source code. For example, if you wanted to know what the correction version of say l2switch for ODL's Carbon release was, you could have a look at e.g. https://github.com/opendaylight/l2switch/blob/stable/carbon/artifacts/pom.xml to find 0.5.3-SNAPSHOT (or use 0.5.2).
FYI: As far as I know the archetype for the Nitrogen release is broken at the time of writing this; so I would just use the latest bleeding edge Oxygen, for the archetype and projects like l2switch or whatever you are interested in.
QUESTION
I'm trying to create my own application for Opendaylight, so for my application i will need some functions from the OpenFlowPlugin API.
After create the directories tree using the mvn generate:archtype, i've executed the mvn clean install and it worked well, but when i tried to add the new dependency of openflowplugin on the "features/" directory (both "features/pom.xml" and "features/src/main/features/features.xml") and re-execute the mvn clean install i got this error:
...ANSWER
Answered 2018-Jan-16 at 04:30Notice that the error indicates namespace http://karaf.apache.org/xmlns/features/v1.4.0 which is for karaf 4.x which was introduced in the Opendaylight Nitrogen. However your features xml has namespace http://karaf.apache.org/xmlns/features/v1.2.0 which indicates you're using Opendaylight Carbon or earlier. So that means you're pulling in a features repository from Nitrogen (eg dluxapps or openflowplugin) - in the pom make sure you specify the correct dependency versions for dluxapps, openflowplugin etc for the Opendaylight version you're using (I assume Carbon).
QUESTION
I'm tring to execute an mvn clean install with the OpenDaylight Controller Project in Eclipse Oxygen (Oxygen.1a Release (4.7.1a)), i've tryed to build the code with the simple steps: I've imported the git code, from the url https://git.opendaylight.org/gerrit/p/.git
, and runned with the goals: clean install -Pq (because i'm always get errors when the tests are executed if the controller are builded for the first time) and during the build i'm get this error when the build reach the odl-config-api part:
ANSWER
Answered 2017-Dec-06 at 11:31The problem re. maven-javadoc-plugin
seems to be due to "error: unknown tag: author:"
- that's fixed by https://git.opendaylight.org/gerrit/#/c/66268/. (FYI the JavaDoc output can be a bit confusing; it's only the lines where there is an "error: " at the end that cause the build to fail; all lines starting with [ERROR] but ending in "warning: " do not.)
The REAL question is why you hit this locally when this works for everyone else and on the ODL Jenkins build... The reason for that is if we note your C:\Program Files\Java\jdk-9.0.1\
... you appear to be building ODL on Java 9 - and that is not supported, yet! I've just proposed https://git.opendaylight.org/gerrit/#/c/66269/ to avoid similar problems for others in the future (until we're ready). Until then, please both build and run ODL only with Java 8 and you will have a lot less problems.
PS: I was not crystal clear if you've fully resolved your first problem re. karaf-maven-plugin
, and are now only asking about your second problem re. maven-javadoc-plugin
- it's best to remove from your question what you have resolved, or open separate new questions for new things you run into. But the karaf-maven-plugin
could very well have issues when running the build under Java 9 as well.
QUESTION
I'm starting to develop for opendaylight controller project and i used the eclipse installer advanced mode way (link of the tutorial: https://github.com/vorburger/opendaylight-eclipse-setup) to install the eclipse already with the opendaylight controller project. So when i try to run the mvn clean install i get the error :
- [ERROR] 'dependencies.dependency.version' for org.opendaylight.yang:yang-data-impl:jar is missing. @ line 54, column 17
When i go to the pom.xml of org.opendaylight.controller.dsbenchmark i've noticed that the pom defines the yang-data-impl dependency (groupId and ArtifactId tags) but dont have the version tag, however i've tried to insert a version tag (used 2.0.0-SNAPSHOT) but create this tag generate errors in others projects (projects of org.opendaylight.controller.benchmark-aggregator) and also generate another error that says the version (2.0.0-SNAPSHOT) cannot be found (Missing artifact org.opendaylight.yang:yang-data-impl:jar:2.0.0-SNAPSHOT).
I'm newbie in opendaylight controller system and i don't know what version or what i have to do, so someone can explain what i'm doing wrong or what i need read to learn how to fix this?
*Sorry for the english i'm not fluent
*I got errors before , dependencies missing, but i've fixed manually all of them (installing all the dependencies one by one)
*For now that's the only error that i'm getting
The pom.xml is here:
...ANSWER
Answered 2017-Nov-07 at 13:17Have you read the ODL Eclipse Setup FAQ, and tried all tips there?
For example, the custom Maven settings.xml which is required for it to download artifacts from http://nexus.opendaylight.org is automatically configured, but the very first time you need to restart Eclipse once.)
Do not touch any of the pom.xml - it should just work out-of-the-box, because in ODL CI all of these projects (like controller/benchmark/dsbenchmark) of course do build just fine.
Are ALL of your projects in Eclipse red, or just some?
QUESTION
I'm new in Opendaylight and I was following a tutorial to build a simple Hello World project (this tutorial) but when I run the project with ./karaf
and check if the module is initialized with log:display | grep hello
I obtain this error:
ANSWER
Answered 2017-Aug-04 at 13:58In the logs you provided:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install yangtools
You can use yangtools like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the yangtools component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page