Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Hello World

In the wiki page Creating an Instance of SDN-R we saw how the docker container is constructed and how features are installed into OpenDaylight.  We now discuss how to create and add a new feature to SDNR.  As an example, we will create a Hello World feature in the ccsdk/features repository using the subdirectory sdnr/northbound.  This is the initial file structure.

Helloworld is simpler than sliapi (a zip file is available) because code used in installations prior to Casablanca has been removed, e.g., the features directory has been simplified and renamed to feature.  As we saw in Creating an Instance of SDN-R, feature/pom.xml creates a features.xml file and installer/pom.xml zips up the maven repository.  We can then modify ccsdk/distribution/odlsli/src/maindocker/Dockerfile to include helloworld in the boot features, as shown here.

The final steps are to add helloworld to the dependencies in ccsdk/distributikon/odlsli/pom.xml and then rebuild the docker image.

As before, to rebuild, execute 'mvn --activate-profiles docker clean package' in ccsdk/distribution/odlsli.

  • No labels