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

Revision history [back]

click to hide/show revision 1
initial version

How to use services of Openflow plugins like IController

We are facing a problem related to openflow. We are trying to write an application in opendaylight over openflow plugins in AD-SAL. As per our requirement and understanding we need the IController service. So we have put protocolplugins.openflow version 0.4.1 in dependency and in plugins we imported package org.opendaylight.controller. protocolplugin.openflow.core for IController interface definition.We also have registered the IController service in Activator. But in OSGI the org.opendaylight.controller.protocol_plugin.openflow.core packet not getting resolved as it is not exported by any other bundle. We have tried org.sdnhub.odl.openflow10 (Here we are being able to register the IController service) but we are getting some issue related to addMessageListner() signature in IController. It will be very helpful if someone suggest me how to resolve the problem, and whether we should use org.sdnhub.odl.openflow10. We could send more details if required.

How to use services of Openflow plugins like IControllerIController ?

We are I am using the OpenDaylight Base Edition 1.0,

I am facing a problem related to openflow. We are openflow. I am trying to write an application in opendaylight over using openflow plugins in AD-SAL. AD-SAL. As per our my requirement and understanding we understanding, I need the IController IController service. So we I have put protocolplugins.openflow plugins.openflow version 0.4.1 0.4.1 in dependency and in plugins we I have imported package org.opendaylight.controller. protocolorg.opendaylight.controller.protocolplugin.openflow.core plugin.openflow.corefor IController IController interface definition.We definition. I also have registered the IController dependent IController service in Activator. But in OSGI the org.opendaylight.controller.protocol_plugin.openflow.core packet Activator.

When I trying to run my bundle, in OSGI the ‘org.opendaylight.controller.protocol_plugin.openflow.core’ package is not getting resolved as it is not resolved. From what I could understand, is not being exported by any other bundle. We have bundle. I tried org.sdnhub.odl.openflow10 (Here we are being able to register the IController service) using ‘org.sdnhub.odl.openflow10’ as a replacement from [http://sdnhub.org/releases/opendaylight-adsal-of-plugins/], but we are I am getting some issue related to error in addMessageListner() signature in IController. It will be very helpful signature in IController.

Q1) I am on the right understanding that ‘org.opendaylight.controller.protocol_plugin.openflow.core’ is not exposed by any bundle in the base edition?

Q2) Should I use org.sdnhub.odl.openflow10 as a openflow plugin.

Q3) I've used the addMessageListner() as:

controller.addMessageListener(OFType.GET_CONFIG_REPLY, configHandler);

where configHandler type is IMessageListener

and used org.opendaylight.controller.protocol_plugin.openflow.core.IController

and In org.sdnhub.odl.openflow10 addMessageListner() is defined as:

public void addMessageListener(OFType type, IMessageListener listener) {
        IMessageListener currentListener = this.messageListeners.get(type);
        if someone suggest me how to resolve the problem, and whether we should use org.sdnhub.odl.openflow10. We could send more details if required.

(currentListener != null) { logger.warn("{} is already listened by {}", type, currentListener); } this.messageListeners.put(type, listener); logger.debug("{} is now listened by {}", type, listener); }