opendaylight

How to call karaf console command in Java

扶醉桌前 提交于 2019-12-12 02:49:31
问题 If I want to execute a karaf shell command in my plugin (java), how to do it? ex: opendaylight-user@root> snmp4sdn:printdb "org.apache.felix.service.command.CommandProcessor" can handle it ? 回答1: In Karaf 3, you have to use the Felix Gogo services, ie the CommandProcessor . From a CommandProcessor , you can create a CommandSession and then call execute on this session. Two notes on this: In Karaf4, the service has changed - it's not dependent on Gogo anymore All the shell commands use an

opendaylight flow is pushed but does not appear in flow list

[亡魂溺海] 提交于 2019-12-12 01:43:51
问题 I am trying to push flow in opendaylight via curl in xml format. It successfully pushes and I am able to see it under http://localnetwork:8181/restconf/config/opendaylight-inventory:nodes but can not see it via command of ovs-ofctl dump-flows s1, flow does not work as well. I can push flows and see in flow table within ovs ==> ovs-ofctl add-flow and curl in json format as well. Both mininet and odl runs with openflow13. Any idea? command I use: curl --user "admin":"admin" -H "Accept:

OpenFlow Rule Metadata

依然范特西╮ 提交于 2019-12-11 19:14:21
问题 I would like to understand how the Metadata are calculated in an Open Flow rule. cookie=0x6900000, duration=228925.519s, table=17, n_packets=384, n_bytes=35436, priority=10,metadata=0xf30000000000/0xffffff0000000000 actions=write_metadata:0xc000f30000000000/0xfffffffffffffffe,goto_table:211 Example: I have a flow very similar to this. How are exactly the Metadata are Calculated. And how to Intrepret the Metadata Values and Mask Some says new_metadata = old_metadata & ~mask | value & Mask

OpenDaylight: Listen for flow updates

北慕城南 提交于 2019-12-11 17:59:12
问题 I am trying to implement an OpenDaylight bundle that receives notifications when flows change. Therefore, I implemented DataTreeChangeListener<Flow> . The project compiles and starts ( ./karaf/target/assembly/bin/karaf ), but when I install additional package ( feature:install odl-restconf odl-l2switch-switch odl-dluxapps-yangvisualizer odl-dluxapps-yangman odl-dlux-core odl-dluxapps-nodes odl-dluxapps-topology odl-mdsal-apidocs ), I get the following error: Unsatisfied Requirements: osgi

How to import other opendaylight projects in my own odl distro

雨燕双飞 提交于 2019-12-11 16:18:43
问题 I'm trying to create my own application for Opendaylight, so for my application i will need some functions from the OpenFlowPlugin API. After create the directories tree using the mvn generate:archtype, i've executed the mvn clean install and it worked well, but when i tried to add the new dependency of openflowplugin on the "features/" directory (both "features/pom.xml" and "features/src/main/features/features.xml") and re-execute the mvn clean install i got this error: ---------------------

Karaf exception is thrown while installing org.fusesource.leveldbjni

大兔子大兔子 提交于 2019-12-11 01:56:39
问题 Hi i am trying to install the below dependency in karaf <dependency> <groupId>org.fusesource.leveldbjni</groupId> <artifactId>leveldbjni-all</artifactId> <version>1.8</version> </dependency> I am getting the below Exception Exception caught while executing command org.apache.karaf.shell.console.MultiException: Error executing command on bundles: Unable to execute command on bundle 564: The bundle "org.fusesource.leveldbjni.leveldbjni-all_1.8.0 [564]" could not be resolved. Reason: No match

Automatic add flow to ovs switch that connected to docker hosts

若如初见. 提交于 2019-12-10 11:42:27
问题 I'm working on creating SDN topology with OVS and docker containers as a host. my sample topology is: one ovs switch and 2 hosts(docker container) connected to it. HOST1 (container1) <----> OVS <----> HOST2 (container2) first i start my opendaylight controller and connect my ovs switch to it by " ovs-vsctl set-controller s1 tcp:ip:port " after that i run 2 docker container with " docker run -dit --net=none --name host1 ubuntu:16.04 /bin/bash " and then i used " ovs-docker " command to connect

Why bgp open and notification packets is only flowing in ODL

爱⌒轻易说出口 提交于 2019-12-08 07:52:27
问题 I need to establish a bgp session with route reflector running with odl and my router and so far i have done the following. Installed opendaylight karaf ,nitrogen version . Installed bgp features (feature:install odl-restconf odl-bgpcep-bgp,odl-bgpcep-bgp). Configured parameters using advanced rest client till bgp peer section following the official site (http://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html). when i checked the status of my router ,i saw that bgp

OpenDaylight: Error installing boot features

北城余情 提交于 2019-12-08 03:28:39
问题 I am facing this error: 2018-02-28T08:30:08,419 | ERROR | pool-1-thread-2 | BootFeaturesInstaller | 7 - org.apache.karaf.features.core - 4.1.3 | Error installing boot features org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=b9b64fb5-51e0-4ead-92af-087b5f324d3e; type=karaf.feature; version="[0,0.0.0]"; filter:="(&(osgi.identity=b9b64fb5-51e0-4ead-92af-087b5f324d3e)(type=karaf.feature)(version>=0.0.0)(version<=0.0.0)

OpenDaylight: Error installing boot features

不羁岁月 提交于 2019-12-06 16:09:07
I am facing this error: 2018-02-28T08:30:08,419 | ERROR | pool-1-thread-2 | BootFeaturesInstaller | 7 - org.apache.karaf.features.core - 4.1.3 | Error installing boot features org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=b9b64fb5-51e0-4ead-92af-087b5f324d3e; type=karaf.feature; version="[0,0.0.0]"; filter:="(&(osgi.identity=b9b64fb5-51e0-4ead-92af-087b5f324d3e)(type=karaf.feature)(version>=0.0.0)(version<=0.0.0))" [caused by: Unable to resolve b9b64fb5-51e0-4ead-92af-087b5f324d3e/0.0.0: missing requirement