Ask Your Question

Netconf in Hello world project

asked 2016-07-26 13:27:18 -0700

ahuja gravatar image


Can anyone tell how to install Netconf plugin in my existing Hello world project ?


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-07-27 07:53:00 -0700

karthik330 gravatar image

updated 2016-07-29 22:45:25 -0700


Add the above dependency in Features/pom.xml ; Also Add the following line to Features/src/main/features/features.xml


These two changes you have to do in your hello project. I tried and its working fine. Here You have to mention the exact version .

Hint is check your odlparent version in hello, for my case 1.7.0 ; So i ll go to this Link ; You can see there odlparent version also 1.7.0 ; So we are at the right place. In the same pom file you can see the version of netconf. use that exact version.

In case your odlparent is different, lets say 1.6.3-SNAPSHOT is in your hello Project ; then you have to find the same odlparent version in that above link pom file.For that simply change the branch tab in that link untill you get your exact matching version. Hope you understood .plz ask me if you have any doubts,

Plz luk at my pom and features file.Dont assume the same version will work for you. You have to mention appropriate version. Only i added the highlighted things.C:\fakepath\features.png, C:\fakepath\pom.png

edit flag offensive delete publish link more


Ii worked. I referred to the following link. It only worked with this combination: parent 1.6.3 , netconf 1.0.3 , openflowplugin 0.2.3. I had to add netconf-connector 1.0.3 also to add a netconf node

ahuja ( 2016-07-31 07:19:59 -0700 )edit

However, the other versions didnt work. The confusing thing is it didnt work even if I changed the parent version to 1.7.0. The above link shows that if I use netconf 1.1.0, the parent version should be 1.7.0, but this change was of no use. Any help here Karthik?

ahuja ( 2016-07-31 07:21:31 -0700 )edit

Thanks a lot @Karthik . You helped me a lot in my project.

ahuja ( 2016-07-31 07:22:10 -0700 )edit

answered 2016-07-27 08:43:43 -0700

ahuja gravatar image

updated 2016-07-27 08:56:30 -0700

Hey I made the changes suggested by you. Now the build was success. I was able to see netconf when I searched feature:list | grep netconf but now feature:install command stopped working. Also the ls and log commands stoppped working. The version I used was 1.1.0-SNAPSHOT

Command not found: service:list

opendaylight-user@root>feature:install odl-restconf-all
Error executing command: Error resolving artifact org.opendaylight.odlparent:features-odlparent:xml:features:1.7.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:features-odlparent:xml:features:1.7.0-SNAPSHOT in defaultlocal (file:/root/pawash/final/pahuja/karaf/target/assembly/system/)

opendaylight-user@root>feature:install odl-netconf-all
Error executing command: Error resolving artifact org.opendaylight.odlparent:features-odlparent:xml:features:1.7.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:features-odlparent:xml:features:1.7.0-SNAPSHOT in defaultlocal (file:/root/pawash/final/pahuja/karaf/target/assembly/system/)

This dierectory is also available: /root/.m2/repository/org/opendaylight/netconf/features-netconf/1.1.0-SNAPSHOT

My project version is 1.0.0-SNAPSHOT

> opendaylight-user@root>feature:repo-list
> Repository                      | URL
> ------------------------------------------------------------------------------------------------------------------- odl-pahuja-1.0.0-SNAPSHOT       |
> odl-netconf-1.1.0-SNAPSHOT      |
> mvn:org.opendaylight.netconf/features-netconf/1.1.0-SNAPSHOT/xml/features
> standard-3.0.3                  |
> mvn:org.apache.karaf.features/standard/3.0.3/xml/features
> odl-yangtools-0.8.3-SNAPSHOT    |
> mvn:org.opendaylight.yangtools/features-yangtools/0.8.3-SNAPSHOT/xml/features odl-mdsal-models-0.8.3-SNAPSHOT |
> mvn:org.opendaylight.mdsal.model/features-mdsal-model/0.8.3-SNAPSHOT/xml/features
> odl-dlux-0.3.3-SNAPSHOT         |
> mvn:org.opendaylight.dlux/features-dlux/0.3.3-SNAPSHOT/xml/features
> org.ops4j.pax.web-3.1.4         |
> mvn:org.ops4j.pax.web/pax-web-features/3.1.4/xml/features
> odl-mdsal-1.3.3-SNAPSHOT        |
> mvn:org.opendaylight.controller/features-mdsal/1.3.3-SNAPSHOT/xml/features
> odl-controller-1.3.3-SNAPSHOT   |
> mvn:org.opendaylight.netconf/features-restconf/1.3.3-SNAPSHOT/xml/features
edit flag offensive delete publish link more


The Problem here is you are using stable/beryllium of Hello Project. Inside that you are trying to install Master version of netconf(1.1.0-SNAPSHOT). Thats why you are getting error. So give a proper version(1.0.3-SNAPSHOT) . It is working for me. so It must work for you

karthik330 ( 2016-07-28 00:01:10 -0700 )edit

Did you change your odlparent from 1.6.3 to 1.7.0 ?? By referring other modules (dlux , mdsal) your odlparent - 1.6.3-SNAPSHOT, Netconf-1.0.3-SNAPSHOT, openflowplugin-0.2.3-SNAPSHOT . plz gv this versions

karthik330 ( 2016-07-28 00:10:49 -0700 )edit

I did all the changes. Still not working. Can you please share your pom.xml and features.xml files? I really appreciate your inputs Karthik. Also I didnt understand the master version of Netconf thing (any helpful link?) Thanks!

ahuja ( 2016-07-28 08:27:02 -0700 )edit

I shared my pom and features file. plz have a look. Hope you know hydregen, helium , lithium , berylium version of ODL. is nt it? Like that very recent version which is about to release is called master version. Share your pom & feature. Its so easy for us to fix.

karthik330 ( 2016-07-29 22:50:21 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2016-07-26 13:27:18 -0700

Seen: 130 times

Last updated: Jul 29 '16