Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

How to add a new js module to dlux

asked 2015-06-02 07:25:29 -0800

mengrady gravatar image

updated 2015-06-02 07:28:41 -0800

I want to add a new js moudle to dlux, I hope add my module to the navigation menu,and I have referred to the url:https://wiki.opendaylight.org/view/OpenDaylightdlux:Createandadda_module,but failed, the navigation menu have not my moudle ,also if I input the url that I have defined in the module.js ,there have not any request, and the page is still topology ,and i have modify the pom.xml,I want to know which file I also should to modify in dlux project, dlux/modules\common-navigation-resources\src\main\resources\navigation\navigation.js or another? someone can help me? Thank you very mush.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-05 08:06:50 -0800

mmcoulome gravatar image

You don't have to modify any file from the modules folder. The solution depends if you try to add a module within or without karaf.

By the link you've use, i guess that you want to run dlux without karaf. Your problem seem to be that your module isn't register into the application. Make sure you have uncomment this block from dlux_web/src/app.module.js and also add your module in those arrays.

/*
//----Temporary-------\\
var module = [
   [...]
  '<relative_path_module>/<module_name>.js',
   [...]

var e = [
   [...]
  'module_name',
   [...]
//--------------------\\
*/
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-06-02 07:25:29 -0800

Seen: 150 times

Last updated: Jun 05 '15