X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Finternal%2FFlowProgrammerNotifier.java;h=2a62d6c34a08a19c4cccb898acdf90945ada255b;hb=ff1b4a79cca00743a00c3b0b1100bd0ab2b2fb31;hp=594164ddcf800948197df5a9fc87159c84a03d1f;hpb=f6b70bf10eed6de95ec52bb6bf6f47d6bc7c9eaf;p=controller.git diff --git a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/FlowProgrammerNotifier.java b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/FlowProgrammerNotifier.java index 594164ddcf..2a62d6c34a 100644 --- a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/FlowProgrammerNotifier.java +++ b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/FlowProgrammerNotifier.java @@ -37,7 +37,7 @@ public class FlowProgrammerNotifier implements IFlowProgrammerNotifier { * Function called by the dependency manager when at least one dependency * become unsatisfied or when the component is shutting down because for * example bundle is being stopped. - * + * */ void destroy() { logger.debug("DESTROY called!"); @@ -46,7 +46,7 @@ public class FlowProgrammerNotifier implements IFlowProgrammerNotifier { /** * Function called by dependency manager after "init ()" is called and after * the services provided by the class are registered in the service registry - * + * */ void start() { logger.debug("START called!"); @@ -56,7 +56,7 @@ public class FlowProgrammerNotifier implements IFlowProgrammerNotifier { * Function called by the dependency manager before the services exported by * the component are unregistered, this will be followed by a "destroy ()" * calls - * + * */ void stop() { logger.debug("STOP called!"); @@ -83,4 +83,13 @@ public class FlowProgrammerNotifier implements IFlowProgrammerNotifier { } } + @Override + public void flowErrorReported(Node node, long rid, Object err) { + if (salNotifier != null) { + salNotifier.flowErrorReported(node, rid, err); + } else { + logger.warn("Unable to relay switch error message to upper layer"); + } + } + }