opennetworkingfoundation / sampletap Goto Github PK
View Code? Open in Web Editor NEWA simple networking tapping application created to illustrate SDN and OpenFlow (1.0) basic functionality
A simple networking tapping application created to illustrate SDN and OpenFlow (1.0) basic functionality
Hi Andy,
I have setup the web gui and can access at http://localhost:4567, but the configuration is very complex and some parameters are unclear. Could you have an example for me? for example, I have configured Port Chain/Tap Policy Info tab but could not configure successfully.
Thank you very much.
Best Regards,
Richard
Hi,
I download your SampleTap application on github,I change the Opendaylight SNAPSHOT of pom.xml in root directory.Using 1.4.6-SNAPSHOT instead of 1.4.2-SNAPSHOT.Because when I use 1.4.2-SNAPSHOT have this error
Could not transfer artifact org.opendaylight.controller:commons.opendaylight:pom:1.4.2-SNAPSHOT from/to Spark repository:www.sparkjava.com and 'parent.relativePath' points at wrong local POM@line 4,column 11:Unknown host www.sparkjava.com
when I change it,I insert :mvn clean install ,I got BUILD SUCCESS
but when I copy the jar in SampleTap-master/target under opendaylight plugin directory,I find another problem in OpenDaylight OSGi webUI
imported Packages
com.mongodb,version=[2.11,3) -- Cannot be resolved
org.bson.types,version=[2.11,3) -- Cannot be resolved
org.eclipse.jetty.server,version=[9.0,10) -- Cannot be resolved
org.eclipse.jetty.server.handler,version=[9.0,10) -- Cannot be resolved
org.eclipse.jetty.server.session,version=[9.0,10) -- Cannot be resolved
org.eclipse.jetty.util.log,version=[9.0,10) -- Cannot be resolved
org.eclipse.jetty.util.resource,version=[9.0,10) -- Cannot be resolved
org.eclipse.jetty.util.ssl,version=[9.0,10) -- Cannot be resolved
org.junit -- Cannot be resolved but is not required
org.opendaylight.controller.forwardingrulesmanager,version=[0.6,1) -- Cannot be resolved
org.opendaylight.controller.sal.action,version=[0.8,1) -- Cannot be resolved
org.opendaylight.controller.sal.core,version=[0.8,1) -- Cannot be resolved
org.opendaylight.controller.sal.flowprogrammer,version=[0.8,1) -- Cannot be resolved
org.opendaylight.controller.sal.inventory,version=[0.8,1) -- Cannot be resolved
org.opendaylight.controller.sal.match,version=[0.8,1) -- Cannot be resolved
org.opendaylight.controller.sal.packet,version=[0.8,1) -- Cannot be resolved
org.opendaylight.controller.sal.reader,version=[0.8,1) -- Cannot be resolved
org.opendaylight.controller.sal.routing,version=[0.8,1) -- Cannot be resolved
org.opendaylight.controller.sal.utils,version=[0.8,1) -- Cannot be resolved
I guess the reason of this problem is the OpenDaylihgt's version not fit SampleTap,I use OpenDaylight code branch stable/hydrogen.But I can't find the latest version of hydrogen(the reason of not using helium is I can't find folder named plugins and I think it is not fit).
Now I don't have any way to deal with it,please help me,thank you very much!
Hi,
I have downloaded SampleTap app from github and build successfully. I put the module and relative modules into the distribution.opendaylight-osgipackage/opendaylight/plugins but when running the program, there is a error happen. The following is the error message.
2014-04-25 11:32:30.117 CST [ControllerI/O Thread] INFO o.o.c.p.o.core.internal.ControllerIO - Controller is now listening on any:6633
2014-04-25 11:32:37.276 CST [fileinstall-./plugins] INFO o.o.c.c.i.ConfigurationService - ConfigurationService Manager init
2014-04-25 11:32:38.099 CST [fileinstall-./plugins] INFO o.o.c.s.o.internal.ONFTappingAppImpl - init called
2014-04-25 11:32:38.099 CST [fileinstall-./plugins] INFO o.o.c.s.o.internal.ONFTappingAppImpl - ONFTappingApp start up
2014-04-25 11:32:38.100 CST [fileinstall-./plugins] INFO o.o.c.s.o.internal.ONFTappingAppImpl - Application directory is /home/richard/OpenDaylight/controller/opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight
2014-04-25 11:32:38.130 CST [fileinstall-./plugins] INFO o.o.c.s.o.internal.ONFTappingAppImpl - Tapping App: ONS Tapping App version: 1.0
2014-04-25 11:32:38.131 CST [fileinstall-./plugins] ERROR o.o.c.s.o.internal.ONFTappingAppImpl - Unable to load ONS Tapping Application configuration file
2014-04-25 11:32:38.142 CST [fileinstall-./plugins] INFO o.o.c.s.onftappingapp.TappingApp - Web Server root directory:
2014-04-25 11:32:38.142 CST [fileinstall-./plugins] INFO o.o.c.s.onftappingapp.TappingApp - Calling externalStaticFileLocation
2014-04-25 11:32:38.143 CST [fileinstall-./plugins] INFO o.o.c.s.onftappingapp.TappingApp - app directory not found!
2014-04-25 11:32:38.243 CST [fileinstall-./plugins] INFO o.o.c.s.o.internal.ONFTappingAppImpl - start called
Is there anything missing? configuration file ? ONSTappingApp.config? Mongo database schema(TappingApp)? or something else?
Is there an installation steps or Howtos? any help will be appreciated.
Thank for your help.
Best Regards,
Richard
Is there a how to guide to run the application with opendaylight?
I run the install-app.sh and get the following error:
./install-app.sh: line 3: cd: /home/ateethkumar/OpenDaylight/controller/opendaylight: No such file or directory
cp: cannot stat β./samples/ONFTappingApp/target/samples.onftappingapp-0.4.2-SNAPSHOT.jarβ: No such file or directory
I kept getting error about the config file missing. I put the config file in the correct location, but it still complained. I tracked it the the following line in TappingApp.java.
private void loadConfigurationFromFile() throws IOException {
// now load properties from last invocation
FileInputStream in = new FileInputStream("ONSTappingApp.config");
applicationProps.load(in);
in.close();
Why is it referring to ONS... instead of ONF ? I see several references to ONS through out the file. Once I changed the code in several places, I was able to mostly start the app. I'm not sure what I need to do to get mongodb to run.
I have to ask, is the latest copy of the code here in GIT? I've found this bug and the compile error in ONFTappingAppImpl.java. Is this the same as your copy? Does your copy run?
I get an error when trying to build about missing symbol. It seems there is a missing import.
[ERROR] /home/ggee/controller/opendaylight/samples/SampleTap/src/main/java/org/opendaylight/controller/samples/onftappingapp/internal/ONFTappingAppImpl.java:[65,4] error: cannot find symbol
[ERROR] symbol: class Router
[ERROR] location: class ONFTappingAppImpl
I'm not sure if it is correct, but I added the following so it would compile.
import org.opendaylight.controller.samples.onftappingapp.Router;
I haven't been able to get the plugin to run yet, but it compiles with the above fix.
Will the web app part of the sample be included? The ONFTappingApp.config has a reference to a www-rootdir.
www-rootdir=/home/wiretap/ONF-ODL/OpenDaylight/controller/opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/www/app
Hi,
I have downloaded Sample Tap app from GitHub and that SampleTap-master folder contains install-app.sh and pom.xml ..etc.....So I tried to create sampleTap.jar using "mvn clean install" but it shows the following error .
Could you please someone assist me to integrate sample Tap with ODL and It will be much better if someone publish "README" document (with pre-requisites) and installation steps.
Note: Let me know if any other way to create sampleTap.jar file ? rather than doing mvn clean.
"pom.xml" Output:
root@admin1-Vostro-230:/home/admin1/SampleTap-master# mvn clean install
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.opendaylight.controller:samples.onftappingapp:0.4.2-SNAPSHOT (/home/admin1/SampleTap-master/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find org.opendaylight.controller:commons.opendaylight:pom:1.4.2-SNAPSHOT in http://www.sparkjava.com/nexus/content/repositories/spark/ was cached in the local repository, resolution will not be reattempted until the update interval of Spark repository has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Regards,
Subash Gandhi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.