Ask Your Question
1

How to get "opendaylight-inventory" package installed?

asked 2015-08-13 10:31:28 -0700

davidmichaelkarr gravatar image

updated 2015-08-24 13:07:37 -0700

I noticed references to an "opendaylight-inventory" Yang module in a presentation. I'm working with a simple "hello world" SB plugin application. The YangUI display lists several installed Yang modules, in addition to the one for my sample application, but it doesn't list "opendaylight-inventory". I would guess this is represented by an OSGi module somewhere, which I could install. Where do I get this module so I can install it into Karaf?

Update:

After your update to the answer on 8/21, I did the following (with "..." where I deleted lines to shorten the output):

[opnfv@localhost hello]$ mvn -Dcheckstyle.skip=true clean install
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.opendaylight.hello:hello-it:bundle:1.0.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: junit:junit:jar -> duplicate declaration of version (?) @ org.opendaylight.controller:mdsal-it-parent:1.3.0-SNAPSHOT, /home/opnfv/.m2/repository/org/opendaylight/controller/mdsal-it-parent/1.3.0-SNAPSHOT/mdsal-it-parent-1.3.0-SNAPSHOT.pom, line 89, column 17
...
[INFO] Reactor Summary:
[INFO] 
[INFO] hello-api .......................................... SUCCESS [  5.027 s]
[INFO] hello-impl ......................................... SUCCESS [  4.712 s]
[INFO] hello-features ..................................... SUCCESS [02:16 min]
[INFO] hello-karaf ........................................ SUCCESS [ 31.595 s]
[INFO] hello-artifacts .................................... SUCCESS [  0.554 s]
[INFO] hello-it ........................................... SUCCESS [ 44.246 s]
[INFO] hello .............................................. SUCCESS [  0.514 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:44 min
[INFO] Finished at: 2015-08-24T12:57:20-07:00
[INFO] Final Memory: 115M/431M
[INFO] ------------------------------------------------------------------------
[opnfv@localhost hello]$ karaf/target/assembly/bin/karaf
karaf: JAVA_HOME not set; results may vary
...
opendaylight-user@root>feature:repo-add mvn:org.opendaylight.openflowplugin/features-openflowplugin/0.2.0-SNAPSHOT/xml/features
Adding feature url mvn:org.opendaylight.openflowplugin/features-openflowplugin/0.2.0-SNAPSHOT/xml/features
Error executing command: Error resolving artifact org.opendaylight.openflowplugin:features-openflowplugin:xml:features:0.2.0-SNAPSHOT: Could not find artifact org.opendaylight.openflowplugin:features-openflowplugin:xml:features:0.2.0-SNAPSHOT in defaultlocal (file:/home/opnfv/work/hello/karaf/target/assembly/system/)
opendaylight-user@root>feature:repo-list
Repository                          | URL                                                                                  
---------------------------------------------------------------------------------------------------------------------------
spring-3.0.3                        | mvn:org.apache.karaf.features/spring/3.0.3/xml/features                              
odl-mdsal-1.3.0-SNAPSHOT            | mvn:org.opendaylight.controller/features-mdsal/1.3.0-SNAPSHOT/xml/features           
enterprise-3.0.3                    | mvn:org.apache.karaf.features/enterprise/3.0.3/xml/features                          
odl-yangtools-0.8.0-SNAPSHOT        | mvn:org.opendaylight.yangtools/features-yangtools/0.8.0-SNAPSHOT/xml/features        
odl-controller-1.3.0-SNAPSHOT       | mvn:org.opendaylight.controller/features-restconf/1.3.0-SNAPSHOT/xml/features        
odl-dlux-0.3.0-SNAPSHOT             | mvn:org.opendaylight.dlux/features-dlux/0.3.0-SNAPSHOT/xml/features                  
org.ops4j.pax.web-3.1.4             | mvn:org.ops4j.pax.web/pax-web-features/3.1.4/xml/features                            
standard-3.0.3                      | mvn:org.apache.karaf.features/standard/3.0.3/xml/features                            
odl-config-0.4.0-SNAPSHOT           | mvn:org.opendaylight.controller/features-config/0.4.0-SNAPSHOT/xml/features          
odl-controller-1.6.0-SNAPSHOT       | mvn:org.opendaylight.controller/features-akka/1.6.0-SNAPSHOT/xml/features            
org.ops4j.pax.cdi-0.11.0            | mvn:org.ops4j.pax.cdi/pax-cdi-features/0.11.0/xml/features                           
odl-config-persister-0.4.0-SNAPSHOT | mvn:org.opendaylight.controller/features-config-persister/0.4.0-SNAPSHOT/xml/features
odl-config-persister-0.4.0-SNAPSHOT | mvn ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-08-14 02:22:12 -0700

Mandeep gravatar image

updated 2015-08-21 10:15:43 -0700

Install Openflow-plugin. In karaf console.

  1. From source code build openflowplugin.

    mvn clean install

  2. Start your controller and add local repository. Just change version based on your code.

    feature:repo-add mvn:org.opendaylight.openflowplugin/features-openflowplugin/0.2.0-SNAPSHOT/xml/features

  3. Cross check addtion of repository by:

    feature:repo-list

  4. Install openflowplugin feature

    feature:install odl-openflowplugin-all

edit flag offensive delete publish link more

Comments

When I do this, I get: opendaylight-user@root>feature:install odl-openflowplugin-all Error executing command: No feature matching odl-openflowplugin-all/0.0.0

davidmichaelkarr ( 2015-08-14 12:52:59 -0700 )edit

OF plugin feature is not installed. Follow https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin::Running_controller_with_the_new_OF_plugin to install.

Mandeep ( 2015-08-14 23:20:59 -0700 )edit

That page talks about getting a standalone installation with the openflow plugin. I have an existing build structure, and I want to integrate this into it, so I can at least view the "opendaylight-inventory" tree in yang-ui. Can you explain how I might do that?

davidmichaelkarr ( 2015-08-17 08:58:11 -0700 )edit

If you already have openflow plugin source then you have to build using maven. then you have to add local repository into karaf. feature:repo-add [options] name/url [version] Example: feature:repo-add org.opendaylight.openflowplugin/0.2.0-SNAPSHOT/features/xml

Mandeep ( 2015-08-18 00:30:56 -0700 )edit

Could you please elaborate on that? I imagine you didn't intend me to run exactly "feature:repo-add org.opendaylight.openflowplugin/0.2.0-SNAPSHOT/features/xml", because you seem to describe that as an example, but I did anyway, which gave me "invalid URI: org.opendaylight.openflowplugin/0.2.0-SNAPSHOT/features/xml".

davidmichaelkarr ( 2015-08-18 12:25:05 -0700 )edit
0

answered 2015-09-05 09:42:49 -0700

DaveMack gravatar image

You can try loading the NETCONF northbound API by installing the netconf-connector-all feature.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-08-13 10:31:28 -0700

Seen: 1,227 times

Last updated: Sep 05 '15