Ask Your Question
0

How to add/delete features built from a given archetype

asked 2015-09-29 05:06:38 -0700

balajimit gravatar image

updated 2015-09-29 05:09:40 -0700

I am trying to add/delete features provided by the example project (Lithium); By default, after mvn clean install, it is listing many features (like "ietf-interfaces", "shutdown-impl"). Where are these info defined?

I tried to figure out from opendaylight-startup-archetype in the odl-controller repo https://github.com/opendaylight/controller.git . Still could not find.

How do I disable, say "shutdown-impl" from appearing in the restconf interface (in fact from building itself) ..? Similarly, if I want to add some other existing odl module (say all the features of aaa module), how do I do it?

edit retag flag offensive close merge delete

Comments

I had already checked in features.xml. Could not find these features listed there. It is not from pre-built lithium distribution. To be precise, "hello world" project listed in lithium developer guide is my starting point. I just generate a new mvn project as mentioned in page 16 of it. (mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=https://nexus.opendaylight.org/content/repositories/public/ -DarchetypeCatalog=https://nexus.opendaylight.org/content/repositories/public/archetype-catalog.xml). It does install fine and in the restconf, I find many features which I dont find any reference in the whole of project directory. Seems like it should be tracked though the archetype defined, but dont know how to proceed.

balajimit ( 2015-10-01 00:46:22 -0700 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-09-30 00:35:01 -0700

g_trelos gravatar image

How about features.xml ? From there u can choose what features to load on boot.

edit flag offensive delete publish link more
0

answered 2015-09-30 00:58:33 -0700

Mandeep gravatar image

If you are using pre-build distributions (like downloaded something like distribution-karaf-0.3.1-Lithium-SR1.tar.gz) then I feel you will not have source code and things are already built and bundled, so removal can be done only via karaf commands like feature:uninstall shutdown-impl.

OR

If you downloaded/cloned source from git and built mvn clean install then you can add/remove via features.xml

Every module will have own features.xml, for example mine shows following:

controller/./opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/features/src/main/features/features.xml
controller/./opendaylight/archetypes/opendaylight-karaf-features/src/main/resources/archetype-resources/src/main/resources/features.xml
controller/./opendaylight/netconf/features/netconf/src/main/resources/features.xml
controller/./opendaylight/netconf/features/netconf-connector/src/main/resources/features.xml
controller/./features/config/src/main/resources/features.xml
controller/./features/protocol-framework/src/main/resources/features.xml
controller/./features/extras/src/main/resources/features.xml
controller/./features/config-persister/src/main/resources/features.xml
controller/./features/akka/src/main/resources/features.xml
controller/./features/restconf/src/main/resources/features.xml
controller/./features/config-netty/src/main/resources/features.xml
controller/./features/mdsal/src/main/resources/features.xml
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-09-29 05:06:38 -0700

Seen: 268 times

Last updated: Sep 30 '15